Code Monkey home page Code Monkey logo

ps-inventory's Introduction

PS-Inventory

lj-Inventory has been fully redesigned by OK1ez, under the name ps-inventory.

Future updates will be coming and we will of course support all normal monitor sizes.

Previews

Simple item guidelines (found in main directory ps-inventory)

ps-inventory Guideline

Full Inventory

image

Options Menu

image

Hotbar Slots

image

Inventory Glovebox

image

Inventory Trunk

image

Key Features

  • ALL IMAGES FOLLOW THE SAME DIMENSIONS
  • Easy Photoshop guideline template for creating custom images within ps-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

How to install ps-inventory (Latest QBCore Update)

  • Download ps-inventory from our GitHub
  • Make sure you have the latest update of qb-core
  • Make sure you have the latest update of qb-smallresources
  • Make sure you have the latest update of qb-weapons
  • Drag ps-inventory into your resources folder or any subfolder
  • Make sure that the folder is named ps-inventory and not ps-inventory-main
  • Replace all occurrences of qb-inventory with ps-inventory.
    The example below uses Visual Studio Code to replace all instances.

image

Set up the decay system

If you want the decay system to work, then please read the information below, otherwise it won't work.

You need to add a decay value for all items in your qb-core/shared/items.lua file, the variable stands for the number of days it takes to decay.

Examples:

Example of what you have to add

-- decay = The number of days it takes for an item to decay
-- delete = If set to true, the item will be removed once it decays
["decay"] = 28.0, ["delete"] = true

Example with the full item in QB-Core's shared file

['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', ["decay"] = 3.0, ["delete"] = true},

In this example, the sandwich item would take 3 days to decay and once it does, it would be removed.

Dependencies

Performance

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

Credits

Issues and Suggestions

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

Connect with us

Join our Discord for updates, support, and special early testing!

ps-inventory's People

Contributors

monkeywhisper avatar andyauk avatar 85yago avatar ok1ez avatar omikkel avatar siromgitsyou avatar complexza avatar z3rio avatar

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.