SetVehicleRespawnParams: Difference between revisions
From Onset Developer Wiki
Created page with "{{Info|Function|Server|1.0}} {{FuncDescription|__EDIT_ME__}} {{FuncSyntax|SetVehicleRespawnParams(vehicle, EnableRespawn [, RespawnTime, RepairOnRespawn])}} {{FuncParameter..." |
No edit summary |
||
Line 1: | Line 1: | ||
{{Info|Function|Server|1.0}} | {{Info|Function|Server|1.0}} | ||
{{FuncDescription| | {{FuncDescription|Set the per-vehicle respawn parameters.}} | ||
{{FuncSyntax|SetVehicleRespawnParams(vehicle, EnableRespawn [, RespawnTime, RepairOnRespawn])}} | {{FuncSyntax|SetVehicleRespawnParams(vehicle, EnableRespawn [, RespawnTime, RepairOnRespawn])}} | ||
{{FuncParameters}} | {{FuncParameters}} | ||
{{FuncParam|vehicle| | {{FuncParam|vehicle|The vehicle identifier.}} | ||
{{FuncParam|EnableRespawn | | {{FuncParam|EnableRespawn |The respawn toggle boolean.}} | ||
{{FuncParam|RespawnTime| | {{FuncParam|RespawnTime|The respawn time in milliseconds.}} | ||
{{FuncParamOptional|RepairOnRespawn| | {{FuncParamOptional|RepairOnRespawn|Repair on respawn boolean.}} | ||
{{FuncReturnValue|__EDIT_ME__}} | {{FuncReturnValue|__EDIT_ME__}} | ||
== Example == | == Example == | ||
<syntaxhighlight lang="Lua> | |||
__EDIT_ME__ | __EDIT_ME__ | ||
</syntaxhighlight> | |||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
{{Template:VehicleFunctions}} |
Revision as of 13:29, 20 November 2019
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
- __EDIT_ME__
Example
__EDIT_ME__
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