The Lab
TASK native

_GET_ITEM_INTERACTION_ENTITY_FROM_PED

returns Entity2 paramsbuild 1207

Returns the entity ped is using for the item interaction item.

Signature

C
Entity _GET_ITEM_INTERACTION_ENTITY_FROM_PED(Ped ped, Hash item); // 0x05A0100EA714DB68 b1207

Parameters

#NameType
1pedPed
2itemHash

Facts

Facts about _GET_ITEM_INTERACTION_ENTITY_FROM_PED
Name
_GET_ITEM_INTERACTION_ENTITY_FROM_PED
Hash
0x05A0100EA714DB68
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(0x05A0100EA714DB68, -- _GET_ITEM_INTERACTION_ENTITY_FROM_PED
  PlayerPedId(), -- Ped ped
  GetHashKey("name"), -- Hash item
  Citizen.ResultAsInteger()
)
print(entity)
JavaScript
const entity = Citizen.invokeNative("0x05A0100EA714DB68", // _GET_ITEM_INTERACTION_ENTITY_FROM_PED
  PlayerPedId(), // Ped ped
  GetHashKey("name"), // Hash item
  Citizen.resultAsInteger()
);
console.log(entity)
C#
int entity = Function.Call<int>((Hash)0x05A0100EA714DB68, // _GET_ITEM_INTERACTION_ENTITY_FROM_PED
  API.PlayerPedId(), // Ped ped
  (uint)API.GetHashKey("name") // Hash item
);
All TASK natives

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