RedM Natives

COMPENDIUM_FISH_GET_LURE_SUITABILITY_BY_STAT_ITEM

Hash0x725D52F21A5E9E81
Runtime nameCompendiumFishGetLureSuitabilityByStatItem
NamespaceCOMPENDIUM
SideClient
NameOfficial
Docs
Since build1207

Signature

int COMPENDIUM_FISH_GET_LURE_SUITABILITY_BY_STAT_ITEM(Hash animalType, Hash baitType);

Parameters

NameTypeDescription
animalTypeHash—
baitTypeHash—

Returns int

Usage

Lua
local retval = CompendiumFishGetLureSuitabilityByStatItem(animalType, baitType)

-- always works, by hash
local retval = Citizen.InvokeNative(0x725D52F21A5E9E81, animalType, baitType, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = CompendiumFishGetLureSuitabilityByStatItem(animalType, baitType);

// by hash
const retval = Citizen.invokeNative('0x725D52F21A5E9E81', animalType, baitType, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x725D52F21A5E9E81, animalType, baitType);
  • 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`.

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.