Skip to content

10% off shop orders, applied at checkoutBlack Friday: 30% off until Dec 1Server templatesServer templates

RPScripts

FiveM Vehicle Scripts

Contract ESX

okokContract

okok ScriptsBought 11 times
Frameworks:
  • ESX

Checked by the RPScripts Lab

  • Static check: 1 resource read
What was checked
Check compatibility with your server

Details

Frameworks
ESX
Dependencies
mysql-async
File size
241.5 kB
Creator
okok Scripts
Licence and support terms
  • Licence: for your own server or project. No resale or sharing.
  • Updates: when a newer file is available, it appears in your account downloads.
  • Support: download access and product-specific setup questions.
Licence and support terms

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

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.

Server setup

Step-by-step guide: how to install a FiveM script

Checked: the only resource of this download.

In your downloads
  • JG Dealerships
    • ESX
    • QBCore, Qbox
    Not for your framework

    JG Dealerships

    JG Scripts

    $30.00$21.00
  • Car Radio
    • ESX
    • QBCore, vRP
    Not for your framework

    Car Music System V3 [Standalone]

    $14.99$10.49
  • Simple ESX HUD FiveM resource preview
    • ESX
    • Standalone, QBCore, Qbox

    Airbags Script

    Big Daddy

    $9.00$6.30
  • mCarControl
    • ESX
    • QBCore
    Not for your framework

    CodeM mCarControl

    CodeM

    $5.00$3.50
  • Quasar Vehiclekeys 2.0 FiveM resource preview 2
    • ESX
    • Standalone, QBCore, Qbox

    Quasar Vehiclekeys

    Quasar Scripts

    $10.00$7.00
  • CodeM mVehicleshop v2 FiveM resource preview
    • ESX
    • QBCore, Qbox
    Not for your framework

    CodeM mVehicleshop v2

    CodeM

    $15.00$10.50
  • Smart Motorways
    • ESX
    • QBCore, Qbox, vRP
    Not for your framework

    London Studios Smart Motorways

    London Studios

    $30.00$21.00
  • vehicle Shop
    • ESX
    Not for your framework

    okok Vehicle Shop (ESX)

    okok Scripts

    $23.99$16.79