Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- TitleStore.Config = TitleStore.Config or {}
- -- If you run into any issues and the addon throws errors at you, contact me through a support ticket, or add me on steam.
- --[[
- ====================================================
- This first section is for the core side of the addon
- ====================================================
- ]]
- -- Databases
- -- Use MySQL over sqloo?
- TitleStore.Config.UseMySQL = false
- -- If using mysql please go to config/sv_mysql.lua and enter your details.
- -- Entities are never saved through MySQL as it seems very unnecessary.
- -- Due to demand, we have built in basewars support, if you'd like support for any other gamemodes throw us a ticket.
- TitleStore.Config.Basewars = false
- -- This is the command you will use to transfer data from MySQL to SQL and vice versa.
- -- Only use this command if you have data stored in SQL and want it to be transfered over to mysql or vice versa.
- -- This command is restricted strictly to superadmins.
- -- If you do not have your MySQL details set in sv_mysql.lua nothing will happen.
- TitleStore.Config.TransferSQLCommand = "titlestoretransfer"
- -- This command will transfer data from whatever you are using to the other method of storing data, so if you're currently on a server using mysql, the command will transfer the sql data and save it using mysql.
- -- It will also overwrite any current data, so it's reccomended you only use it when transfering
- -- Look and feel
- -- The font used throughout the addon
- TitleStore.Config.Font = "Calibri"
- -- Notification color
- TitleStore.Config.PrefixColor = Color(255, 255, 0)
- -- Chat prefix
- TitleStore.Config.Prefix = "[Title Store]"
- -- Whether the NPC displays text normally above it instead of using it's own custom title, this is most useful when making the titlestore NPC a model without a head.
- TitleStore.Config.NormalText = false
- -- NPC's Custom Title Data
- TitleStore.Config.NPCFont = "Arial" -- Only Valid Title Fonts
- TitleStore.Config.NPCColor = Color(250, 250, 250)
- TitleStore.Config.NPCSpin = false
- TitleStore.Config.NPCRainbow = true
- TitleStore.Config.NPCAnimation = "Random" -- Could be "Random" or if you want a specific animation, you would replace Random with that, for example TitleStore.Config.NPCAnimation = "Orbit"
- -- /NPC's Custom Title Data
- -- The NPC text
- TitleStore.Config.NPCText = "Title Store"
- -- NPC model
- TitleStore.Config.NPCModel = "models/Humans/Group01/male_07.mdl"
- -- Disable titles command
- TitleStore.Config.ToggleTitles = "toggletitles"
- -- Command to choose title from bought titles.
- TitleStore.Config.TitleMenu = "titles" -- (always lowercase)
- -- Animation height, this is how high the animations show above the players head.
- TitleStore.Config.Height = 10
- -- This is the height of the animation shows above models that may not have a head bone, for example models/Zombie/Classic_legs.mdl
- TitleStore.Config.NoHeadHeight = 1
- -- Administrator Access
- -- The chat command to open the admin menu through which players can have titles added, removed or refunded at full price.
- TitleStore.Config.AdminMenu = "titlesadmin"
- -- The ulx ranks that have access to the admin menu and admin functions.
- TitleStore.Config.AdminMenuRanks = {
- ["superadmin"] = true
- }
- -- Will titlestore report people who try to cheat in illegal titles with clientside lua?
- TitleStore.Config.StaffWarnings = true
- -- The ranks that can see the staff warnings.
- TitleStore.Config.SeeStaffWarning = function(ply) return ULib.ucl.query(ply, seeasayAccess) end -- Uses ulib to see if the player has the ulx permission 'asay' which is the same as the ulx admin chat.
- TitleStore.Config.SaveNPCsCommand = "titlestoresave"
- -- Buyables
- -- Should the buy menu have a 'titles' button in the right top corner for people who don't know to do !titles?
- TitleStore.Config.TitlesButton = true
- -- How should titles and animations be sorted in the buy menu. 'price' or 'alpha'. If neither of these are chosen then it will default to random.
- TitleStore.Config.TitleAnimSort = "price"
- -- Should the custom title be displayed at the top of the titles list, if false it will remain at the bottom of the titles list.
- TitleStore.Config.CustomTitleTop = true
- -- Should custom titles up for purchase?
- TitleStore.Config.CustomTags = true
- -- If above is true, the price for a custom title.
- TitleStore.Config.CustomPrice = 10000000
- -- What should the character limit be for custom titles?
- TitleStore.Config.CustomLimit = 25
- -- How much should an added spin animation cost?
- TitleStore.Config.SpinPrice = 25000
- -- Who's allowed to use spin?
- TitleStore.Config.SpinCustomCheck = function(ply) return true end -- Let anyone use spin
- -- How much should rainbow colors cost?
- TitleStore.Config.RainbowPrice = 750000
- -- Who's allowed to use rainbow?
- TitleStore.Config.RainbowCustomCheck = function(ply) return true end -- Let anyone use rainbow
- -- How much of the original price should the player get from a refund, 0.75 = 75% of original price
- TitleStore.Config.RefundPercentage = 0.75
- --[[
- This is how you insert your own titles into the script or remove some of ours,
- Titles will be set out as such (without custom check):
- ["Title Name"] = {
- price = 10000
- },
- And with custom check:
- ["Title Name"] = {
- price = 10000,
- customCheck = function(ply) return 'check' end
- },
- The custom checks are like DarkRP custom checks.
- You can use https://csite.io/tools/gmod-darkrp-customcheck however visibility has to be restricted to those who can pass the check and you should ignore the 'CustomCheckFailMsg = "",' when copying it over.
- Animations and fonts follow the same structure.
- ]]
- TitleStore.Config.Titles = {
- ["Unloved"] = {
- price = 50000
- },
- ["Wannabe Owner"] = {
- price = 75000
- },
- ["Gangster"] = {
- price = 100000
- },
- ["The Boss"] = {
- price = 200000
- },
- ["Legend"] = {
- price = 250000
- },
- ["Aids"] = {
- price = 300000
- },
- ["Script Kiddie"] = {
- price = 400000
- },
- ["PropPushing Pro"] = {
- price = 500000
- },
- ["Owners Slave"] = {
- price = 600000
- },
- ["Pimp"] = {
- price = 700000
- },
- ["SniperGang"] = {
- price = 750000
- },
- ["Blood"] = {
- price = 800000
- },
- ["Crip"] = {
- price = 900000
- },
- ["Slumdog Millionaire"] = {
- price = 1000000
- },
- ["Owners Slave"] = {
- price = 2000000
- },
- ["Pro Coder"] = {
- price = 2500000
- },
- ["God"] = {
- price = 5000000
- },
- ["Big Ol' Doinks"] = {
- price = 7500000
- },
- ["Dog Cunt"] = {
- price = 7500000
- },
- ["Donator"] = {
- price = 100000,
- customCheck = function(ply) return ply:GetUserGroup() == "superadmin", "manager", "headadministrator", "admin", "dgmoderator", "vmoderator", "dmoderator", "dgtrialmoderator", "vtrialmoderator", "dtrialmoderator", "doogler", "vip", "donator" end
- },
- ["VIP"] = {
- price = 100000,
- customCheck = function(ply) return ply:GetUserGroup() == "superadmin", "manager", "headadministrator", "admin", "dgmoderator", "vmoderator", "dgtrialmoderator", "vtrialmoderator", "doogler", "vip" end
- },
- ["Doogler"] = {
- price = 100000,
- customCheck = function(ply) return ply:GetUserGroup() == "superadmin", "manager", "headadministrator", "admin", "dgmoderator", "dgtrialmoderator", "doogler" end
- }
- }
- -- Animations, adding new animations requires a good knowledge of both Lua and math. It's suggested
- -- to leave the animations as is. However, if you want to add more animations, you will need to add
- -- them to both this file and the "sh_animations.lua" file. Make sure they both have the same name and key.
- -- If you don't edit the animations, KEEP THE NAMES AS IS!! If you want to change the names, open a support ticket.
- -- However, you can change the price/customCheck here just fine.
- TitleStore.Config.Animations = {
- ["None"] = {
- price = 0
- },
- ["Bouncing"] = {
- price = 250000
- },
- ["Wave"] = {
- price = 250000
- },
- ["Wiggle"] = {
- price = 250000
- },
- ["TypeWriter"] = {
- price = 250000
- },
- ["Rotate Left-Right"] = {
- price = 250000
- },
- ["Glitch"] = {
- price = 250000
- },
- ["Halo"] = {
- price = 500000,
- customCheck = function(ply) return table.HasValue({"superadmin", "manager", "headadministrator", "admin", "dgmoderator", "vmoderator", "dmoderator", "dgtrialmoderator", "vtrialmoderator", "dtrialmoderator", "doogler", "vip", "donator"}, ply:GetUserGroup()) end
- },
- ["Orbit"] = {
- price = 5000000,
- customCheck = function(ply) return table.HasValue({"superadmin", "manager", "headadministrator", "admin", "dgmoderator", "vmoderator", "dmoderator", "dgtrialmoderator", "vtrialmoderator", "dtrialmoderator", "doogler", "vip", "donator"}, ply:GetUserGroup()) end
- },
- ["Pulsing"] = {
- price = 500000
- }
- }
- -- Fonts
- -- They have to be a font you have added or that are already in base garrysmod.
- TitleStore.Config.DefaultTitleFont = "Arial" -- This will be the initial free font.
- TitleStore.Config.Fonts = {
- ["Verdana Bold"] = {
- price = 0
- },
- ["Verdana"] = {
- price = 0
- -- customCheck = function(ply) return table.HasValue({"Owner"}, ply:GetUserGroup()) end
- },
- ["HL2cross"] = {
- price = 0
- },
- ["Courier New"] = {
- price = 0
- },
- ["Tahoma"] = {
- price = 0
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement