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

# Player shop bought object

> Triggered when a player buys an object from a player-owned shop.

Triggered after a player buys an object from a player-owned shop.

```lua Event theme={null}
RegisterNetEvent("shops_creator:playersShops:boughtObject", function(playerId, shopId, objectId, quantity, totalPrice)

end)
```

### Parameters

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

<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 objects in shop ID](/shops-creator/server/get-objects-in-shop-id.md)
- [Shop bought](/shops-creator/server/shop-bought.md)
