SetVehicleRespawnParams

From Onset Developer Wiki
Revision as of 16:14, 16 February 2020 by 28days (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
SetVehicleRespawnParams

Type: Function
Context: Server
Introduced: v1.0

Description

Set the per-vehicle respawn parameters.

Syntax

SetVehicleRespawnParams(vehicle, EnableRespawn [, RespawnTime, RepairOnRespawn])

Parameters

  • vehicle
    The vehicle identifier.
  • EnableRespawn
    The respawn toggle boolean.
  • RespawnTime
    The respawn time in milliseconds.
  • RepairOnRespawn (optional)
    Repair on respawn boolean.

Return Value

  • Returns true on success.

Example

local vehicle = CreateVehicle(2, 0.0, 0.0, 1600.0, 90.0)
SetVehicleRespawnParams(vehicle, false, 0, false)

See also