isThisModelACar
IS_THIS_MODEL_A_CAR0x7F6DB52EEFC96DF8The GTA V native IS_THIS_MODEL_A_CAR of the VEHICLE namespace, as LS:MP client scripts call it: the global function isThisModelACar, in JavaScript and in Lua.
isThisModelACar(model: Hash): booleanisThisModelACar(model: Hash): booleanUsage
JavaScript
const result = isThisModelACar(model);Lua
local result = isThisModelACar(model)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
model | Hash | number | integer |
Returns
BOOL JavaScript boolean, Lua booleanNotes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
To check if the model is an amphibious car, use isThisModelAnAmphibiousCar.
Reference
- Namespace
- Vehicle VEHICLE
- In the game
BOOL IS_THIS_MODEL_A_CAR(Hash model)- Hash
0x7F6DB52EEFC96DF8