RedM Natives

_ITEMDATABASE_GET_BUNDLE_ACQUIRE_COSTS_COUNT_FROM_COST

Returns the number of currencies/cost entries available for a bundle and cost hash.

Hash0x388088BFF3681189
Runtime nameItemdatabaseGetBundleAcquireCostsCountFromCost
NamespaceITEMDATABASE
SideClient
NameCommunity guess
Docs
Since build1232

Signature

int _ITEMDATABASE_GET_BUNDLE_ACQUIRE_COSTS_COUNT_FROM_COST(Hash bundle, Hash cost);

Parameters

NameTypeDescription
bundleHash—
costHash—

Returns int

Description

alloc8or RDR3 NativeDB

Returns the number of currencies/cost entries available for a bundle and cost hash.
Use with _ITEMDATABASE_FILLOUT_BUNDLE; research notes that several docs call this parameter costtype, but scripts indicate it is the actual cost hash such as COST_GOLD or COST_CRAFTING_MP.

VORPCORE RDR3natives

Return the number of currencies available for a bundle. To use with _ITEMDATABASE_FILLOUT_BUNDLE
bundle: Hash — e.g: BUNDLE_CLOTHING_ITEM_F_OFFHAND_000_TINT_001
cost: Hash — e.g: COST_GOLD, COST_CRAFTING_MP...

Usage

Lua
local retval = ItemdatabaseGetBundleAcquireCostsCountFromCost(bundle, cost)

-- always works, by hash
local retval = Citizen.InvokeNative(0x388088BFF3681189, bundle, cost, Citizen.ResultAsInteger())
JavaScript and C#
JavaScript
const retval = ItemdatabaseGetBundleAcquireCostsCountFromCost(bundle, cost);

// by hash
const retval = Citizen.invokeNative('0x388088BFF3681189', bundle, cost, Citizen.returnResultAnyway(), Citizen.resultAsInteger());
C#
int retval = Function.Call<int>((Hash)0x388088BFF3681189, bundle, cost);
  • Hash parameters: the named function also accepts a string and hashes it for you; Citizen.InvokeNative needs the number — pass joaat("name") or a backtick literal like `name`.
  • The name is a community guess and may change. If the named call is missing in your client build, use InvokeNative with the hash — it always works.

Sources

alloc8or RDR3 NativeDB · VORPCORE RDR3natives

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.