# PED::_CREATE_META_PED

- **Hash:** `0x0BCD4091C8EABA42`
- **Namespace:** PED
- **Runtime name (Lua/JS):** `CreateMetaPed`
- **Side:** client (game native)
- **Name status:** community guess (may change)
- **Documentation:** described
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/PED/_CREATE_META_PED

## Signature

```c
Ped _CREATE_META_PED(int requestId, float x, float y, float z, float heading, BOOL p5, BOOL p6, BOOL p7, BOOL p8, BOOL p9);
```

## Parameters

- `requestId` (`int`)
- `x` (`float`)
- `y` (`float`)
- `z` (`float`)
- `heading` (`float`)
- `p5` (`BOOL`)
- `p6` (`BOOL`)
- `p7` (`BOOL`)
- `p8` (`BOOL`)
- `p9` (`BOOL`)

## Returns

`Ped`

## Description

Only used in SP scripts, for example odriscolls1: BOOLS: true, true, true, false, false

## Usage

### Lua

```lua
local retval = CreateMetaPed(requestId, x, y, z, heading, p5, p6, p7, p8, p9)

-- always available, by hash
local retval = Citizen.InvokeNative(0x0BCD4091C8EABA42, requestId, x, y, z, heading, p5, p6, p7, p8, p9, Citizen.ResultAsInteger())
```

### JavaScript

```js
const retval = CreateMetaPed(requestId, x, y, z, heading, p5, p6, p7, p8, p9);

// by hash
const retval = Citizen.invokeNative('0x0BCD4091C8EABA42', requestId, x + 0.0000001, y + 0.0000001, z + 0.0000001, heading + 0.0000001, p5, p6, p7, p8, p9, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
```

### C#

```csharp
int retval = Function.Call<int>((Hash)0x0BCD4091C8EABA42, requestId, x, y, z, heading, p5, p6, p7, p8, p9);
```

- Float parameters: Lua integers (`10`, or whole numbers decoded from NUI/JSON) are sent as ints and read as garbage. Write `10.0` or `value + 0.0`. The generated JS wrappers add `0.0000001` to non-zero floats for the same reason.
- The name is a community guess and may change. If the named call is missing in your client build, use `InvokeNative` with the hash — it always works.

## See also

- [PED::_REQUEST_META_PED](https://natives.borderlinerp.com/natives/PED/_REQUEST_META_PED.md) — Returns requestId

*Sources: alloc8or RDR3 NativeDB.*
