/esx_inventory

An Inventory for ESX framework

Primary LanguageLuaGNU General Public License v3.0GPL-3.0

esx_inventory | Only works with this es_extended

I will accept PR or do bug fixes, if you found one, just report it on section "issues". You can join on my support discord to get help.

Description

Adds the following features

  • Inventory HUD Image from Imgur Image from Imgur
  • Drops HUD Image from Imgur Image from Imgur
  • Shops HUD Image from Imgur
  • Glovebox HUD Image from Imgur
  • Trunks HUD Image from Imgur Image from Imgur
  • Weapons as Items Image from Imgur

Explanation

Weapons as Items

Weapons are read from the items table with the prefix WEAPON_. Add all usable weapons into the items table with their limit. Ammo for each weapon is stored in ammos with amount of bullets, Ammos are read from the items table with the prefix AMMO_. Add all usable ammos into the items table with their limit and the use of ammo can be configurable on config.lua.

Hotbar Keys

The weapon wheel is disabled for the use of hot keys. Weapons being used as items is needed in this case

Installation

Add the esx_inventory to resource folder [esx]/[inventory]

Execute SQL : esx_inventory.sql

Add the following lines to your config:

start esx_inventory

Editing CSS

The source CSS is written in SASS, which is a superset of the CSS3 syntax. Compiling this will require some form of a SASS compiler to compile it into valid vanilla CSS that a browser (or in this case, NUI/CEF) can understand and parse. Can easily get a Visual Studio Code extension to achieve this, a good one to try is Live SASS Compiler, once installed add the below to your VSCode config and it'll compile the SCSS files into CSS and put it in the correct location.

"liveSassCompile.settings.formats": [{
        "format": "compressed",
        "extensionName": ".css",
        "savePath": "~/../"
}]