SetVehicleRespawnParams: Difference between revisions
From Onset Developer Wiki
No edit summary |
No edit summary |
||
Line 11: | Line 11: | ||
{{FuncParamOptional|RepairOnRespawn|Repair on respawn boolean.}} | {{FuncParamOptional|RepairOnRespawn|Repair on respawn boolean.}} | ||
{{FuncReturnValue| | {{FuncReturnValue|Returns '''true''' on success.}} | ||
== Example == | == Example == | ||
<syntaxhighlight lang="Lua> | <syntaxhighlight lang="Lua> | ||
local vehicle = CreateVehicle(2, 0.0, 0.0, 1600.0, 90.0) | |||
SetVehicleRespawnParams(vehicle, false, 0, false) | |||
</syntaxhighlight> | </syntaxhighlight> | ||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
{{Template:VehicleFunctions}} | {{Template:VehicleFunctions}} |
Latest revision as of 16:14, 16 February 2020
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
- CreateVehicle
- DestroyVehicle
- IsValidVehicle
- GetVehicleCount
- GetAllVehicles
- GetVehicleModel
- GetVehicleModelName
- SetVehicleRespawnParams
- IsVehicleStreamedIn
- GetStreamedVehiclesForPlayer
- GetStreamedVehicles
- SetVehicleLocation
- GetVehicleLocation
- SetVehicleRotation
- GetVehicleRotation
- SetVehicleHeading
- GetVehicleHeading
- SetVehicleHealth
- GetVehicleHealth
- SetVehicleLicensePlate
- GetVehicleVelocity
- GetVehicleDriver
- GetVehiclePassenger
- GetVehicleNumberOfSeats
- SetVehicleColor
- GetVehicleColor
- SetVehicleLinearVelocity
- SetVehicleAngularVelocity
- GetVehicleGear
- SetVehicleHoodRatio
- GetVehicleHoodRatio
- SetVehicleTrunkRatio
- GetVehicleTrunkRatio
- StartVehicleEngine
- StopVehicleEngine
- GetVehicleEngineState
- SetVehicleLightEnabled
- GetVehicleLightState
- SetVehicleDamage
- GetVehicleDamage
- AttachVehicleNitro