_COLLECTABLE_GET_CATEGORY
Returns the category hash of the given collectable item.
Signature
Hash _COLLECTABLE_GET_CATEGORY(Hash collectableItem); // 0x725D52F21A5E9EF6 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | collectableItem | Hash |
Facts
| Name | _COLLECTABLE_GET_CATEGORY |
|---|---|
| Hash | 0x725D52F21A5E9EF6 |
| Namespace | |
| Returns | Hash |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local hash = Citizen.InvokeNative(0x725D52F21A5E9EF6, -- _COLLECTABLE_GET_CATEGORY
GetHashKey("name"), -- Hash collectableItem
Citizen.ResultAsInteger()
)
print(hash)const hash = Citizen.invokeNative("0x725D52F21A5E9EF6", // _COLLECTABLE_GET_CATEGORY
GetHashKey("name"), // Hash collectableItem
Citizen.resultAsInteger()
);
console.log(hash)int hash = Function.Call<int>((Hash)0x725D52F21A5E9EF6, // _COLLECTABLE_GET_CATEGORY
(uint)API.GetHashKey("name") // Hash collectableItem
);Related COLLECTABLE natives
- _COLLECTABLE_GET_COLLECTABLE_ITEM_HASH
- _COLLECTABLE_CATEGORY_GET_NUM_COLLECTABLES
- _COLLECTABLE_CATEGORY_GET_NUM_FOUND
- _COLLECTABLE_CATEGORY_GET_NUM_TURNED_IN
- _COLLECTABLE_CATEGORY_GET_TOAST_TEXTURE_DICTIONARY
- _COLLECTABLE_CATEGORY_GET_TOAST_TEXTURE_NAME
- _COLLECTABLE_GET_IPL
- _COLLECTABLE_GET_NUM_FOUND
- _COLLECTABLE_GET_NUM_TURNED_IN
- _COLLECTABLE_GET_PLACEMENT_LOCATION
- _COLLECTABLE_GET_SUBCATEGORY
- COLLECTABLE_GET_CATEGORY_ITEM_SET_BUY_AWARD
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.