The Lab
PED native

_CREATE_META_PED_OUTFIT_PED

returns Ped9 paramsbuild 1207

Creates a ped wearing the meta ped outfit loaded under requestId at the given coordinates and heading.

Signature

C
Ped _CREATE_META_PED_OUTFIT_PED(int requestId, float x, float y, float z, float heading, BOOL p5, BOOL p6, BOOL p7, BOOL p8); // 0xEAF682A14F8E5F53 b1207

Parameters

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

Facts

Facts about _CREATE_META_PED_OUTFIT_PED
Name
_CREATE_META_PED_OUTFIT_PED
Hash
0xEAF682A14F8E5F53
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(0xEAF682A14F8E5F53, -- _CREATE_META_PED_OUTFIT_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
  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("0xEAF682A14F8E5F53", // _CREATE_META_PED_OUTFIT_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
  Citizen.resultAsInteger()
);
console.log(ped)
C#
int ped = Function.Call<int>((Hash)0xEAF682A14F8E5F53, // _CREATE_META_PED_OUTFIT_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
);
All PED natives

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