The Lab
PED native

_APPLY_SHOP_ITEM_TO_PED

returns void5 paramsbuild 1207

Applies the clothing or body component componentHash to ped. immediately skips the gradual refresh and isMp selects the multiplayer item set.

Call _UPDATE_PED_VARIATION afterwards so the change is rendered.

Signature

C
void _APPLY_SHOP_ITEM_TO_PED(Ped ped, Hash componentHash, BOOL immediately, BOOL isMp, BOOL p4); // 0xD3A7B003ED343FD9 b1207

Parameters

#NameType
1pedPed
2componentHashHash
3immediatelyBOOL
4isMpBOOL
5p4BOOL

Facts

Facts about _APPLY_SHOP_ITEM_TO_PED
Name
_APPLY_SHOP_ITEM_TO_PED
Hash
0xD3A7B003ED343FD9
Namespace
Returns
void
Game build
1207

Examples

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

Lua
Citizen.InvokeNative(0xD3A7B003ED343FD9, -- _APPLY_SHOP_ITEM_TO_PED
  PlayerPedId(), -- Ped ped
  GetHashKey("name"), -- Hash componentHash
  false, -- BOOL immediately
  false, -- BOOL isMp
  false -- BOOL p4
)
JavaScript
Citizen.invokeNative("0xD3A7B003ED343FD9", // _APPLY_SHOP_ITEM_TO_PED
  PlayerPedId(), // Ped ped
  GetHashKey("name"), // Hash componentHash
  false, // BOOL immediately
  false, // BOOL isMp
  false // BOOL p4
);
C#
Function.Call((Hash)0xD3A7B003ED343FD9, // _APPLY_SHOP_ITEM_TO_PED
  API.PlayerPedId(), // Ped ped
  (uint)API.GetHashKey("name"), // Hash componentHash
  false, // BOOL immediately
  false, // BOOL isMp
  false // BOOL p4
);
All PED natives

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