RedM Natives

_ITEMDATABASE_GET_SHOP_LAYOUT_PAGE_ITEM_KEY

Hash0xF32BEF578B3DBAE8
Runtime nameItemdatabaseGetShopLayoutPageItemKey
NamespaceITEMDATABASE
SideClient
NameCommunity guess
Docs
Since build1207

Signature

BOOL _ITEMDATABASE_GET_SHOP_LAYOUT_PAGE_ITEM_KEY(Hash layout, Hash pageKey, int index, Hash* outItemKey, int* outMenuId, Hash* outLayout);

Parameters

NameTypeDescription
layoutHash—
pageKeyHash—
indexint—
outItemKeyHash*—
outMenuIdint*—
outLayoutHash*—

Returns BOOL

Usage

Lua
local retval, outItemKey, outMenuId, outLayout = ItemdatabaseGetShopLayoutPageItemKey(layout, pageKey, index)

-- always works, by hash
local retval, outItemKey, outMenuId, outLayout = Citizen.InvokeNative(0xF32BEF578B3DBAE8, layout, pageKey, index, Citizen.PointerValueInt(), Citizen.PointerValueInt(), Citizen.PointerValueInt(), Citizen.ReturnResultAnyway())
JavaScript and C#
JavaScript
const [retval, outItemKey, outMenuId, outLayout] = ItemdatabaseGetShopLayoutPageItemKey(layout, pageKey, index);

// by hash
const [retval, outItemKey, outMenuId, outLayout] = Citizen.invokeNative('0xF32BEF578B3DBAE8', layout, pageKey, index, Citizen.pointerValueInt(), Citizen.pointerValueInt(), Citizen.pointerValueInt(), Citizen.returnResultAnyway());
C#
var outItemKey = new OutputArgument();
var outMenuId = new OutputArgument();
var outLayout = new OutputArgument();
bool retval = Function.Call<bool>((Hash)0xF32BEF578B3DBAE8, layout, pageKey, index, outItemKey, outMenuId, outLayout);
// outItemKey.GetResult<int>()
// outMenuId.GetResult<int>()
// outLayout.GetResult<int>()
  • Hash parameters: the named function also accepts a string and hashes it for you; Citizen.InvokeNative needs the number — pass joaat("name") or a backtick literal like `name`.
  • Pointer (out) arguments are not passed in Lua/JS: their values are returned after the result, in order.
  • The name is a community guess and may change. If the named call is missing in your client build, use InvokeNative with the hash — it always works.

Sources

alloc8or RDR3 NativeDB

Something wrong or missing? Contribute a verified note — corrections ship through pull requests.