RedM Natives

_REQUEST_META_PED_COMPONENT

Hash0xF6D9E1F3560CBF8E
Runtime nameRequestMetaPedComponent
NamespacePED
SideClient
NameCommunity guess
Docs
Since build1207

Signature

Any _REQUEST_META_PED_COMPONENT(int metaPedType, Any p1, int p2, int p3, int p4);

Parameters

NameTypeDescription
metaPedTypeint—
p1Any—
p2int—
p3int—
p4int—

Returns Any

Usage

Lua
local retval = RequestMetaPedComponent(metaPedType, p1, p2, p3, p4)

-- always works, by hash
local retval = Citizen.InvokeNative(0xF6D9E1F3560CBF8E, metaPedType, p1, p2, p3, p4, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = RequestMetaPedComponent(metaPedType, p1, p2, p3, p4);

// by hash
const retval = Citizen.invokeNative('0xF6D9E1F3560CBF8E', metaPedType, p1, p2, p3, p4, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0xF6D9E1F3560CBF8E, metaPedType, p1, p2, p3, p4);
  • 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.

Enums and flags

Sources

alloc8or RDR3 NativeDB

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