RedM Natives

SET_VEHICLE_ENGINE_ON

Starts or stops the engine on the specified vehicle.

Hash0xB64CFA14CB9A2E78
Runtime nameSetVehicleEngineOn
NamespaceVEHICLE
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x2497C4717C8B881E

Signature

void SET_VEHICLE_ENGINE_ON(Vehicle vehicle, BOOL value, BOOL instantly);

Parameters

NameTypeDescription
vehicleVehicle—
valueBOOL—
instantlyBOOL—

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

Lua
SetVehicleEngineOn(vehicle, value, instantly)

-- always works, by hash
Citizen.InvokeNative(0xB64CFA14CB9A2E78, vehicle, value, instantly)
JavaScript and C#
JavaScript
SetVehicleEngineOn(vehicle, value, instantly);

// by hash
Citizen.invokeNative('0xB64CFA14CB9A2E78', vehicle, value, instantly);
C#
Function.Call((Hash)0xB64CFA14CB9A2E78, vehicle, value, instantly);

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.