GET_ENTITY_MODEL
Returns the model hash from the entity
Hash
0xDA76A9F39210D365Runtime name
GetEntityModelNamespaceENTITY
SideClient
NameOfficial
Docs
Since build1207
GTA V hash
0x9F47B058362C84B5Signature
Hash GET_ENTITY_MODEL(Entity entity);Parameters
| Name | Type | Description |
|---|---|---|
entity | Entity | — |
Returns Hash
Description
Returns the model hash from the entity
Usage
local retval = GetEntityModel(entity)
-- always works, by hash
local retval = Citizen.InvokeNative(0xDA76A9F39210D365, entity, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetEntityModel(entity);
// by hash
const retval = Citizen.invokeNative('0xDA76A9F39210D365', entity, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0xDA76A9F39210D365, entity);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.