VehicleClient

setTaxiLights

SET_TAXI_LIGHTS0x598803E85E8448D9

The GTA V native SET_TAXI_LIGHTS of the VEHICLE namespace, as LS:MP client scripts call it: the global function setTaxiLights, in JavaScript and in Lua.

SignatureJavaScript
setTaxiLights(vehicle: Vehicle, state: boolean): void
SignatureLua
setTaxiLights(vehicle: Vehicle, state: boolean)

Usage

JavaScript
setTaxiLights(vehicle, state);
Lua
setTaxiLights(vehicle, state)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
stateBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

This is not tested - it's just an assumption.
- Nac

Doesn't seem to work. I'll try with an int instead. --JT

Read the scripts, im dumpass.

if (!isTaxiLightOn(l_115)) {
    setTaxiLights(l_115, 1);
}

Reference

Namespace
Vehicle VEHICLE
In the game
void SET_TAXI_LIGHTS(Vehicle vehicle, BOOL state)
Hash
0x598803E85E8448D9

Open in the interactive natives reference