RedM Natives

GET_IS_VEHICLE_ENGINE_RUNNING

Hash0x7DC6D022
Runtime nameGetIsVehicleEngineRunning
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

BOOL GET_IS_VEHICLE_ENGINE_RUNNING(Vehicle vehicle);

Parameters

NameTypeDescription
vehicleVehicle—

Returns BOOL

Usage

Lua
local retval = GetIsVehicleEngineRunning(vehicle)

-- always works, by hash
local retval = Citizen.InvokeNative(0x7dc6d022, vehicle, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = GetIsVehicleEngineRunning(vehicle);

// by hash
const retval = Citizen.invokeNative('0x7dc6d022', vehicle, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0x7dc6d022, vehicle);

Sources

Cfx.re native reference

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