EntityClient

isEntityAVehicle

IS_ENTITY_A_VEHICLE0x6AC7003FA6E5575E

The GTA V native IS_ENTITY_A_VEHICLE of the ENTITY namespace, as LS:MP client scripts call it: the global function isEntityAVehicle, in JavaScript and in Lua.

SignatureJavaScript
isEntityAVehicle(entity: Entity): boolean
SignatureLua
isEntityAVehicle(entity: Entity): boolean

Usage

JavaScript
const result = isEntityAVehicle(entity);
Lua
local result = isEntityAVehicle(entity)

Parameters

ParameterTypeJavaScriptLua
entityEntitynumberinteger

Returns

BOOL JavaScript boolean, Lua boolean

Reference

Namespace
Entity ENTITY
In the game
BOOL IS_ENTITY_A_VEHICLE(Entity entity)
Hash
0x6AC7003FA6E5575E

Open in the interactive natives reference