The Lab
STATS native

_STAT_ITEM_FISH_CAUGHT

returns void4 paramsbuild 1207

Records a caught fish for stat tracking, using the fish ped, its weight and the given category hashes.

Signature

C
void _STAT_ITEM_FISH_CAUGHT(Ped fish, float weight, Hash category, Hash subcategory); // 0xDA26263C87CCE9C1 b1207

Parameters

#NameType
1fishPed
2weightfloat
3categoryHash
4subcategoryHash

Facts

Facts about _STAT_ITEM_FISH_CAUGHT
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.

Lua
Citizen.InvokeNative(0xDA26263C87CCE9C1, -- _STAT_ITEM_FISH_CAUGHT
  PlayerPedId(), -- Ped fish
  0.0, -- float weight
  GetHashKey("name"), -- Hash category
  GetHashKey("name") -- Hash subcategory
)
JavaScript
// 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
);
C#
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
);
All STATS natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.