getEntityType
GET_ENTITY_TYPE0x8ACD366038D14505The GTA V native GET_ENTITY_TYPE of the ENTITY namespace, as LS:MP client scripts call it: the global function getEntityType, in JavaScript and in Lua.
getEntityType(entity: Entity): numbergetEntityType(entity: Entity): integerUsage
JavaScript
const result = getEntityType(entity);Lua
local result = getEntityType(entity)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
entity | Entity | number | integer |
Returns
int JavaScript number, Lua integerNotes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
Returns:
0 = no entity
1 = ped
2 = vehicle
3 = object
Reference
- Namespace
- Entity ENTITY
- In the game
int GET_ENTITY_TYPE(Entity entity)- Hash
0x8ACD366038D14505