-
Notifications
You must be signed in to change notification settings - Fork 11
Vehicle_SetLightsState
Stefan Unković edited this page Aug 8, 2021
·
2 revisions
Sets lights damage state, this doesn't toggle its on or off, but damaged or not.
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. |
UpdateVehicleDamageStatus
values. E.g. 1 if function executes succesfully, otherwise 0.
You can't modify back lights separately, this is default by SA:MP.
This library has been made to ease use of vehicle functions provided by SA:MP. I've spent most of my free time to develop a library that everyone can use. This is also the biggest library I've ever made. Therefore, if you find any bugs, feel free to request a pull or report me.
-
Functions
- Engines
- Lights
- Alarms
-
Doors
- Vehicle_SetDoorState
- Vehicle_GetDoorState
- Vehicle_GetDoorsLockState
- Vehicle_SetDoorsLockState
- Tires
- Vehicle_SetTireState
- Vehicle_GetTireState
- Plates
- Vehicle_GetNumberPlate
- Vehicle_SetNumberPlate
- Windows
- Vehicle_SetWindows
- Vehicle_GetWindows
- Panels
- Vehicle_SetPanelStates
- Vehicle_GetPanelStates
- Vehicle_SetBumperStates
- Vehicle_GetBumperStates
- Vehicle_GetWindshieldState