RedM Natives

_GET_ITEM_INTERACTION_ENTITY_FROM_PED

item hashes: PRIMARYITEM, P_MUGCOFFEE01X_PH_R_HAND, P_BOTTLEBEER01X_PH_R_HAND

Hash0x05A0100EA714DB68
Runtime nameGetItemInteractionEntityFromPed
NamespaceTASK
SideClient
NameCommunity guess
Docs
Since build1207

Signature

Entity _GET_ITEM_INTERACTION_ENTITY_FROM_PED(Ped ped, Hash item);

Parameters

NameTypeDescription
pedPed—
itemHash—

Returns Entity

Description

item hashes: PRIMARYITEM, P_MUGCOFFEE01X_PH_R_HAND, P_BOTTLEBEER01X_PH_R_HAND
http://prntscr.com/1qtp3bz
https://github.com/femga/rdr3_discoveries/tree/master/tasks/TASK_ITEM_INTERACTION

Usage

Lua
local retval = GetItemInteractionEntityFromPed(ped, item)

-- always works, by hash
local retval = Citizen.InvokeNative(0x05A0100EA714DB68, ped, item, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = GetItemInteractionEntityFromPed(ped, item);

// by hash
const retval = Citizen.invokeNative('0x05A0100EA714DB68', ped, item, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x05A0100EA714DB68, ped, item);
  • Hash parameters: the named function also accepts a string and hashes it for you; Citizen.InvokeNative needs the number — pass joaat("name") or a backtick literal like `name`.
  • 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.