VehicleClient

isThisModelACar

IS_THIS_MODEL_A_CAR0x7F6DB52EEFC96DF8

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

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

Usage

JavaScript
const result = isThisModelACar(model);
Lua
local result = isThisModelACar(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.

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

Open in the interactive natives reference