Skip to content
RPScripts

FiveM Vehicle Scripts

Contract ESX

okokContract

okok Scripts

  • ESX

Description

okokContract is a vehicle purchase and sale system for FiveM ESX servers. Players sell cars to each other by filling in and signing a contract in an interactive window.

Contract for FiveM

Watch the preview video on YouTube

How it works

  • Using the contract item opens a window where the seller sets the vehicle price and a description.
  • The seller must be near another player and the vehicle to start the signing process.
  • The seller has to own the vehicle.
  • The script checks that the buyer has enough money.
  • While the contract window is open, the character plays an animation, which stops when the window closes.
  • Sounds for the popup and for accepting the contract

Configuration

  • Remove the contract item after use, or keep it
  • Move the money from the buyer's bank account to the seller's bank account automatically when the buyer signs
  • Date format shown on the contract
  • Discord log when a player sells a vehicle to another player, with bot name, server name, icon and colour

Notifications are not included.

Requirements

  • ESX
  • mysql-async

Installation

  • Copy okokContract into your resources folder and add ensure okokContract to your server.cfg.
  • Add the item: INSERT INTO `items` (`name`, `label`, `weight`) VALUES ('contract', 'Contract', 1);
  • Set your Discord webhook URL in server.lua (line 5) and the options in config.lua.
  • The vehicle name on the contract comes from <gameName> in each vehicle's vehicles.meta.

Details

Frameworks
ESX
File size
241.5 kB
Creator
okok Scripts
Updated
Sep 27, 2026
How to install it

Installation

  1. Unzip the download into your server's resources folder.
  2. Add these lines to server.cfg, in this order:
    ensure okokContract

Checked: the one resource of this download.

From a static check of the files by the RPScripts Lab. It is not a test that your server starts.

okokContract

$13.99€12.99£10.99A$20.99R$71.99CHF 11.99¥2,220

Can't find the exact script? Generate it.

Describe a custom script. 3 free credits per day, up to 15 per calendar month; no card needed.

Try the FiveM AI Script Generator