Onex
Onex
Home
Products
Documentation
Changelog
Login with FiveM
  • 👋 Welcome
  • Claim Purchase
  • Translations
    • Weaponmeta
    • Voice Interaction
    • Configuration
Artifacts Tracker
  1. Onex Scripts
  2. Scripts_guides / Installation
Ctrl K

INSTALLATION#

First time installing an Onex script? Complete the Claim Purchase guide first — it covers downloading from the CFX portal, extracting files, and the general server.cfg setup. Come back here once that's done.

Confirm your bundle contents#

Your download includes two resources: onex-rental and onex-base. Both need to be placed in your server's resources directory. You can put them inside the same [onex] folder.

This asset includes two downloads: onex-rental and onex-base. You can place and start both within the same folder.

— Onex Scripts

Add to server.cfg#

This script requires an inventory resource (e.g. ox_inventory or qb-inventory) to be started before any Onex resources. Use the [onex] folder approach for clean organisation:

server.cfg
# Always start core frameworks first ensure es_extended # or: ensure qb-core ensure [inventory] # Start all Onex assets together ensure [onex]

If you prefer to list resources individually:

server.cfg
ensure es_extended # or: ensure qb-core ensure [inventory] ensure onex-base ensure onex-rental

onex-base must always start before onex-rental. The inventory resource must also be running before either of them, or the script will fail to initialise.

ADD RENTAL Receipt#

rental_receipt.pngpng
rental_receipt.png

Adding items#

Open items.lua, you will find this in qb-core/shared/items.lua. After opening add this follwing line at last

qb-core/shared/items.lua
['rental_receipt'] = { name = 'rental_receipt', label = 'Rental Receipt', weight = 10, type = 'item', image = 'rental_receipt.png', unique = true, useable = true, shouldClose = true, combinable = nil, description = 'A vehicle rental receipt' },

Set item image#

Go here qb-inventory/html/images/ and paste upeer given image.

INSTALL SQL#

Avoid using tools like XAMPP or other non-optimized local servers, as they may cause connection errors.

This script includes an essential database required for its operation. You must import it before starting your server, preferably using HeidiSQL or any other manager compatible with MariaDB/MySQL.

install.sqlsql
Preview file▶▼
Loading preview...

Fully restart your server#

Do a full server restart — do not just ensure the script in the console while live.

Last updated 3 months ago

Quick Links

All DocumentationOur Products