The Lab
COMPENDIUM native

COMPENDIUM_GET_MAP_DISCOVERABLE_FROM_STAT_ITEM

returns Hash4 paramsbuild 1207

Based on its name and signature, here is our best reading:

Returns a map discoverable hash associated with the given animal stat item near the coordinates.

Signature

C
Hash COMPENDIUM_GET_MAP_DISCOVERABLE_FROM_STAT_ITEM(Hash animalStatItem, float x, float y, float z); // 0x729D54121A5E9E20 b1207

Parameters

#NameType
1animalStatItemHash
2xfloat
3yfloat
4zfloat

Facts

Facts about COMPENDIUM_GET_MAP_DISCOVERABLE_FROM_STAT_ITEM
Name
COMPENDIUM_GET_MAP_DISCOVERABLE_FROM_STAT_ITEM
Hash
0x729D54121A5E9E20
Namespace
Returns
Hash
Game build
1207

Examples

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

Lua
local hash = Citizen.InvokeNative(0x729D54121A5E9E20, -- COMPENDIUM_GET_MAP_DISCOVERABLE_FROM_STAT_ITEM
  GetHashKey("name"), -- Hash animalStatItem
  0.0, -- float x
  0.0, -- float y
  0.0, -- float z
  Citizen.ResultAsInteger()
)
print(hash)
JavaScript
// Whole JS numbers are sent as integers: pass floats like 1.5 (or n + 0.0000001), never 1.
const hash = Citizen.invokeNative("0x729D54121A5E9E20", // COMPENDIUM_GET_MAP_DISCOVERABLE_FROM_STAT_ITEM
  GetHashKey("name"), // Hash animalStatItem
  0.0, // float x
  0.0, // float y
  0.0, // float z
  Citizen.resultAsInteger()
);
console.log(hash)
C#
int hash = Function.Call<int>((Hash)0x729D54121A5E9E20, // COMPENDIUM_GET_MAP_DISCOVERABLE_FROM_STAT_ITEM
  (uint)API.GetHashKey("name"), // Hash animalStatItem
  0.0f, // float x
  0.0f, // float y
  0.0f // float z
);
All COMPENDIUM natives

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