GET_ENTITY_MODEL
Signature
Hash GET_ENTITY_MODEL(Entity entity);Parameters
| Name | Type | Description |
|---|---|---|
entity | Entity | — |
Returns Hash
Usage
local retval = GetEntityModel(entity)
-- always works, by hash
local retval = Citizen.InvokeNative(0xdafcb3ec, entity, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetEntityModel(entity);
// by hash
const retval = Citizen.invokeNative('0xdafcb3ec', entity, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0xdafcb3ec, entity);Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.