Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

OK1ez/lj-inventory

 
 

Repository files navigation

LJ Inventory

Color Picking Added!

Join my Discord for updates, support, and special early testing!
https://discord.gg/projectsloth

So, I know the NoPixel 3.5 inventory update is a very controversial topic for most people. I wasn't a huge fan of it myself at first, but I liked the overall idea and concept behind it. So, here's my own take and spin on the design. This is was made off the awesome inventory ihyajb made

Runs at ~ 0.00 to 0.01 ms if you have more optimization suggestions feel free to reach out

Important, If you want the decay to work follow this steps, this is not needed if you dont want to use decay

you need to add a decay and created value in your qb-core/shared/items for all items, the decay is set to be the days the item lasts

-- created = this will get filled in with the time when it's created, just leave this
-- decay = amount of days that an item will decay
-- delete = choice whether to remove the item when it's decayed or not
["created"] = nil, ["decay"] = 28.0, ["delete"] = true

Example:
['sandwich'] = {['name'] = 'sandwich', ['label'] = 'Sandwich', ['weight'] = 200, ['type'] = 'item', ['image'] = 'sandwich.png', ['unique'] = false, ['useable'] = true, ['shouldClose'] = true,	['combinable'] = nil, ['description'] = 'Nice bread for your stomach', ["created"] = nil, ["decay"] = 3.0, ["delete"] = true},

In this example our sandwich will decay in 3 days and removed when used.

In collaboration with OnlyCats who helped reorganized and also created some custom images.

Dependencies

How to install lj-inventory (Latest QBCore Update)

  • Download source files from github
  • Make sure you have latest updated qb-core
  • Make sure you have latest updated qb-smallresources
  • Make sure you have latest updated qb-weapons
  • Drag source files into your resources folder
  • Rename folder from lj-inventory-main to lj-inventory
  • Replace all qb-inventory to lj-inventory. Example below using Visual Studio Code in replacing all instances. image

Key Features

  • ALL IMAGES FOLLOW THE SAME DIMENSIONS
  • Easy Photoshop guideline template for creating custom images within lj-inventory
  • Custom brand logo above option buttons
  • Options menu
  • Help box
  • Custom inventory images (more always being added in each new update)
  • Default weight icon easily changeable with Font Awesome icons
  • Hotkey numbers visible in inventory and hotbar slots
  • Weight progress bar
  • Tooltip has a determined height (so it won't ever go higher than visible or cut off)
  • Text overflow ellipsis used (so your product titles with never overlap the containers and instead do "...")
  • Blurred inventory background
  • Elements of NoPixel 3.5 design ideas interwoven

Previews

Simple guideline psd provided (found in main directory lj-inventory)

lj-inventory Guideline

Full Inventory

full inventory

Options Menu

options menu

Help Box

help box

Hotbar Slots

hotbar slots

Used & Removed Itembox

used & removed itembox

Inventory Shops

inventory shops

Inventory Glovebox

inventory glovebox

Inventory Trunk

inventory trunk

Credits

Issues and Suggestions

Please use the GitHub issues system to report issues or make suggestions, when making suggestion, please keep [Suggestion] in the title to make it clear that it is a suggestion.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 47.7%
  • JavaScript 40.2%
  • CSS 8.6%
  • HTML 3.5%