{"hash":"0x1CFA0219D8E1CF25","ns":"COMPENDIUM","name":"COMPENDIUM_GET_ENTRY_BY_PED_INDEX","slug":"COMPENDIUM_GET_ENTRY_BY_PED_INDEX","official":true,"named":true,"luaName":"CompendiumGetEntryByPedIndex","game":"rdr3","apiset":"client","returnType":"int","params":[{"name":"category","type":"Hash"},{"name":"ped","type":"Ped"}],"summary":"","descriptions":[],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1311","sources":["alloc8or"],"doc":1,"url":"https://natives.borderlinerp.com/natives/COMPENDIUM/COMPENDIUM_GET_ENTRY_BY_PED_INDEX","markdownUrl":"https://natives.borderlinerp.com/natives/COMPENDIUM/COMPENDIUM_GET_ENTRY_BY_PED_INDEX.md","snippets":{"lua":"local retval = CompendiumGetEntryByPedIndex(category, ped)","luaInvoke":"local retval = Citizen.InvokeNative(0x1CFA0219D8E1CF25, category, ped, Citizen.ResultAsInteger())","js":"const retval = CompendiumGetEntryByPedIndex(category, ped);","jsInvoke":"const retval = Citizen.invokeNative('0x1CFA0219D8E1CF25', category, ped, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"int retval = Function.Call<int>((Hash)0x1CFA0219D8E1CF25, category, ped);","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` ``."]}}