RedM Natives

IS_MODEL_A_VEHICLE

Returns whether the specified model represents a vehicle.

Hash0x354F62672DE7DB0A
Runtime nameIsModelAVehicle
NamespaceSTREAMING
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x19AAC8F07BFEC53E

Signature

BOOL IS_MODEL_A_VEHICLE(Hash model);

Parameters

NameTypeDescription
modelHash—

Returns BOOL

Description

Returns whether the specified model represents a vehicle.

Usage

Lua
local retval = IsModelAVehicle(model)

-- always works, by hash
local retval = Citizen.InvokeNative(0x354F62672DE7DB0A, model, Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const retval = IsModelAVehicle(model);

// by hash
const retval = Citizen.invokeNative('0x354F62672DE7DB0A', model, Citizen.returnResultAnyway());
C#
bool retval = Function.Call<bool>((Hash)0x354F62672DE7DB0A, model);
  • Hash parameters: the named function also accepts a string and hashes it for you; Citizen.InvokeNative needs the number — pass joaat("name") or a backtick literal like `name`.

Sources

alloc8or RDR3 NativeDB

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