SET_VEHICLE_ENGINE_ON
Starts or stops the engine on the specified vehicle.
Hash
0xB64CFA14CB9A2E78Runtime name
SetVehicleEngineOnNamespaceVEHICLE
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x2497C4717C8B881ESignature
void SET_VEHICLE_ENGINE_ON(Vehicle vehicle, BOOL value, BOOL instantly);Parameters
| Name | Type | Description |
|---|---|---|
vehicle | Vehicle | — |
value | BOOL | — |
instantly | BOOL | — |
Returns void
Description
Starts or stops the engine on the specified vehicle.
vehicle: The vehicle to start or stop the engine on.
value: true to turn the vehicle on; false to turn it off.
instantly: if true, the vehicle will be set to the state immediately; otherwise, the current driver will physically turn on or off the engine.
Usage
SetVehicleEngineOn(vehicle, value, instantly)
-- always works, by hash
Citizen.InvokeNative(0xB64CFA14CB9A2E78, vehicle, value, instantly)JavaScript and C#
SetVehicleEngineOn(vehicle, value, instantly);
// by hash
Citizen.invokeNative('0xB64CFA14CB9A2E78', vehicle, value, instantly);Function.Call((Hash)0xB64CFA14CB9A2E78, vehicle, value, instantly);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.