Vehicle::taxiLights

From RAGE Multiplayer Wiki
Revision as of 08:43, 29 May 2024 by Shr0x (talk | contribs) (Created page with "{{ServersideJsFunction}} {{JSContainer| Enables or disables vehicle taxi lights, also return its value. ===Required value=== *'''enable:''' {{RageType|boolean}} ===Return value=== *''' {{RageType|boolean}} ''' ==Syntax== <syntaxhighlight lang="javascript"> vehicle.taxiLights </syntaxhighlight> ==Example== <syntaxhighlight lang="javascript"> const vehicle = mp.vehicles.new(mp.joaat("taxi"), new mp.Vector3(-541.0401611328125, -1287.0777587890625, 26.901586532592773));...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Server-Side
Function

 JavaScript



JavaScript Syntax

Enables or disables vehicle taxi lights, also return its value.

Required value

  • enable: boolean

Return value

  • boolean

Syntax

vehicle.taxiLights

Example

const vehicle = mp.vehicles.new(mp.joaat("taxi"), new mp.Vector3(-541.0401611328125, -1287.0777587890625, 26.901586532592773));
vehicle.taxiLights = true;


See also