_ITEMDATABASE_GET_SHOP_LAYOUT_PAGE_ITEM_KEY
Hash
0xF32BEF578B3DBAE8Runtime name
ItemdatabaseGetShopLayoutPageItemKeyNamespaceITEMDATABASE
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
| Name | Type | Description |
|---|---|---|
layout | Hash | — |
pageKey | Hash | — |
index | int | — |
outItemKey | Hash* | — |
outMenuId | int* | — |
outLayout | Hash* | — |
Returns BOOL
Usage
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#
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());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.InvokeNativeneeds the number — passjoaat("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
InvokeNativewith the hash — it always works.
Sources
Something wrong or missing? Contribute a verified note — corrections ship through pull requests.