RedM Natives

_CREATE_META_PED_OUTFIT_PED

Creates metaped from ped outfit requestId.

Hash0xEAF682A14F8E5F53
Runtime nameCreateMetaPedOutfitPed
NamespacePED
SideClient
NameCommunity guess
Docs
Since build1207

Signature

Ped _CREATE_META_PED_OUTFIT_PED(int requestId, float x, float y, float z, float heading, BOOL p5, BOOL p6, BOOL p7, BOOL p8);

Parameters

NameTypeDescription
requestIdint—
xfloat—
yfloat—
zfloat—
headingfloat—
p5BOOL—
p6BOOL—
p7BOOL—
p8BOOL—

Returns Ped

Description

Creates metaped from ped outfit requestId. See _REQUEST_METAPED_OUTFIT

Usage

Lua
local retval = CreateMetaPedOutfitPed(requestId, x, y, z, heading, p5, p6, p7, p8)

-- always works, by hash
local retval = Citizen.InvokeNative(0xEAF682A14F8E5F53, requestId, x, y, z, heading, p5, p6, p7, p8, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = CreateMetaPedOutfitPed(requestId, x, y, z, heading, p5, p6, p7, p8);

// by hash
const retval = Citizen.invokeNative('0xEAF682A14F8E5F53', requestId, x + 0.0000001, y + 0.0000001, z + 0.0000001, heading + 0.0000001, p5, p6, p7, p8, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0xEAF682A14F8E5F53, requestId, x, y, z, heading, p5, p6, p7, p8);
  • 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.

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.