The Lab
PED native

_CREATE_META_PED_ASSET

returns Entity10 paramsbuild 1207

Based on its name and signature, here is our best reading:

Appears to create an entity for the meta ped asset asset at the given position and rotation.

Signature

C
Entity _CREATE_META_PED_ASSET(Hash asset, float posX, float posY, float posZ, float rotX, float rotY, float rotZ, BOOL p7, BOOL p8, BOOL p9); // 0x9641A9A20310F6B8 b1207

Parameters

#NameType
1assetHash
2posXfloat
3posYfloat
4posZfloat
5rotXfloat
6rotYfloat
7rotZfloat
8p7BOOL
9p8BOOL
10p9BOOL

Facts

Facts about _CREATE_META_PED_ASSET
Name
_CREATE_META_PED_ASSET
Hash
0x9641A9A20310F6B8
Namespace
Returns
Entity
Game build
1207

Examples

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

Lua
local entity = Citizen.InvokeNative(0x9641A9A20310F6B8, -- _CREATE_META_PED_ASSET
  GetHashKey("name"), -- Hash asset
  0.0, -- float posX
  0.0, -- float posY
  0.0, -- float posZ
  0.0, -- float rotX
  0.0, -- float rotY
  0.0, -- float rotZ
  false, -- BOOL p7
  false, -- BOOL p8
  false, -- BOOL p9
  Citizen.ResultAsInteger()
)
print(entity)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const entity = Citizen.invokeNative("0x9641A9A20310F6B8", // _CREATE_META_PED_ASSET
  GetHashKey("name"), // Hash asset
  0.0, // float posX
  0.0, // float posY
  0.0, // float posZ
  0.0, // float rotX
  0.0, // float rotY
  0.0, // float rotZ
  false, // BOOL p7
  false, // BOOL p8
  false, // BOOL p9
  Citizen.resultAsInteger()
);
console.log(entity)
C#
int entity = Function.Call<int>((Hash)0x9641A9A20310F6B8, // _CREATE_META_PED_ASSET
  (uint)API.GetHashKey("name"), // Hash asset
  0.0f, // float posX
  0.0f, // float posY
  0.0f, // float posZ
  0.0f, // float rotX
  0.0f, // float rotY
  0.0f, // float rotZ
  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.