OrigenNetwork
Docs

Installation · origen_boosting

server.cfg

Add the resource to your server.cfg. Make sure ox_lib and oxmysql are started before origen_boosting.

cfg
ensure ox_lib
ensure oxmysql
ensure origen_boosting

SQL

Run the following SQL on your database to create the required tables.

Main tables

sql
CREATE TABLE IF NOT EXISTS `origen_boosting` (
	`identifier` varchar(100) NOT NULL,
	`name` varchar(50) NOT NULL,
	`experience` int(11) NOT NULL DEFAULT 0,
	`history` longtext NOT NULL DEFAULT '{}',
	`saved` longtext NOT NULL DEFAULT '{}',
	PRIMARY KEY (`identifier`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
 
CREATE TABLE `origen_boosting_contracts` (
	`id` INT(11) NOT NULL AUTO_INCREMENT,
	`label` VARCHAR(50) NOT NULL DEFAULT 'ContractName' COLLATE 'utf8mb4_general_ci',
	`vehicle` LONGTEXT NOT NULL COLLATE 'utf8mb4_general_ci',
	`guards` INT(11) NOT NULL DEFAULT '0',
	`weapon` VARCHAR(50) NOT NULL DEFAULT '0' COLLATE 'utf8mb4_general_ci',
	`reward` INT(11) NOT NULL DEFAULT '0',
	`experience` INT(11) NOT NULL DEFAULT '0',
	`category` VARCHAR(2) NOT NULL DEFAULT '0' COLLATE 'utf8mb4_general_ci',
	`difficulty` INT(11) NOT NULL DEFAULT '0',
	`vin` INT(11) NOT NULL DEFAULT '0',
	`price` INT(11) NOT NULL DEFAULT '0',
	PRIMARY KEY (`id`) USING BTREE
) COLLATE='utf8mb4_general_ci' ENGINE=InnoDB AUTO_INCREMENT=18;
 
CREATE TABLE `origen_boosting_market` (
	`id` VARCHAR(50) NOT NULL DEFAULT '' COLLATE 'utf8mb4_general_ci',
	`seller` VARCHAR(50) NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci',
	`expire_at` VARCHAR(50) NULL DEFAULT NULL COLLATE 'utf8mb3_general_ci',
	`data` LONGTEXT NULL DEFAULT NULL COLLATE 'utf8mb3_general_ci',
	PRIMARY KEY (`id`) USING BTREE
) COLLATE='utf8mb3_general_ci' ENGINE=InnoDB;

Framework migrations

Apply the migration for your framework. This adds the vin column used to mark vehicles with VIN scratch.

QBCore / QBX

sql
ALTER TABLE `player_vehicles` ADD COLUMN IF NOT EXISTS `vin` INT(1) DEFAULT 0;

ESX

sql
ALTER TABLE `owned_vehicles` ADD COLUMN IF NOT EXISTS `vin` INT(1) DEFAULT 0;

You only need to run one of the two migrations above, depending on your framework.


Required items

The following items must be added to your inventory system before using the script.

Item nameConfig keyDescription
boosting_cadConfig.Items.OpenBoostingCadOpens the boosting CAD interface
locator_removerConfig.Items.HackLocatorAllows hacking the vehicle locator system

Item names can be changed in config/main.lua under Config.Items.