Skip to content

Vehicle_SetLightsState

Stefan Unković edited this page Aug 8, 2021 · 2 revisions

Description

Sets lights damage state, this doesn't toggle its on or off, but damaged or not.

Syntax

Vehicle_SetLightsState(VEHICLE_FRAMEWORK_TAGS: id, e_LIGHT_STATES: left_lights, e_LIGHT_STATES: right_lights, e_LIGHT_STATES: back_lights, tag=tagof(id)) 
Param Definition
VEHICLE_FRAMEWORK_TAGS: id ID either of the vehicle or group
e_LIGHT_STATES: left_lights Either E_LIGHT_ON or E_LIGHT_OFF to set vehicle damage status.
e_LIGHT_STATES: right_lights Either E_LIGHT_ON or E_LIGHT_OFF to set vehicle damage status.
e_LIGHT_STATES: back_lights Either E_LIGHT_ON or E_LIGHT_OFF to set vehicle damage status.

Returns

UpdateVehicleDamageStatus values. E.g. 1 if function executes succesfully, otherwise 0.

Notes

You can't modify back lights separately, this is default by SA:MP.

Sidebar

Clone this wiki locally