Scripts Guides
Installation

đź“€INSTALLATIONS

ASSET DONWLOAD

⚠️

To find the asset, you must have made the purchase using your own keymaster account. Otherwise, you can use the transfer system to move the asset to a different keymaster account.

If you need to make an update you must also do this step again, download the asset and you will get the complete update.

Once you've completed your purchase on our official website (opens in a new tab), you'll receive your asset directly in your Keymaster panel. From there, you can download the asset and follow the provided documentation for installation.

For issues related to FiveM Escrow, accounts, or asset startup errors, please visit FiveM Assets Escrow Information page to see if any of the listed solutions address your problem. Keep in mind that Escrow requires basic information such as your Keymaster account and license key for proper operation.

To start, log in to your cfx.re Keymaster (opens in a new tab) account and go to the 'Granted Assets' (opens in a new tab) section to find and download the latest release of your purchased resource.

ASSET DEPENDENCIES

DEPENDENCIES :

ASSET POSITIONING

⚠️

Ensure that you position the assets correctly by following this step. Skipping this step may result in errors related to missing exports. It's crucial not to skip this step to avoid potential issues.

To execute this asset, please adhere to the specified order outlined below. We recommend initiating both dependencies and the onex-charselect asset within the designated [onex] folder. Failing to do so may necessitate starting the dependencies first, followed by the onex-charselect. After placing your asset into your servers resource directory, navigate to your server.cfg file and open it.

server.cfg
# First we will start the cores, never below
ensure es_extended or qb-core

# Put all the dependencies file into [onex] folder 
ensure [onex]

Alternatively, if you prefer to keep things separate, utilize the following format.

server.cfg
# First we will start the cores, never below
ensure es_extended or qb-core

# Place all dependency files within a designated resources folder. 
# When doing so, ensure that you maintain the following order:

ensure onex-base
ensure onex-rental

INSTALL SQL

If you're using this script as a standalone script then you do not need to follow this step.

Execute the provided SQL queries within your database.

CREATE TABLE IF NOT EXISTS `onex_rentcar` (
  `identifier` varchar(50) DEFAULT NULL,
  `vehdata` varchar(50) DEFAULT NULL,
  `duration` varchar(50) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;
 
CREATE TABLE IF NOT EXISTS `onex_onrentcar` (
  `identifier` varchar(50) DEFAULT NULL,
  `metadata` varchar(50) DEFAULT NULL,
  `set_price` int(11) DEFAULT NULL,
  `min_rent` int(11) DEFAULT NULL,
  `max_rent` int(11) DEFAULT NULL,
  `isrented` varchar(50) DEFAULT 'false'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;

ITEM ADD ON INVENTORY

Add the Item to items.lua

Navigate to ox_inventory/data/items.lua. Scroll to the bottom or find the appropriate section to add the following code snippet:

["rental_receipt"] = {
    label = "Rental Receipt",
    weight = 0,
    stack = false,
    close = false,
    description = "A card containing all your information to identify yourself",
    client = {
        image = "id_card.png",
    }
},

Place the Item Image

Navigate to ox_inventory/web/images/. Download the image below and place it in this directory.

Rental Receipt Image