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

# Shop sold

> Triggered when a player sells a player-owned shop.

Triggered after a player sells a player-owned shop.

```lua Event theme={null}
RegisterNetEvent("shops_creator:playersShops:shopSold", function(shopId, ownerIdentifier)

end)
```

### Parameters

| Name         | Data Type | Description                                       |
| ------------ | --------- | ------------------------------------------------- |
| `shopId`     | integer   | The shop ID (the same one that's in the database) |
| `identifier` | string    | The identifier of the old owner                   |

<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

- [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)
- [Server](/shops-creator/server/index.md)
- [Transactions](/shops-creator/server/transactions/index.md)
- [Get what objects can be sold in shop ID](/shops-creator/server/get-what-objects-can-be-sold-in-shop-id.md)
