RedM Natives

GET_ENTITY_TYPE

Returns entityType:

Hash0x97F696ACA466B4E0
Runtime nameGetEntityType
NamespaceENTITY
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x8ACD366038D14505

Signature

int GET_ENTITY_TYPE(Entity entity);

Parameters

NameTypeDescription
entityEntity—

Returns int

Description

Returns entityType: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/eEntityType

Usage

Lua
local retval = GetEntityType(entity)

-- always works, by hash
local retval = Citizen.InvokeNative(0x97F696ACA466B4E0, entity, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetEntityType(entity);

// by hash
const retval = Citizen.invokeNative('0x97F696ACA466B4E0', entity, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x97F696ACA466B4E0, entity);

Enums and flags

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.