# CFX::GET_ENTITY_MODEL

- **Hash:** `0xDAFCB3EC`
- **Namespace:** CFX
- **Runtime name (Lua/JS):** `GetEntityModel`
- **Side:** server (Cfx runtime native)
- **Name status:** official
- **Documentation:** named only
- **URL:** https://natives.borderlinerp.com/natives/CFX/GET_ENTITY_MODEL

## Signature

```c
Hash GET_ENTITY_MODEL(Entity entity);
```

## Parameters

- `entity` (`Entity`)

## Returns

`Hash`

## Usage

### Lua

```lua
local retval = GetEntityModel(entity)

-- always available, by hash
local retval = Citizen.InvokeNative(0xdafcb3ec, entity, Citizen.ResultAsInteger())
```

### JavaScript

```js
const retval = GetEntityModel(entity);

// by hash
const retval = Citizen.invokeNative('0xdafcb3ec', entity, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
```

### C#

```csharp
int retval = Function.Call<int>((Hash)0xdafcb3ec, entity);
```

*Sources: Cfx.re native reference.*
