{"hash":"0x13D234A2A3F66E63","ns":"INVENTORY","name":"_INVENTORY_GET_INVENTORY_ID_FROM_PED","slug":"_INVENTORY_GET_INVENTORY_ID_FROM_PED","official":false,"named":true,"luaName":"InventoryGetInventoryIdFromPed","game":"rdr3","apiset":"client","returnType":"int","params":[{"name":"ped","type":"Ped"}],"summary":"Returns a unique inventory ID for this ped.","descriptions":[{"source":"alloc8or","format":"text","body":"Returns a unique inventory ID for this ped.\nFor the local player ped, it is an eInventories value.\nFor other peds, it is the inventory address casted to unsigned int.\n\nenum eInventories\n{\n\tINVENTORY_INVALID,\n\tINVENTORY_SP_PLAYER,\n\tINVENTORY_MP_PLAYER,\n\tINVENTORY_MP_MISSION,\n\tINVENTORY_SECOND_SCREEN,\n\tINVENTORY_SP_BACKUP,\n\tINVENTORY_SP_SNAPSHOT,\n\tINVENTORY_0xDE2AE452,\n\tINVENTORY_0x399D9B3A,\n\tINVENTORY_0x4BD43FA7,\n\tINVENTORY_0x9529D251,\n\tINVENTORY_0xA75776AC,\n\tINVENTORY_MAX_ID = 11,\n\tINVENTORY_IDS_COUNT\n};"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/INVENTORY/_INVENTORY_GET_INVENTORY_ID_FROM_PED","markdownUrl":"https://natives.borderlinerp.com/natives/INVENTORY/_INVENTORY_GET_INVENTORY_ID_FROM_PED.md","snippets":{"lua":"local retval = InventoryGetInventoryIdFromPed(ped)","luaInvoke":"local retval = Citizen.InvokeNative(0x13D234A2A3F66E63, ped, Citizen.ResultAsInteger())","js":"const retval = InventoryGetInventoryIdFromPed(ped);","jsInvoke":"const retval = Citizen.invokeNative('0x13D234A2A3F66E63', ped, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"int retval = Function.Call<int>((Hash)0x13D234A2A3F66E63, ped);","notes":["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."]}}