ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. resetVehicleLampStates

Function

resetVehicleLampStates

ServerVehiclesTrilogy Hub only

Returns all of a vehicle's lamps to 'auto', i.e. working as in the game. Clears everything set with setVehicleLampState.

Syntax

bool resetVehicleLampStates(vehicle vehicle)

Arguments

vehiclevehicle
The vehicle.

Returns

true on success.

Example

addEventHandler("onVehicleExit", root, function()
    resetVehicleLampStates(source)
end)

See also