_STAT_ITEM_FISH_CAUGHT
Records a caught fish for stat tracking, using the fish ped, its weight and the given category hashes.
Signature
void _STAT_ITEM_FISH_CAUGHT(Ped fish, float weight, Hash category, Hash subcategory); // 0xDA26263C87CCE9C1 b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | fish | Ped |
| 2 | weight | float |
| 3 | category | Hash |
| 4 | subcategory | Hash |
Facts
| Name | _STAT_ITEM_FISH_CAUGHT |
|---|---|
| Hash | 0xDA26263C87CCE9C1 |
| Namespace | |
| Returns | void |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
Citizen.InvokeNative(0xDA26263C87CCE9C1, -- _STAT_ITEM_FISH_CAUGHT
PlayerPedId(), -- Ped fish
0.0, -- float weight
GetHashKey("name"), -- Hash category
GetHashKey("name") -- Hash subcategory
)// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
Citizen.invokeNative("0xDA26263C87CCE9C1", // _STAT_ITEM_FISH_CAUGHT
PlayerPedId(), // Ped fish
0.0, // float weight
GetHashKey("name"), // Hash category
GetHashKey("name") // Hash subcategory
);Function.Call((Hash)0xDA26263C87CCE9C1, // _STAT_ITEM_FISH_CAUGHT
API.PlayerPedId(), // Ped fish
0.0f, // float weight
(uint)API.GetHashKey("name"), // Hash category
(uint)API.GetHashKey("name") // Hash subcategory
);Related STATS natives
- _STAT_CARRIED_SATCHEL_ITEM_FROM_PED
- _STAT_DONATE_INCREMENT_ITEM
- _STAT_ID_DECREMENT_INT
- _STAT_ID_INCREMENT_FLOAT
- _STAT_ID_INCREMENT_INT
- _STAT_ADD_ANIMAL_SAMPLE_TARGET
- _STAT_CALCULATE_COOLDOWN
- _STAT_PHEROMONE_COOLDOWN_LEGENDARY_ANIMAL
- STAT_ADD_BOUNTY_TARGET
- STAT_BOUNTY_CAPTURED
- STAT_BOUNTY_ESCAPED
- STAT_ID_GET_BOOL
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.