setVehicleUseHornButtonForNitrous
_SET_VEHICLE_USE_HORN_BUTTON_FOR_NITROUS0x1980F68872CC2C3DThe GTA V native _SET_VEHICLE_USE_HORN_BUTTON_FOR_NITROUS of the VEHICLE namespace, as LS:MP client scripts call it: the global function setVehicleUseHornButtonForNitrous, in JavaScript and in Lua.
setVehicleUseHornButtonForNitrous(toggle: boolean): voidsetVehicleUseHornButtonForNitrous(toggle: boolean)⚠
Not in this game build
The global exists, but the native is not part of the game build LS:MP runs: calling it does nothing and returns undefined in JavaScript, nil in Lua. It never throws. See Coverage.
Usage
JavaScript
setVehicleUseHornButtonForNitrous(toggle);Lua
setVehicleUseHornButtonForNitrous(toggle)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
toggle | BOOL | boolean | boolean |
Returns
Nothing. In JavaScript the call evaluates to undefined.
Reference
- Namespace
- Vehicle VEHICLE
- In the game
void _SET_VEHICLE_USE_HORN_BUTTON_FOR_NITROUS(BOOL toggle)- Hash
0x1980F68872CC2C3D- Introduced
- Game build 3095 legacy numbering