Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PS.Config = {}
- -- Edit below
- PS.Config.CommunityName = "Item Shop"
- PS.Config.DataProvider = 'pdata'
- PS.Config.Branch = 'https://raw.github.com/adamdburton/pointshop/master/' -- Master is most stable, used for version checking.
- PS.Config.CheckVersion = true -- Do you want to be notified when a new version of Pointshop is avaliable?
- PS.Config.ShopKey = 'F3' -- F1, F2, F3 or F4, or blank to disable
- PS.Config.ShopCommand = 'ps_shop' -- Console command to open the shop, set to blank to disable
- PS.Config.ShopChatCommand = '!shop' -- Chat command to open the shop, set to blank to disable
- PS.Config.NotifyOnJoin = false -- Should players be notified about opening the shop when they spawn?
- PS.Config.PointsOverTime = true -- Should players be given points over time?
- PS.Config.PointsOverTimeDelay = 2 -- If so, how many minutes apart?
- PS.Config.PointsOverTimeAmount = 10 -- And if so, how many points to give after the time?
- PS.Config.PointsOverTimeAmountSilver = 20
- Ps.Config.PointsOverTimeAmountDiamond = 35
- PS.Config.AdminCanAccessAdminTab = false -- Can Admins access the Admin tab?
- PS.Config.SuperAdminCanAccessAdminTab = false -- Can SuperAdmins access the Admin tab?
- PS.Config.CanPlayersGivePoints = true -- Can players give points away to other players?
- PS.Config.DisplayPreviewInMenu = true -- Can players see the preview of their items in the menu?
- PS.Config.PointsName = 'Points' -- What are the points called?
- PS.Config.SortItemsBy = 'Name' -- How are items sorted? Set to 'Price' to sort by price.
- -- Edit below if you know what you're doing
- PS.Config.CalculateBuyPrice = function(ply, item)
- -- You can do different calculations here to return how much an item should cost to buy.
- -- There are a few examples below, uncomment them to use them.
- -- Everything half price for admins:
- -- if ply:IsAdmin() then return math.Round(item.Price * 0.5) end
- -- 15% off for the 'Isis' group
- if ply:IsUserGroup('isis') then return math.Round(item.Price * 0.85) end
- -- 35% off for the 'Gay Flying Seals' group
- if ply:IsUserGroup('gfs') then return math.Round(item.Price * 0.75) end
- return item.Price
- end
- PS.Config.CalculateSellPrice = function(ply, item)
- return math.Round(item.Price * 0.25) -- 75% or 3/4 (rounded) of the original item price
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement