Git Product home page Git Product logo

esx_inventory's Introduction

esx_inventory | Only works with this es_extended

Obsolete project, don't use it for production, it is advisable only for developers if they want to make improvements.

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": "~/../"
}]

esx_inventory's People

Contributors

0rangefox avatar ushifty avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

esx_inventory's Issues

Ammo Save Problems

this is my problem and probably everyone , solved is very good , thank you now.

Stackable items Issue

If you got multiple stackable items of the same kind when you split it bugs and removes from all same items.
Example.

     Slot 1                             Slot2                        Slot3                  Slot4
1 stack of 5 waters              1 stack of 5 waters            1 stack of 5 waters            empty

If i take 2 waters from Slot 1 and put on Slot 4 then it will be:

     Slot 1                             Slot2                        Slot3                  Slot4
1 stack of 3 waters            1 stack of 3 waters           1 stack of 3 waters        1 stack of 2 waters  

EDIT: It should check somehow that changes should get only on specific slot not on all items with same name on inventory!

resource not found.

i started it, but its not being found not sure why this issue is occuring.

ensureInv why ?

Why you need ensureInv ?
Sometimes i log into server and my inventory seems empty and i need to ensureInv to fix it.
Why this is happening ?

Also sometimes it bugs also when you buy/sell/drop something.

Black Money

Black money does not appear in inventory. I am using your verison of es_extended
here is my database string:

INSERT INTO `items` (`name`, `label`, `weight`, `limit`, `rare`, `can_remove`, `description`) VALUES
('black_money', 'Dirty Money', 0, 2147483647, 0, 1, '');

Everything else seems to work fine, i just can't get black money to appear as an item.

Sometimes notSaving properly/ Sometimes Cant Use Items.

Hello, i tried your inventory and i saw that,
i) Sometimes it doesnt save items on player disconnect so you return with same items as you had last time. It saves both on user table and inventories.
ii) Sometimes you cant use items like water or bread. If i try to buy for example 10 water then i cant use but if i buy 2 i can use. If i cant use water if i drop some of them and pick up again then i can use them dunno why..

Thanks for the share btw..

esxItem error

Basicly I did averything the script asked for, es_extened, etc, etc..
When I do the command to add the items they do add but the image doesn't show unless I restart the resource.
When I press 1 or 2 to use the ammo it say's something about esxItem.

Hold and Drag

Please make it hold and drag like esx_inventoryhud instead of click and drag that would be awesome

Blip add or dump error.

I removed Createpickupdan dump because of a kind of marker, but I couldn't add it with your help in this issue I think we can fix it please help.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.