Installation

Welcome to the Vehicle Keys installation guide, here you can learn how to install our product completely, by following each step, we'll get a clean and smooth installation where you won't find any problems.


Download and installation

Once you've purchased the asset in the store, you can retrieve it from your portal.

Simply drag the folder ux_vehiclekeys contained in the .zip file into your server's resource folder, add the line below to your server.cfg file and restart your server !

If you have any problems with the Escrow System, please read this page and do what it says.


Configuration

You can edit the /configs/config.lua file to adapt the script as you wish.

Start by modifying the framework on which your server runs, usually ESX or QBCore. The line to edit is the one below:

UXConfig.Framework = "esx" --[[
	"qb": QBCore
	"esx": ESX Legacy
    "custom": Custom Framework, need to change /client/frameworks.lua and /server/frameworks.lua
]]

Use Keys in Items

Item keys allow for more immersive gameplay, as you interact with the keys via the inventory.

By activating this option in the script, the tablet is automatically deactivated, and everything is done directly in the inventory. To retrieve the keys of an item vehicle, go to the client or server exports.

In /configs/config.lua, set the line to true:


Create the vehiclekey item in your inventory, so that it can be used.

Example for qs-inventory in qs-inventory/shared/items:

Example for ox_inventory in ox_inventory/data/items:

Lockpick

Configuring the lock-picking system.

In /configs/config.lua, set the line to true:


Create the lockpick item in your inventory, so that it can be used.

Example for qs-inventory in qs-inventory/shared/items:

Example for ox_inventory in ox_inventory/data/items:


For a custom framework (other than ESX and QBCore) you'll need to edit client-side functions in /client/frameworks.lua and server-side functions in /client/frameworks.lua. The functions are commented out in the relevant files.

Last updated