{"hash":"0x725D52F21A5E9EF6","ns":"COLLECTABLE","name":"_COLLECTABLE_GET_CATEGORY","slug":"_COLLECTABLE_GET_CATEGORY","official":false,"named":true,"luaName":"CollectableGetCategory","game":"rdr3","apiset":"client","returnType":"Hash","params":[{"name":"collectableItem","type":"Hash"}],"summary":"Used in Script Function NET_COLLECTABLES_HANDLE_ITEM_ADDED Returns collectableCategory Hash","descriptions":[{"source":"alloc8or","format":"text","body":"Used in Script Function NET_COLLECTABLES_HANDLE_ITEM_ADDED\nReturns collectableCategory Hash"}],"examples":[],"aliases":[],"enums":[],"related":[],"build":"1207","sources":["alloc8or"],"doc":2,"url":"https://natives.borderlinerp.com/natives/COLLECTABLE/_COLLECTABLE_GET_CATEGORY","markdownUrl":"https://natives.borderlinerp.com/natives/COLLECTABLE/_COLLECTABLE_GET_CATEGORY.md","snippets":{"lua":"local retval = CollectableGetCategory(collectableItem)","luaInvoke":"local retval = Citizen.InvokeNative(0x725D52F21A5E9EF6, collectableItem, Citizen.ResultAsInteger())","js":"const retval = CollectableGetCategory(collectableItem);","jsInvoke":"const retval = Citizen.invokeNative('0x725D52F21A5E9EF6', collectableItem, Citizen.returnResultAnyway(), Citizen.resultAsInteger());","csharp":"int retval = Function.Call<int>((Hash)0x725D52F21A5E9EF6, collectableItem);","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."]}}