RedM Natives

DOES_EXTRA_EXIST

Hash0xAF5E7E9A7620FFB5
Runtime nameDoesExtraExist
NamespaceVEHICLE
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x1262D55792428154

Signature

BOOL DOES_EXTRA_EXIST(Vehicle vehicle, int extraId);

Parameters

NameTypeDescription
vehicleVehicle—
extraIdint—

Returns BOOL

Usage

Lua
local retval = DoesExtraExist(vehicle, extraId)

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

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

Sources

alloc8or RDR3 NativeDB

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