> ## 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.

# Admin shop sold object

> Triggered when a player sells an object to an admin shop.

Triggered after a player sells an object to an admin shop.

```lua Event theme={null}
RegisterNetEvent("shops_creator:adminShops:soldObject", function(playerId, shopId, itemId, quantity, totalPrice)

end)
```

### Parameters

| Name         | Data Type | Description                                       |
| ------------ | --------- | ------------------------------------------------- |
| `playerId`   | integer   | The player ID who sold the object                 |
| `shopId`     | integer   | The shop ID (the same one that's in the database) |
| `itemId`     | string    | The item ID that was sold                         |
| `quantity`   | integer   | The quantity of items sold                        |
| `totalPrice` | integer   | The total price of the items sold                 |

<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

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