VehicleClient

setVehicleNeedsToBeHotwired

SET_VEHICLE_NEEDS_TO_BE_HOTWIRED0xFBA550EA44404EE6

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

SignatureJavaScript
setVehicleNeedsToBeHotwired(vehicle: Vehicle, toggle: boolean): void
SignatureLua
setVehicleNeedsToBeHotwired(vehicle: Vehicle, toggle: boolean)

Usage

JavaScript
setVehicleNeedsToBeHotwired(vehicle, toggle);
Lua
setVehicleNeedsToBeHotwired(vehicle, toggle)

Parameters

ParameterTypeJavaScriptLua
vehicleVehiclenumberinteger
toggleBOOLbooleanboolean

Returns

Nothing. In JavaScript the call evaluates to undefined.

Reference

Namespace
Vehicle VEHICLE
In the game
void SET_VEHICLE_NEEDS_TO_BE_HOTWIRED(Vehicle vehicle, BOOL toggle)
Hash
0xFBA550EA44404EE6

Open in the interactive natives reference