The Lab
ITEMDATABASE native

_ITEMDATABASE_GET_BUNDLE_ACQUIRE_COSTS_COUNT

returns int1 parambuild 1207

Returns the number of acquire costs defined for bundle.

Signature

C
int _ITEMDATABASE_GET_BUNDLE_ACQUIRE_COSTS_COUNT(Hash bundle); // 0x7A35A72A692BE9DB b1207

Parameters

#NameType
1bundleHash

Facts

Facts about _ITEMDATABASE_GET_BUNDLE_ACQUIRE_COSTS_COUNT
Name
_ITEMDATABASE_GET_BUNDLE_ACQUIRE_COSTS_COUNT
Hash
0x7A35A72A692BE9DB
Namespace
Returns
int
Game build
1207

Examples

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

Lua
local result = Citizen.InvokeNative(0x7A35A72A692BE9DB, -- _ITEMDATABASE_GET_BUNDLE_ACQUIRE_COSTS_COUNT
  GetHashKey("name"), -- Hash bundle
  Citizen.ResultAsInteger()
)
print(result)
JavaScript
const result = Citizen.invokeNative("0x7A35A72A692BE9DB", // _ITEMDATABASE_GET_BUNDLE_ACQUIRE_COSTS_COUNT
  GetHashKey("name"), // Hash bundle
  Citizen.resultAsInteger()
);
console.log(result)
C#
int result = Function.Call<int>((Hash)0x7A35A72A692BE9DB, // _ITEMDATABASE_GET_BUNDLE_ACQUIRE_COSTS_COUNT
  (uint)API.GetHashKey("name") // Hash bundle
);
All ITEMDATABASE natives

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