_ITEMDATABASE_GET_BUNDLE_ACQUIRE_COSTS_COUNT_FROM_COST
Returns the number of currencies/cost entries available for a bundle and cost hash.
0x388088BFF3681189ItemdatabaseGetBundleAcquireCostsCountFromCostSignature
int _ITEMDATABASE_GET_BUNDLE_ACQUIRE_COSTS_COUNT_FROM_COST(Hash bundle, Hash cost);Parameters
| Name | Type | Description |
|---|---|---|
bundle | Hash | — |
cost | Hash | — |
Returns int
Description
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.
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
local retval = ItemdatabaseGetBundleAcquireCostsCountFromCost(bundle, cost)
-- always works, by hash
local retval = Citizen.InvokeNative(0x388088BFF3681189, bundle, cost, Citizen.ResultAsInteger())JavaScript and C#
const retval = ItemdatabaseGetBundleAcquireCostsCountFromCost(bundle, cost);
// by hash
const retval = Citizen.invokeNative('0x388088BFF3681189', bundle, cost, Citizen.returnResultAnyway(), Citizen.resultAsInteger());int retval = Function.Call<int>((Hash)0x388088BFF3681189, bundle, cost);- Hash parameters: the named function also accepts a string and hashes it for you;
Citizen.InvokeNativeneeds the number — passjoaat("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
InvokeNativewith the hash — it always works.
Sources
alloc8or RDR3 NativeDB · VORPCORE RDR3natives
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.