| Property | Value |
|---|---|
| Native Name | _INVENTORY_IS_INVENTORY_ITEM_FLAG_ENABLED |
| Hash | 0x245D07651B1D183B |
| Return Type | BOOL |
| Build | 1207 |
| API Set | client |
| Parameters | item (Hash), flag (int) |
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
Lua (Direct):
local result = InventoryIsInventoryItemFlagEnabled(item, flag)
Lua (Hash):
local result = Citizen.InvokeNative(0x245D07651B1D183B, item, flag)