_ITEMDATABASE_IS_BUNDLE_VALID
Returns true if bundle exists in the item database. mode selects how the lookup is performed.
Signature
BOOL _ITEMDATABASE_IS_BUNDLE_VALID(Hash bundle, int mode); // 0x4308812A6E9CA62E b1207Parameters
| # | Name | Type |
|---|---|---|
| 1 | bundle | Hash |
| 2 | mode | int |
Facts
| Name | _ITEMDATABASE_IS_BUNDLE_VALID |
|---|---|
| Hash | 0x4308812A6E9CA62E |
| Namespace | |
| Returns | BOOL |
| Game build | 1207 |
Examples
Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.
local result = Citizen.InvokeNative(0x4308812A6E9CA62E, -- _ITEMDATABASE_IS_BUNDLE_VALID
GetHashKey("name"), -- Hash bundle
0 -- int mode
)
if result then
-- ...
endconst result = Citizen.invokeNative("0x4308812A6E9CA62E", // _ITEMDATABASE_IS_BUNDLE_VALID
GetHashKey("name"), // Hash bundle
0, // int mode
Citizen.returnResultAnyway()
);
if (result) {
// ...
}bool result = Function.Call<bool>((Hash)0x4308812A6E9CA62E, // _ITEMDATABASE_IS_BUNDLE_VALID
(uint)API.GetHashKey("name"), // Hash bundle
0 // int mode
);Related ITEMDATABASE natives
- _ITEMDATABASE_IS_KEY_VALID
- _ITEMDATABASE_IS_SHOP_KEY_VALID
- _ITEMDATABASE_IS_SHOP_LAYOUT_KEY_VALID
- _ITEMDATABASE_IS_INTRINSIC_ITEM
- _ITEMDATABASE_IS_OVERPOWERED_ITEM
- _ITEMDATABASE_DOES_BUNDLE_HAVE_TAG
- _ITEMDATABASE_FILLOUT_BUNDLE
- _ITEMDATABASE_FILLOUT_BUNDLE_UI_DATA
- _ITEMDATABASE_GET_BUNDLE_ACQUIRE_COST
- _ITEMDATABASE_GET_BUNDLE_ACQUIRE_COST_MODIFIERS
- _ITEMDATABASE_GET_BUNDLE_ACQUIRE_COSTS_COUNT
- _ITEMDATABASE_GET_BUNDLE_ACQUIRE_COSTS_COUNT_FROM_COST
Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.