๐ง 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
Resource Dependencies
Make sure you download the build release when downloading oxmysql and ox_lib.
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
If there are any tables named storage_locations or storages you should drop them.
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
This part of the script is open, so you can add or edit any of these resource using nolag_storageunits/custom/*/*.lua.
Compatible inventory resources
Set the inventory resource you are using in the config/shared.lua:
inventory = "ox_inventory",
Resource name
Resource Link
Free
Last updated