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

> Triggered server side after a player resells a vehicle to a dealership.

This event is triggered after a player resells a vehicle to a dealership.

```lua Event theme={null}
AddEventHandler("dealerships_creator:dealerships:onVehicleResell", function(dealershipId, plate, vehicleName, playerId, resellPrice)

end)
```

### Parameters

| Name           | Data Type | Description                                    |
| -------------- | --------- | ---------------------------------------------- |
| `dealershipId` | integer   | The dealership ID where the vehicle was resold |
| `plate`        | string    | The vehicle's plate                            |
| `vehicleName`  | string    | The vehicle spawn name                         |
| `playerId`     | integer   | Player server ID who resold the vehicle        |
| `resellPrice`  | integer   | Amount of money the player received            |


## Related topics

- [Server](/dealerships-creator/server/index.md)
- [Vehicle spawned](/jobs-creator/client/buyable-vehicles/vehicle-spawned.md)
- [Buyable Vehicles](/jobs-creator/server/buyable-vehicles/index.md)
