IS_MODEL_A_VEHICLE
Returns whether the specified model represents a vehicle.
Hash
0x354F62672DE7DB0ARuntime name
IsModelAVehicleNamespaceSTREAMING
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x19AAC8F07BFEC53ESignature
BOOL IS_MODEL_A_VEHICLE(Hash model);Parameters
| Name | Type | Description |
|---|---|---|
model | Hash | — |
Returns BOOL
Description
Returns whether the specified model represents a vehicle.
Usage
local retval = IsModelAVehicle(model)
-- always works, by hash
local retval = Citizen.InvokeNative(0x354F62672DE7DB0A, model, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = IsModelAVehicle(model);
// by hash
const retval = Citizen.invokeNative('0x354F62672DE7DB0A', model, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0x354F62672DE7DB0A, model);- Hash parameters: the named function also accepts a string and hashes it for you;
Citizen.InvokeNativeneeds the number — passjoaat("name")or a backtick literal like`name`.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.