Documentation
  • ๐Ÿ“„TeamsGG Documentation
    • Common Errors
  • Paid Scripts
    • ๐Ÿ“ฑPhone
      • ๐Ÿง Installation
      • ๐Ÿฆ„Unique phones
      • ๐Ÿ’ฟConfigure
      • โญ๏ธExports
        • Client side
        • Server side
      • ๐Ÿช›Commands
      • ๐ŸŽCustom apps
    • โ˜Ž๏ธBoomer Phone
      • ๐Ÿง Installation
      • ๐Ÿฆ„Unique phones
      • โฏ๏ธExports
        • Client side
    • ๐Ÿ Properties
      • ๐Ÿง Installation
      • ๐Ÿ’ฟConfigure
      • ๐ŸšAdd More Shells
      • โญ๏ธExports
        • Client side
          • GetCurrentPropertyId
          • GetCurrentProperty
          • IsPointInsideProperty
          • OpenPropertyMenu
          • AddKey
          • RemoveKey
          • SetWaypointToProperty
          • GetAllProperties
          • GetKeyHolders
          • PoliceRaidDoor
        • Server side
          • GetAllProperties
          • AddKey
          • RemoveKey
          • ToggleDoorlock
          • GetPlayersInProperty
          • GetKeyHolders
          • DeleteProperty
          • AddStarterApartment
      • ๐Ÿ‘œState bags
    • ๐ŸฆBanking
      • ๐Ÿง Installation
      • โฏ๏ธExports
        • Client side
        • Server side
    • ๐Ÿ’ธBilling
      • ๐Ÿง Installation
      • โญ๏ธExports
        • Client side
        • Server side
    • ๐Ÿ“ŠHud
      • ๐Ÿง Installation
      • โญ๏ธExports
        • Client side
    • ๐Ÿ“ฆStorage Units
      • ๐Ÿง Installation
Powered by GitBook
On this page
  • Resource Dependencies
  • Resource positioning
  • Database
  • Compatible Resources
  • Compatible inventory resources
  1. Paid Scripts
  2. Storage Units

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.

PreviousStorage Units

Last updated 4 months ago

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.

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

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

ox_inventory (recommended, don't use others)

โœ…

qb-inventory

โœ…

qs-inventory

โŒ

๐Ÿ“ฆ
๐Ÿง 
https://github.com/overextended/ox_inventory/releases
https://github.com/qbcore-framework/qb-inventory
https://buy.quasar-store.com/package/6304046
Releases ยท overextended/ox_libGitHub
Releases ยท overextended/oxmysqlGitHub
Logo
Logo