> ## 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 dispara cuando un jugador compra un objeto o arma en un marcador de tienda.

Se dispara cuando un jugador compra un objeto/arma en un marcador de tienda.

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

### Parámetros

| Nombre | Tipo de dato | Descripción |
| - | - | - |
| `playerId` | integer | ID de servidor del jugador |
| `markerId` | integer | ID del marcador |
| `itemName` | string | Nombre del objeto o arma |
| `itemQuantity` | integer | Cantidad comprada |
| `totalPrice` | integer | Precio total pagado |


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