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

# Selling a car with the contract

> Sell or give your car to another player with the vehicle sale contract: the money, the car and its keys change hands

With the **vehicle sale contract** item a player sells one of their cars to another player. When the buyer signs, the money moves, the car becomes the buyer's in the database and the keys change hands.

## For the seller

**1. Go to your car**

Stand within 15 m of the car you want to sell. It must be a car you own.

**2. Use the contract**

Use the **Vehicle transfer contract** (`vehicle_transfer_contract`) from your inventory. The **Vehicle sale contract** opens with the car and its plate.

**3. Write the price**

A whole number of dollars. **0** gives the car away for free.

**4. Pick the buyer**

The nearest player (within 8 m) is offered for you. You can also write their **Player ID**, or press **Click the buyer on screen** and click them.

**5. Send it**

Press **Sign and send**. You read "Sent: you get a message if the buyer signs".

The contract item is used up only when the buyer signs.

## For the buyer

The contract opens on your screen with the car, the plate, the seller and the price.

* **Sign and pay** buys the car. The money is taken from your bank account and the car and its keys become yours
* **Refuse** cancels the sale

> [!WARNING]
>
> Copies of the keys the old owner gave to other players still work after the sale. As the new owner, open the keys list and use **Change the lock** to make them useless. See [Remote and keys list](https://docs.jaksam-scripts.com/vehicles-keys/guides/remote-and-keys-list.md#change-the-lock).

## When the sale fails

| Message | Why |
| - | - |
| No close vehicle | The seller is not near a car they have keys for |
| This buyer already has a sale to sign | Wait until the buyer signs or refuses the other contract |
| Sale cancelled: not enough money in Bank | The buyer can't pay |
| Sale cancelled: you need a vehicle sale contract | The seller no longer has the contract item |
| The seller left the server: sale cancelled | The seller disconnected before the buyer signed |

## For the admin

| Where | Option | What it does |
| - | - | - |
| `/vehiclekeys` > Settings | Vehicle transfer contract > Item name | `vehicle_transfer_contract` by default |
| `/vehiclekeys` > Settings | Discord webhooks > Vehicle sales (transfer contract) | A log of every sale on Discord |
| `vehicles_keys/integrations/sv_integrations.lua` | `VEHICLE_TRANSFER_ACCOUNT` | The account the money moves through, `"bank"` by default |

The item is listed in [Installation > Items](https://docs.jaksam-scripts.com/vehicles-keys/installation.md#items).


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