The Lab
PED native

_CREATE_META_PED

returns Ped10 paramsbuild 1207

Creates a meta ped from the loaded request requestId at the given coordinates and heading, and returns the 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); // 0x0BCD4091C8EABA42 b1207

Parameters

#NameType
1requestIdint
2xfloat
3yfloat
4zfloat
5headingfloat
6p5BOOL
7p6BOOL
8p7BOOL
9p8BOOL
10p9BOOL

Facts

Facts about _CREATE_META_PED
Name
_CREATE_META_PED
Hash
0x0BCD4091C8EABA42
Namespace
Returns
Ped
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local ped = Citizen.InvokeNative(0x0BCD4091C8EABA42, -- _CREATE_META_PED
  0, -- int requestId
  0.0, -- float x
  0.0, -- float y
  0.0, -- float z
  0.0, -- float heading
  false, -- BOOL p5
  false, -- BOOL p6
  false, -- BOOL p7
  false, -- BOOL p8
  false, -- BOOL p9
  Citizen.ResultAsInteger()
)
print(ped)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const ped = Citizen.invokeNative("0x0BCD4091C8EABA42", // _CREATE_META_PED
  0, // int requestId
  0.0, // float x
  0.0, // float y
  0.0, // float z
  0.0, // float heading
  false, // BOOL p5
  false, // BOOL p6
  false, // BOOL p7
  false, // BOOL p8
  false, // BOOL p9
  Citizen.resultAsInteger()
);
console.log(ped)
C#
int ped = Function.Call<int>((Hash)0x0BCD4091C8EABA42, // _CREATE_META_PED
  0, // int requestId
  0.0f, // float x
  0.0f, // float y
  0.0f, // float z
  0.0f, // float heading
  false, // BOOL p5
  false, // BOOL p6
  false, // BOOL p7
  false, // BOOL p8
  false // BOOL p9
);
All PED natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.