> ## Documentation Index
> Fetch the complete documentation index at: https://docs.jaksam-scripts.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get what objects can be sold in shop ID

> Get which objects a player can sell in a shop, based on its whitelist/blacklist settings.

This export returns which objects the player can sell in the shop ID, depending on the shop's whitelist/blacklist and on whether the shop is allowed to manage weapons and/or items.

```lua Export theme={null}
local sellableObjects = getSellableObjectsForShopId(playerId, shopId)
```

### Parameters

| Name       | Data Type | Description                                       |
| ---------- | --------- | ------------------------------------------------- |
| `playerId` | integer   | The player server ID                              |
| `shopId`   | integer   | The shop ID (the same one that's in the database) |

### Output example

```lua theme={null}
{
	[1] = {
	        ["name"] = "accesscard",
	        ["count"] = 14,
	        ["label"] = "Access Card",
	        ["type"] = "item",
        },
	[2] = {
		["name"] = "bag",
		["count"] = 49,
		["label"] = "Bag",
		["type"] = "item",
	},
	[3] = {
		["name"] = "WEAPON_COMPACTLAUNCHER",
		["count"] = 1,
		["label"] = "Compact launcher",
		["type"] = "weapon",
	},
	[4] = {
		["name"] = "WEAPON_MACHINEPISTOL",
		["count"] = 1,
		["label"] = "Machine pistol",
		["type"] = "weapon",
	}
}
```

<Note>
  Place this code in the file `integrations/sv_integrations.lua` of the script, at the bottom of the file on new lines.
</Note>


## Related topics

- [Get objects in shop ID](/shops-creator/server/get-objects-in-shop-id.md)
- [Server](/shops-creator/server/index.md)
- [Admin shop sold object](/shops-creator/server/transactions/admin-shop-sold-object.md)
- [Player shop sold object](/shops-creator/server/transactions/player-shop-sold-object.md)
- [Shop sold](/shops-creator/server/shop-sold.md)
