isModelAVehicle
IS_MODEL_A_VEHICLE0x19AAC8F07BFEC53EThe GTA V native IS_MODEL_A_VEHICLE of the STREAMING namespace, as LS:MP client scripts call it: the global function isModelAVehicle, in JavaScript and in Lua.
isModelAVehicle(model: Hash): booleanisModelAVehicle(model: Hash): booleanUsage
JavaScript
const result = isModelAVehicle(model);Lua
local result = isModelAVehicle(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.
Returns whether the specified model represents a vehicle.
Reference
- Namespace
- Streaming STREAMING
- In the game
BOOL IS_MODEL_A_VEHICLE(Hash model)- Hash
0x19AAC8F07BFEC53E