# PED::CREATE_PED_ON_MOUNT

- **Hash:** `0xF89AA2BD01FC06B7`
- **Namespace:** PED
- **Runtime name (Lua/JS):** `CreatePedOnMount`
- **Side:** client (game native)
- **Name status:** official
- **Documentation:** named only
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/PED/CREATE_PED_ON_MOUNT

## Signature

```c
Ped CREATE_PED_ON_MOUNT(Ped mount, Hash modelHash, int index, BOOL p3, BOOL p4, BOOL p5, BOOL p6);
```

## Parameters

- `mount` (`Ped`)
- `modelHash` (`Hash`)
- `index` (`int`)
- `p3` (`BOOL`)
- `p4` (`BOOL`)
- `p5` (`BOOL`)
- `p6` (`BOOL`)

## Returns

`Ped`

## Usage

### Lua

```lua
local retval = CreatePedOnMount(mount, modelHash, index, p3, p4, p5, p6)

-- always available, by hash
local retval = Citizen.InvokeNative(0xF89AA2BD01FC06B7, mount, modelHash, index, p3, p4, p5, p6, Citizen.ResultAsInteger())
```

### JavaScript

```js
const retval = CreatePedOnMount(mount, modelHash, index, p3, p4, p5, p6);

// by hash
const retval = Citizen.invokeNative('0xF89AA2BD01FC06B7', mount, modelHash, index, p3, p4, p5, p6, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
```

### C#

```csharp
int retval = Function.Call<int>((Hash)0xF89AA2BD01FC06B7, mount, modelHash, index, p3, p4, p5, p6);
```

- 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` ``.

## See also

- [PED::IS_PED_ON_MOUNT](https://natives.borderlinerp.com/natives/PED/IS_PED_ON_MOUNT.md)

*Sources: alloc8or RDR3 NativeDB.*
