_GET_ITEM_INTERACTION_ENTITY_FROM_PED
item hashes: PRIMARYITEM, P_MUGCOFFEE01X_PH_R_HAND, P_BOTTLEBEER01X_PH_R_HAND
Hash
0x05A0100EA714DB68Runtime name
GetItemInteractionEntityFromPedNamespaceTASK
SideClient
NameCommunity guess
Docs
Since build1207
Signature
Entity _GET_ITEM_INTERACTION_ENTITY_FROM_PED(Ped ped, Hash item);Parameters
| Name | Type | Description |
|---|---|---|
ped | Ped | — |
item | Hash | — |
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
local retval = GetItemInteractionEntityFromPed(ped, item)
-- always works, by hash
local retval = Citizen.InvokeNative(0x05A0100EA714DB68, ped, item, Citizen.ResultAsInteger())JavaScript and C#
const retval = GetItemInteractionEntityFromPed(ped, item);
// by hash
const retval = Citizen.invokeNative('0x05A0100EA714DB68', ped, item, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x05A0100EA714DB68, ped, item);- Hash parameters: the named function also accepts a string and hashes it for you;
Citizen.InvokeNativeneeds the number — passjoaat("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
InvokeNativewith the hash — it always works.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.