okokDocs
  • About Us
  • Scripts
    • okokVehicleControl
      • Config file
    • okokMechanicJob
      • Config file
    • okokPoliceJob
      • Config file
      • qb-inventory support
    • okokBossMenu
      • Config file
    • okokMulticharacter
      • Config file
    • okokPhone
    • okokSpawnSelector
      • Config file
      • qb-multicharacter support
    • okokLoadingScreen
      • Config file
    • okokVehicleSales
      • Config file
    • okokShop
      • Config file
    • okokGasStation
      • Config file
    • okokTuning
      • Config file
    • okokGarage
      • Config file
      • RGB vehicle colors
      • Inventories metadata
      • Housing integrations
      • qb-phone support
    • okokVehicleShop
      • Config file
      • Common errors
    • okokBanking
      • Config file
      • Paycheck transactions
      • Registering transactions
    • okokMarketplace
      • Config file
      • Common errors
    • okokChat
      • Config file
      • Export
    • okokBilling
      • Config file
      • Snippets
    • okokCrafting
      • Config file
    • okokContract
      • Config file
    • okokTalkToNPC
      • Config file
    • okokReports
      • Config file
    • okokNotify
      • Config file
      • Snippets
    • okokTextUI
      • Config file
      • Snippets
    • okokRequests
    • okokDeleteVehicles
      • Config file
  • Others
    • Discord Webhook
Powered by GitBook
On this page
  • Installation Guide
  • Changing the vehicle name that appears on the contract interface
  • Server artifacts
  1. Scripts

okokContract

PreviousConfig fileNextConfig file

Last updated 1 year ago

Installation Guide

ESX

Execute the following SQL code in your database:

INSERT INTO `items` (`name`, `label`, `weight`) VALUES ('contract', 'Contract', 1);

QBCore

Navigate to qb-core/shared/items.lua and add the following code to it:

['contract'] = {['name'] = 'contract', ['label'] = 'Contract', ['weight'] = 1, ['type'] = 'item', ['image'] = 'contract.png', ['unique'] = true, ['useable'] = true, ['shouldClose'] = true, ['combinable'] = nil, ['description'] = 'A contract'},

Changing the vehicle name that appears on the contract interface

Open the vehicles.meta file of the desired vehicle, you should change the <gameName>.

Server artifacts

Make sure your server artifacts version is above the 5181.

  • Windows:

  • Linux:

YouTube Video
https://runtime.fivem.net/artifacts/fivem/build_server_windows/master/
https://runtime.fivem.net/artifacts/fivem/build_proot_linux/master/