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

> Se déclenche quand un joueur achète un item ou une arme à un marker de boutique.

Se déclenche quand un joueur achète un item/arme à un marker de boutique.

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

### Paramètres

| Nom | Type de donnée | Description |
| - | - | - |
| `playerId` | integer | Server ID du joueur |
| `markerId` | integer | ID du marker |
| `itemName` | string | Nom de l'item ou de l'arme |
| `itemQuantity` | integer | Quantité achetée |
| `totalPrice` | integer | Prix total payé |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.