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

# Item bought

> Triggered when a player buys an item or weapon at a shop marker.

Triggered when a player buys an item/weapon at a shop marker.

<CodeGroup>
  ```lua Event theme={null}
  RegisterNetEvent("jobs_creator:shop:boughtItem", function(playerId, markerId, itemName, itemQuantity, totalPrice)
  end)
  ```

  ```lua Example theme={null}
  RegisterNetEvent("jobs_creator:shop:boughtItem", function(playerId, markerId, itemName, itemQuantity, totalPrice)
      print("Player ID: " .. playerId .. " bought x" .. itemQuantity .. " " .. itemName .. " from shop " .. markerId)
  end)
  ```
</CodeGroup>

### Parameters

| Name           | Data Type | Description              |
| -------------- | --------- | ------------------------ |
| `playerId`     | integer   | Player's server ID       |
| `markerId`     | integer   | Marker ID                |
| `itemName`     | string    | Item name or weapon name |
| `itemQuantity` | integer   | Bought quantity          |
| `totalPrice`   | integer   | Total price paid         |


## Related topics

- [Shop](/jobs-creator/server/shop/index.md)
- [Admin shop bought object](/shops-creator/server/transactions/admin-shop-bought-object.md)
- [Player shop bought object](/shops-creator/server/transactions/player-shop-bought-object.md)
- [Shop bought](/shops-creator/server/shop-bought.md)
- [On vehicle bought](/jobs-creator/server/buyable-vehicles/on-vehicle-bought.md)
