#Inventory
1 messages · Page 1 of 1 (latest)
Make a table for each player’s inventory with each item ig
You can store its name with a quantity for how many items a player has or use an ID instead of name
wdym by ID? like each item will have an id? or like each singular object of an item will have an id?
im thinking like
local playerItem = {
["Sword"] = { id = "435345345345", desc = "" },
["Bob"] = { id = "645645645654", desc = ""},
}
and like a global server database module script
local ItemDatabase = {
["item_001"] = {
Name = "Sword",
Curr_quantity = 435345345345,
Description = "",
},
["item_002"] = {
Name = "Bob",
Rarity = "645645645654",
Description = "",
},
idk what people usually do
and idk where to put the server item module
Depends how complex you need the inventory to be