[Free][QbCore] Pappu-InventoryNp

Pappu-inventorynp

Inventory Feature for QBCore Inventorynp And inspired by NoPixel 4.0.

Github Link

Features

  • All Images Follow The Same Dimensions
  • 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 “…”)

Installation

Manual

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

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 & Original Repository

License

GPL-3.0 license

3 Likes

does this have the updated qbcore coding in it?

Yes Sir

i actually just looked. sorry but its not on the current update event of createshops in the coding

RegisterNetEvent(‘qb-inventory:server:openVending’, function()
local src = source
local Player = QBCore.Functions.GetPlayer(src)
if not Player then return end
CreateShop({
name = ‘vending’,
label = ‘Vending Machine’,
coords = vendingMachineCoords,
slots = config.VendingItems,
items = Config.VendingItems
})
OpenShop(src, ‘vending’)
end)

1 Like

not hating, but this script is already exist before by iONDegen and what you do is just remove the function for making the item visible on the ground

you can clearly see the remain of deleted line on server.lua and also the prop list is still in the config. xD
and also the fact you change the script name is kinda…
never seen someone make ps/qb inventory edit and renamed it :face_with_raised_eyebrow:

1 Like

This is literally my inventory haha

so true, i’ve been seeing this person releasing script that just straight ripoff from someone else and just renaming the script + the triggerevent inside the script

Does yours have the updated qb-core coding?