StreamingClient

isModelAVehicle

IS_MODEL_A_VEHICLE0x19AAC8F07BFEC53E

The 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.

SignatureJavaScript
isModelAVehicle(model: Hash): boolean
SignatureLua
isModelAVehicle(model: Hash): boolean

Usage

JavaScript
const result = isModelAVehicle(model);
Lua
local result = isModelAVehicle(model)

Parameters

ParameterTypeJavaScriptLua
modelHashnumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Notes

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

Open in the interactive natives reference