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

# On vehicle bought

> Se déclenche quand un joueur achète un véhicule depuis un marker de garage achetable.

Se déclenche quand un joueur achète un véhicule depuis un marker de garage achetable.

<CodeGroup>
  ```lua Event theme={null}
  RegisterNetEvent("jobs_creator:permanent_garage:vehicleBought", function(playerId, markerId, vehicleName, vehicleId)
  end)
  ```

  ```lua Example theme={null}
  RegisterNetEvent("jobs_creator:permanent_garage:vehicleBought", function(playerId, markerId, vehicleName, vehicleId)
      print("Player ID: " .. playerId .. " bought a " .. vehicleName .. " with ID " .. vehicleId .. " from marker " .. markerId)
  end)
  ```
</CodeGroup>

### Paramètres

| Nom | Type de donnée | Description |
| - | - | - |
| `playerId` | integer | Server ID du joueur |
| `markerId` | integer | ID du marker |
| `vehicleName` | string | Nom du modèle du véhicule |
| `vehicleId` | integer | ID du véhicule dans la base de données |


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