Accueil › Documentation › Installation · origen_boosting
Ajoute la ressource à ton server.cfg. Assure-toi que ox_lib et oxmysql démarrent avant origen_boosting.
ensure ox_lib
ensure oxmysql
ensure origen_boostingExécute le SQL suivant dans ta base de données pour créer les tables nécessaires.
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;Applique la migration correspondant à ton framework. Elle ajoute la colonne vin, utilisée pour marquer les véhicules dont le VIN a été gratté.
ALTER TABLE `player_vehicles` ADD COLUMN IF NOT EXISTS `vin` INT(1) DEFAULT 0;ALTER TABLE `owned_vehicles` ADD COLUMN IF NOT EXISTS `vin` INT(1) DEFAULT 0;Tu n’as besoin d’exécuter qu’une seule des deux migrations ci-dessus, selon ton framework.
Les objets suivants doivent être ajoutés à ton système d’inventaire avant d’utiliser le script.
| Nom de l’objet | Clé de configuration | Description |
|---|---|---|
boosting_cad |
Config.Items.OpenBoostingCad |
Ouvre l’interface du CAD de boosting |
locator_remover |
Config.Items.HackLocator |
Permet de pirater le système de localisation du véhicule |
Les noms des objets peuvent être modifiés dans config/main.lua, sous Config.Items.