RedM Natives

GET_ENTITY_MODEL

Returns the model hash from the entity

Hash0xDA76A9F39210D365
Runtime nameGetEntityModel
NamespaceENTITY
SideClient
NameOfficial
Docs
Since build1207
GTA V hash0x9F47B058362C84B5

Signature

Hash GET_ENTITY_MODEL(Entity entity);

Parameters

NameTypeDescription
entityEntity—

Returns Hash

Description

Returns the model hash from the entity

Usage

Lua
local retval = GetEntityModel(entity)

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

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

Sources

alloc8or RDR3 NativeDB

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