{"hash":"0x05A0100EA714DB68","ns":"TASK","name":"_GET_ITEM_INTERACTION_ENTITY_FROM_PED","slug":"_GET_ITEM_INTERACTION_ENTITY_FROM_PED","official":false,"named":true,"luaName":"GetItemInteractionEntityFromPed","game":"rdr3","apiset":"client","returnType":"Entity","params":[{"name":"ped","type":"Ped"},{"name":"item","type":"Hash"}],"summary":"item hashes: PRIMARYITEM, P_MUGCOFFEE01X_PH_R_HAND, P_BOTTLEBEER01X_PH_R_HAND","descriptions":[{"source":"alloc8or","format":"text","body":"item hashes: PRIMARYITEM, P_MUGCOFFEE01X_PH_R_HAND, P_BOTTLEBEER01X_PH_R_HAND\nhttp://prntscr.com/1qtp3bz\nhttps://github.com/femga/rdr3_discoveries/tree/master/tasks/TASK_ITEM_INTERACTION"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/TASK/_GET_ITEM_INTERACTION_ENTITY_FROM_PED","markdownUrl":"https://natives.borderlinerp.com/natives/TASK/_GET_ITEM_INTERACTION_ENTITY_FROM_PED.md","snippets":{"lua":"local retval = GetItemInteractionEntityFromPed(ped, item)","luaInvoke":"local retval = Citizen.InvokeNative(0x05A0100EA714DB68, ped, item, Citizen.ResultAsInteger())","js":"const retval = GetItemInteractionEntityFromPed(ped, item);","jsInvoke":"const retval = Citizen.invokeNative('0x05A0100EA714DB68', ped, item, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"int retval = Function.Call<int>((Hash)0x05A0100EA714DB68, ped, item);","notes":["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."]}}