VehicleClientNot in this build

setVehicleUseHornButtonForNitrous

_SET_VEHICLE_USE_HORN_BUTTON_FOR_NITROUS0x1980F68872CC2C3D

The 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.

SignatureJavaScript
setVehicleUseHornButtonForNitrous(toggle: boolean): void
SignatureLua
setVehicleUseHornButtonForNitrous(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

ParameterTypeJavaScriptLua
toggleBOOLbooleanboolean

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

Open in the interactive natives reference