_INVENTORY_IS_INVENTORY_ITEM_FLAG_ENABLED
2097152 (is item read?), 8388608 (is item sent/received/mailable?), 16777216 (is item consumable?)
Hash
0x245D07651B1D183BRuntime name
InventoryIsInventoryItemFlagEnabledNamespaceINVENTORY
SideClient
NameCommunity guess
Docs
Since build1207
Signature
BOOL _INVENTORY_IS_INVENTORY_ITEM_FLAG_ENABLED(Hash item, int flag);Parameters
| Name | Type | Description |
|---|---|---|
item | Hash | — |
flag | int | — |
Returns BOOL
Description
flag: https://github.com/Halen84/RDR3-Native-Flags-And-Enums/tree/main/ItemDatabaseItemFlags
2097152 (is item read?), 8388608 (is item sent/received/mailable?), 16777216 (is item consumable?)
Usage
local retval = InventoryIsInventoryItemFlagEnabled(item, flag)
-- always works, by hash
local retval = Citizen.InvokeNative(0x245D07651B1D183B, item, flag, Citizen.ReturnResultAnyway())JavaScript and C#
const retval = InventoryIsInventoryItemFlagEnabled(item, flag);
// by hash
const retval = Citizen.invokeNative('0x245D07651B1D183B', item, flag, Citizen.returnResultAnyway());bool retval = Function.Call<bool>((Hash)0x245D07651B1D183B, item, flag);- 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.
Enums and flags
- ItemDatabaseItemFlags 31 values
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.