COMPENDIUM_FISH_GET_LURE_SUITABILITY_BY_STAT_ITEM
Hash
0x725D52F21A5E9E81Runtime name
CompendiumFishGetLureSuitabilityByStatItemNamespaceCOMPENDIUM
SideClient
NameOfficial
Docs
Since build1207
Signature
int COMPENDIUM_FISH_GET_LURE_SUITABILITY_BY_STAT_ITEM(Hash animalType, Hash baitType);Parameters
| Name | Type | Description |
|---|---|---|
animalType | Hash | — |
baitType | Hash | — |
Returns int
Usage
local retval = CompendiumFishGetLureSuitabilityByStatItem(animalType, baitType)
-- always works, by hash
local retval = Citizen.InvokeNative(0x725D52F21A5E9E81, animalType, baitType, Citizen.ResultAsInteger())JavaScript and C#
const retval = CompendiumFishGetLureSuitabilityByStatItem(animalType, baitType);
// by hash
const retval = Citizen.invokeNative('0x725D52F21A5E9E81', animalType, baitType, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x725D52F21A5E9E81, animalType, baitType);- Hash parameters: the named function also accepts a string and hashes it for you;
Citizen.InvokeNativeneeds the number — passjoaat("name")or a backtick literal like`name`.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.