The Lab
ITEMDATABASE native

_ITEMDATABASE_GET_SHOP_LAYOUT_PAGE_ITEM_KEY

returns BOOL6 paramsbuild 1207

Retrieves item index on page pageKey of the shop layout, writing its key, menu id and layout to the output parameters. Returns true on success.

Signature

C
BOOL _ITEMDATABASE_GET_SHOP_LAYOUT_PAGE_ITEM_KEY(Hash layout, Hash pageKey, int index, Hash* outItemKey, int* outMenuId, Hash* outLayout); // 0xF32BEF578B3DBAE8 b1207

Parameters

#NameType
1layoutHash
2pageKeyHash
3indexint
4outItemKeyHash* (out pointer)
5outMenuIdint* (out pointer)
6outLayoutHash* (out pointer)

Facts

Facts about _ITEMDATABASE_GET_SHOP_LAYOUT_PAGE_ITEM_KEY
Name
_ITEMDATABASE_GET_SHOP_LAYOUT_PAGE_ITEM_KEY
Hash
0xF32BEF578B3DBAE8
Namespace
Returns
BOOL
Game build
1207

Examples

Calls by hash work in every RedM runtime. Replace the placeholder arguments with your own values.

Lua
local result, outItemKey, outMenuId, outLayout = Citizen.InvokeNative(0xF32BEF578B3DBAE8, -- _ITEMDATABASE_GET_SHOP_LAYOUT_PAGE_ITEM_KEY
  GetHashKey("name"), -- Hash layout
  GetHashKey("name"), -- Hash pageKey
  0, -- int index
  Citizen.PointerValueInt(), -- Hash* outItemKey
  Citizen.PointerValueInt(), -- int* outMenuId
  Citizen.PointerValueInt(), -- Hash* outLayout
  Citizen.ReturnResultAnyway()
)
if result then
  -- ...
end
JavaScript
const [result, outItemKey, outMenuId, outLayout] = Citizen.invokeNative("0xF32BEF578B3DBAE8", // _ITEMDATABASE_GET_SHOP_LAYOUT_PAGE_ITEM_KEY
  GetHashKey("name"), // Hash layout
  GetHashKey("name"), // Hash pageKey
  0, // int index
  Citizen.pointerValueInt(), // Hash* outItemKey
  Citizen.pointerValueInt(), // int* outMenuId
  Citizen.pointerValueInt(), // Hash* outLayout
  Citizen.returnResultAnyway()
);
if (result) {
  // ...
}
C#
var outItemKeyArg = new OutputArgument();
var outMenuIdArg = new OutputArgument();
var outLayoutArg = new OutputArgument();
bool result = Function.Call<bool>((Hash)0xF32BEF578B3DBAE8, // _ITEMDATABASE_GET_SHOP_LAYOUT_PAGE_ITEM_KEY
  (uint)API.GetHashKey("name"), // Hash layout
  (uint)API.GetHashKey("name"), // Hash pageKey
  0, // int index
  outItemKeyArg, // Hash* outItemKey
  outMenuIdArg, // int* outMenuId
  outLayoutArg // Hash* outLayout
);
int outItemKey = outItemKeyArg.GetResult<int>();
int outMenuId = outMenuIdArg.GetResult<int>();
int outLayout = outLayoutArg.GetResult<int>();
All ITEMDATABASE natives

Facts compiled from community research (alloc8or/rdr3-nativedb-data, femga/rdr3_discoveries); descriptions and examples by The Lab.