The Lab
COMPENDIUM native

COMPENDIUM_WAS_ANIMAL_OBSERVED

returns BOOL1 parambuild 1311

Returns true if the species of ped has already been observed in the compendium.

Signature

C
BOOL COMPENDIUM_WAS_ANIMAL_OBSERVED(Ped ped); // 0x23B5E9C5160BC04F b1311

Parameters

#NameType
1pedPed

Facts

Facts about COMPENDIUM_WAS_ANIMAL_OBSERVED
Name
COMPENDIUM_WAS_ANIMAL_OBSERVED
Hash
0x23B5E9C5160BC04F
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(0x23B5E9C5160BC04F, -- COMPENDIUM_WAS_ANIMAL_OBSERVED
  PlayerPedId() -- Ped ped
)
if result then
  -- ...
end
JavaScript
const result = Citizen.invokeNative("0x23B5E9C5160BC04F", // COMPENDIUM_WAS_ANIMAL_OBSERVED
  PlayerPedId(), // Ped ped
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
bool result = Function.Call<bool>((Hash)0x23B5E9C5160BC04F, // COMPENDIUM_WAS_ANIMAL_OBSERVED
  API.PlayerPedId() // Ped ped
);
All COMPENDIUM natives

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