RedM Natives

IS_VEHICLE_EXTRA_TURNED_ON

Hash0x42098B5
Runtime nameIsVehicleExtraTurnedOn
NamespaceCFX
SideServer
NameOfficial
Docs

Signature

BOOL IS_VEHICLE_EXTRA_TURNED_ON(Vehicle vehicle, int extraId);

Parameters

NameTypeDescription
vehicleVehicle—
extraIdint—

Returns BOOL

Usage

Lua
local retval = IsVehicleExtraTurnedOn(vehicle, extraId)

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

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

Sources

Cfx.re native reference

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