GET_ENTITY_TYPE
Returns entityType:
Hash
0x97F696ACA466B4E0Runtime name
GetEntityTypeNamespaceENTITY
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x8ACD366038D14505Signature
int GET_ENTITY_TYPE(Entity entity);Parameters
| Name | Type | Description |
|---|---|---|
entity | Entity | — |
Returns int
Description
Returns entityType: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/eEntityType
Usage
local retval = GetEntityType(entity)
-- always works, by hash
local retval = Citizen.InvokeNative(0x97F696ACA466B4E0, entity, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetEntityType(entity);
// by hash
const retval = Citizen.invokeNative('0x97F696ACA466B4E0', entity, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x97F696ACA466B4E0, entity);Enums and flags
- eEntityType 4 values
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.