# PLAYER::SET_PLAYER_MODEL

- **Hash:** `0xED40380076A31506`
- **Namespace:** PLAYER
- **Runtime name (Lua/JS):** `SetPlayerModel`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/PLAYER/SET_PLAYER_MODEL

## Signature

```c
void SET_PLAYER_MODEL(Player player, Hash modelHash, BOOL p2);
```

## Parameters

- `player` (`Player`)
- `modelHash` (`Hash`)
- `p2` (`BOOL`)

## Returns

`void`

## Description

Make sure to request the model first and wait until it has loaded.

## Usage

### Lua

```lua
SetPlayerModel(player, modelHash, p2)

-- always available, by hash
Citizen.InvokeNative(0xED40380076A31506, player, modelHash, p2)
```

### JavaScript

```js
SetPlayerModel(player, modelHash, p2);

// by hash
Citizen.invokeNative('0xED40380076A31506', player, modelHash, p2);
```

### C#

```csharp
Function.Call((Hash)0xED40380076A31506, player, modelHash, p2);
```

- Hash parameters: the named function also accepts a string and hashes it for you; `Citizen.InvokeNative` needs the number — pass `joaat("name")` or a backtick literal like `` `name` ``.

*Sources: alloc8or RDR3 NativeDB.*
