[Release] [RedEM:RP] Inventory System 2.0

RedEM: Roleplay

RedEM:RP Inventory 2.0

Version: 2.0.0

GitHub: https://github.com/RedEM-RP/redemrp_inventory/

Documentation: https://docs.kanersps.pw/docs/redem/

Description

RedEM: RP Inventory is a resource for RedM which adds a inventory system to your RedM server.

Features:

  • Custom Labels, descriptions, icons.
  • Weight System
  • Lockers
  • Define what items can be dropped and used
  • Item limit
  • Drag’n’drop
  • Easy CSS
  • Compatibility with crafting system (Minecraft like)

Requirements

RedEM:RP
RedEM:RP Identity
RedEM:RP Respawn
pNotify

Credits

Main contributors: Ktos and @amakuu
Secondary contributor/code quality assurance: @Kanersps

And of course all contributors from GitHub!

Preview

1 Like

So I just put this on a development server to test it out, and right away am getting an error at line 65 of the Create_items.lua stating…

SCRIPT ERROR: @redemrp_inventory/server/Create_items.lua:65: invalid vector field: meta
> CreateInventory (@redemrp_inventory/server/Create_items.lua:65)
> ref (@redemrp_inventory/server/sv_main.lua:25)
>  (@mysql-async/mysql-async.js:14431)

Any input on that? Both database tables are uploaded, and i reverted my inventory back to the stock 3 bread and 3 water just to start off with.

“reverted my inventory back to the stock 3 bread and 3 water” Dont do it. You need empty DB. Do not put any information in the database

What is causing the problem and how can I fix it?

this is not problems, only prints.

Is anyone made the lockers working? After i create a locker, i cant open it, but i still have the open text at the bottom.

data = {}
TriggerEvent(“redemrp_inventory:getData”,function(call)
data = call
end)

local lockerzone = {
{id=“private”, x=1117.42, y=-1300.58, z=66.38, job=nil}
}

Citizen.CreateThread(function()
while true do
for k,v in pairs(lockerzone) do
data.createLocker(v.id, v.x, v.y, v.z, v.job)
data.updateLockers(-1)
end
break
end
end)

Lockers still not working? I’ve tried everything and it doesn’t work: S

Try now after new commit