setVehicleSearchlight
SET_VEHICLE_SEARCHLIGHT0x14E85C5EE7A4D542The GTA V native SET_VEHICLE_SEARCHLIGHT of the VEHICLE namespace, as LS:MP client scripts call it: the global function setVehicleSearchlight, in JavaScript and in Lua.
setVehicleSearchlight(
heli: Vehicle,
toggle: boolean,
canBeUsedByAI: boolean
): voidsetVehicleSearchlight(
heli: Vehicle,
toggle: boolean,
canBeUsedByAI: boolean
)Usage
JavaScript
setVehicleSearchlight(heli, toggle, canBeUsedByAI);Lua
setVehicleSearchlight(heli, toggle, canBeUsedByAI)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
heli | Vehicle | number | integer |
toggle | BOOL | boolean | boolean |
canBeUsedByAI | 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.
Only works during nighttime.
Reference
- Namespace
- Vehicle VEHICLE
- In the game
void SET_VEHICLE_SEARCHLIGHT(Vehicle heli, BOOL toggle, BOOL canBeUsedByAI)- Hash
0x14E85C5EE7A4D542