if (command == "?deposit") then -- Are they trying to Deposit something? if (payload ~= "") then -- If they forgot to put in a item name plyr:inventory_modify(payload, -1) -- Take the item from them plyr:inventory_modify(payload .. "depot", 1) -- Give them the depot version of that item EX. Pistol's Depo version is called Pistoldepot plyr:message("You have succesfully deposited 1 " .. payload .. ".") else plyr:message("You need to Deposit something with this. E.X. ?deposit Pistol") end end if (command == "?withdraw") then -- are they trying to take something Back? if (payload ~= "") then -- If they forgot to put in an Item name if (plyr:inventory_find(payload .. "depot") >= 1) then -- they have the depot item? plyr:inventory_modify(payload .. "depot", -1) plyr:inventory_modify(payload, 1) plyr:message("You have successfuly withdrawn 1 " .. payload .. ".") else plyr:message("You have no " .. payload .. " to withdraw.") end else plyr:message("You need to Withdraw something with this. E.X. ?Withdraw Pistol") end end