Page cover

πŸ’ΎInstallation

Installation and download processes are straightforward and fixed. After following the specified steps, you can easily complete the installation.

Before Starting

Installation and download processes are straightforward and fixed. After following the specified steps, you can easily complete the installation. Skipping a small step can lead to significant errors in the future!

triangle-exclamation

Installation

Extract ls-inventory from the downloaded folder and install it on your server.

circle-exclamation

After installing it on your server, import the SQL database named "ls_inventory.sql" into your server's database.

circle-exclamation

Requirements

triangle-exclamation

First, make sure that the specified resources have been downloaded and installed on your server;

Framework

QB-CORE

circle-check

If you're using old qb-core version "before inventory update", find qb-core/server/player.lua after that locate these functions.

chevron-rightFunctions Required Changehashtag

Locate "self.Functions.AddItem" and replace whole function with,

Locate "self.Functions.RemoveItem" and replace whole function with,

Locate "self.Functions.GetItemBySlot" and replace whole function with,

Locate "self.Functions.GetItemByName" and replace whole function with,

Locate "self.Functions.GetItemsByName" and replace whole function with,

Locate "self.Functions.ClearInventory" and replace whole function with,

Locate "self.Functions.SetInventory" and replace whole function with,

After doing changes, its needs to look like.
circle-check

ESX

ESX, installation is really basic, first find es_extended/server/classes/player.lua after that locate these functions.

chevron-rightFunctions Required Changehashtag

Locate "self.addInventoryItem" and replace whole function with,

Locate "self.removeInventoryItem" and replace whole function with,

Locate "self.getInventoryItem" and replace whole function with,

Locate "self.hasItem" and replace whole function with,

After doing changes, its needs to look like.
triangle-exclamation
After doing changes, its needs to look like.
circle-check

Last updated