The Lab
MISC native

_GET_PED_FROM_INDEXED_ITEM

returns Ped1 parambuild 1207

Returns the ped referenced by the item set entry item.

Signature

C
Ped _GET_PED_FROM_INDEXED_ITEM(ScrHandle item); // 0x3FFB15534067DCD4 b1207

Parameters

#NameType
1itemScrHandle

Facts

Facts about _GET_PED_FROM_INDEXED_ITEM
Name
_GET_PED_FROM_INDEXED_ITEM
Hash
0x3FFB15534067DCD4
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(0x3FFB15534067DCD4, -- _GET_PED_FROM_INDEXED_ITEM
  0, -- ScrHandle item
  Citizen.ResultAsInteger()
)
print(ped)
JavaScript
const ped = Citizen.invokeNative("0x3FFB15534067DCD4", // _GET_PED_FROM_INDEXED_ITEM
  0, // ScrHandle item
  Citizen.resultAsInteger()
);
console.log(ped)
C#
int ped = Function.Call<int>((Hash)0x3FFB15534067DCD4, // _GET_PED_FROM_INDEXED_ITEM
  0 // ScrHandle item
);
All MISC natives

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