๐Ÿง Installation

Welcome to the NoLag Storage Units installation guide. Follow these steps for a smooth and easy setup. Ensure you complete all steps in the documentation for the best results.

Resource Download

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.

Resource Dependencies

Do not start the resource without having all the dependencies on your server.

Resource positioning

-- First we start the framework, never below
ensure es_extended or qb-core (or your framework name)

-- The inventory should be executed above
ensure [inventory]
-- the other scripts don't matter - they can be started before or after no difference

-- The storage units
ensure nolag_storageunits

Database

Insert the SQL

CREATE TABLE IF NOT EXISTS `storage_locations` (
    `storage` int (11) NOT NULL AUTO_INCREMENT,
    `label` varchar(50) DEFAULT NULL,
    `price` int (11) DEFAULT NULL,
    `forever` tinyint (4) DEFAULT NULL,
    `blip` tinyint (4) DEFAULT NULL,
    `rental_days` int (11) DEFAULT NULL,
    `inventory` varchar(255) DEFAULT NULL,
    `coords` varchar(255) DEFAULT NULL,
    PRIMARY KEY (`storage`)
  ) ENGINE = InnoDB AUTO_INCREMENT = 1 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_general_ci;

CREATE TABLE IF NOT EXISTS `storages` (
    `location` int (11) DEFAULT NULL,
    `owner` varchar(50) DEFAULT NULL,
    `label` varchar(50) DEFAULT NULL,
    `password` varchar(50) DEFAULT NULL,
    `rented_date` datetime DEFAULT NULL,
    `expiring_date` datetime DEFAULT NULL,
    `expired` tinyint (4) DEFAULT NULL,
    `failed_payments` int (11) DEFAULT NULL,
    `next_payment_attempt` datetime DEFAULT NULL,
    KEY `FK_storages_storage_locations` (`location`),
    CONSTRAINT `FK_storages_storage_locations` FOREIGN KEY (`location`) REFERENCES `storage_locations` (`storage`) ON DELETE CASCADE ON UPDATE CASCADE
  ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_general_ci;

Compatible Resources

Compatible inventory resources

If you don't have any of these systems, contact the inventory creator to see if they can make compatibility, otherwise don't open a ticket for this type of thing.

Set the inventory resource you are using in the config/shared.lua:

config/shared.lua
inventory = "ox_inventory",

Resource name
Resource Link
Free

Last updated