The Lab
COMPENDIUM native

COMPENDIUM_ANIMAL_HAS_SAMPLE

returns BOOL1 parambuild 1311

Returns true if a sample has been collected for the given animal compendium entry.

Signature

C
BOOL COMPENDIUM_ANIMAL_HAS_SAMPLE(int compendiumEntry); // 0x6FC24625E4FCAC27 b1311

Parameters

#NameType
1compendiumEntryint

Facts

Facts about COMPENDIUM_ANIMAL_HAS_SAMPLE
Name
COMPENDIUM_ANIMAL_HAS_SAMPLE
Hash
0x6FC24625E4FCAC27
Namespace
Returns
BOOL
Game build
1311

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result = Citizen.InvokeNative(0x6FC24625E4FCAC27, -- COMPENDIUM_ANIMAL_HAS_SAMPLE
  0 -- int compendiumEntry
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0x6FC24625E4FCAC27", // COMPENDIUM_ANIMAL_HAS_SAMPLE
  0, // int compendiumEntry
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0x6FC24625E4FCAC27, // COMPENDIUM_ANIMAL_HAS_SAMPLE
  0 // int compendiumEntry
);
All COMPENDIUM natives

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