setTaxiLights
SET_TAXI_LIGHTS0x598803E85E8448D9The 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.
setTaxiLights(vehicle: Vehicle, state: boolean): voidsetTaxiLights(vehicle: Vehicle, state: boolean)Usage
JavaScript
setTaxiLights(vehicle, state);Lua
setTaxiLights(vehicle, state)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
vehicle | Vehicle | number | integer |
state | BOOL | boolean | boolean |
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