# ITEMDATABASE::_ITEMDATABASE_GET_SHOP_LAYOUT_PAGE_ITEM_KEY

- **Hash:** `0xF32BEF578B3DBAE8`
- **Namespace:** ITEMDATABASE
- **Runtime name (Lua/JS):** `ItemdatabaseGetShopLayoutPageItemKey`
- **Side:** client (game native)
- **Name status:** community guess (may change)
- **Documentation:** named only
- **Since game build:** 1207
- **URL:** https://natives.borderlinerp.com/natives/ITEMDATABASE/_ITEMDATABASE_GET_SHOP_LAYOUT_PAGE_ITEM_KEY

## Signature

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

## Parameters

- `layout` (`Hash`)
- `pageKey` (`Hash`)
- `index` (`int`)
- `outItemKey` (`Hash*`)
- `outMenuId` (`int*`)
- `outLayout` (`Hash*`)

## Returns

`BOOL`

## Usage

### Lua

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

-- always available, by hash
local retval, outItemKey, outMenuId, outLayout = Citizen.InvokeNative(0xF32BEF578B3DBAE8, layout, pageKey, index, Citizen.PointerValueInt(), Citizen.PointerValueInt(), Citizen.PointerValueInt(), Citizen.ReturnResultAnyway())
```

### JavaScript

```js
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#

```csharp
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.*
