Script Install
Dependencies
One Sync Infinity
[mk_utils] (Provided with script)
Targeting Resource
Setup custom inside [mk_utils]
cl_target.lua
Supported Framework
QBCORE
QBX
ESX
Custom (Setup inside [mk_utils] bridge files)
Install Steps
Install Dependencies
Download [mk_utils] from Keymaster (access provided with script purchase)
Add
mk_utils
to resource folderAdd
mk_usedvehicles
to resource folderadd
ensure mk_utils
into server.cfg (It must be added BEFORE mk_usedvehicles)Add
ensure mk_usedvehicles
to server.cfgRun
UsedVehicles.sql
or run the following query into your database
CREATE TABLE IF NOT EXISTS `mk_usedvehicles` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`seller` VARCHAR(50) NULL DEFAULT NULL,
`price` INT(11) NULL DEFAULT NULL,
`description` LONGTEXT NULL DEFAULT NULL,
`plate` VARCHAR(50) NULL DEFAULT NULL,
`model` VARCHAR(50) NULL DEFAULT NULL,
`mods` TEXT NULL DEFAULT NULL,
`location` VARCHAR(100) NULL DEFAULT NULL,
`spot` INT(11) NULL DEFAULT NULL,
`vin_number` VARCHAR(50) NULL DEFAULT NULL,
`expire_time` INT(32) NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE,
INDEX `location` (`location`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;
Make sure
ox_lib
ace permissions are inserver.cfg
add_ace resource.ox_lib command.add_ace allow
add_ace resource.ox_lib command.remove_ace allow
add_ace resource.ox_lib command.add_principal allow
add_ace resource.ox_lib command.remove_principal allow
Your server.cfg should look similar to this when finished

If using qb-core
and using the default script qb-vehiclesales
you have to either disable/remove qb-vehiclesales
or remove the location Larrys
in this script as they use the same location and will cause issues if ran together
If using qbx
and using the default script qbx_vehiclesales
you have to either disable/remove qbx_vehiclesales
or remove the location sandyOccasions
in this script as they use the same location and will cause issues if ran together
Navigate to config/locations.lua
For each Location you must set the GarageReturn
to which garage a vehicle that is purchased from this lot will default to. Not doing this will prevent the script from running.
Example:
GarageReturn = 'pillboxgarage',
Setup Inventory Integration
Last updated