SetVehicleLightEnabled: Difference between revisions
From Onset Developer Wiki
Created page with "{{Info|Function|Server|1.0}} {{FuncDescription|__EDIT_ME__}} {{FuncSyntax|SetVehicleLightEnabled(vehicle, enabled)}} {{FuncParameters}} {{FuncParam|vehicle|__EDIT_ME__}} {{..." |
No edit summary |
||
Line 1: | Line 1: | ||
{{Info|Function|Server|1.0}} | {{Info|Function|Server|1.0}} | ||
{{FuncDescription| | {{FuncDescription|This function toggles the vehicle's lights.}} | ||
{{FuncSyntax|SetVehicleLightEnabled(vehicle, enabled)}} | {{FuncSyntax|SetVehicleLightEnabled(vehicle, enabled)}} | ||
{{FuncParameters}} | {{FuncParameters}} | ||
{{FuncParam|vehicle| | {{FuncParam|vehicle|The vehicle identifier.}} | ||
{{FuncParam|enabled| | {{FuncParam|enabled|The boolean status}} | ||
{{FuncReturnValue| | {{FuncReturnValue|This function returns '''?'''.}} | ||
== Example == | == Example == | ||
<syntaxhighlight lang="Lua"> | |||
SetVehicleLightEnabled(vehicleId, true) | |||
</syntaxhighlight> | |||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
{{Template:VehicleFunctions}} |
Revision as of 07:33, 13 December 2019
Description
This function toggles the vehicle's lights.
Syntax
SetVehicleLightEnabled(vehicle, enabled)
Parameters
- vehicle
The vehicle identifier. - enabled
The boolean status
Return Value
- This function returns ?.
Example
SetVehicleLightEnabled(vehicleId, true)
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