Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GUNCRAFT = GUNCRAFT or {}
- GUNCRAFT.config = GUNCRAFT.config or {}
- --[[-------------------------------------------------------------------------
- GUNCRAFT CONFIG
- NOTE: This is a pre-made configuration for M9K weapons. Please replace the content of the "guncraft_config.lua" file with the contents of this file, if you plan to use M9K weapons with the configuration below:
- ---------------------------------------------------------------------------]]
- -- Set to "true" to enable development/debugging commands and options: (should be "false" for any active server)
- GUNCRAFT.config.devmode = false
- -- Default: false
- -- The price of the weapon workbench:
- GUNCRAFT.config.workbenchPrice = 500
- -- Default: 500
- -- Whether players are allowed to sell their workbench from the workbench menu:
- GUNCRAFT.config.allowBenchSelling = true
- -- Set to "true" to allow selling and "false" to restrict selling.
- -- Whether workbenches can or cannot be frozen using the workbench menu:
- GUNCRAFT.config.allowBenchFreezing = true
- -- Set to "true" to allow freezing and "false" to restrict freezing.
- -- The cost of 1 material:
- GUNCRAFT.config.materialPrice = 8
- -- Default: 8
- -- The amount of money you get for selling 1 material:
- GUNCRAFT.config.materialResell = 5
- -- Default = GUNCRAFT.config.materialPrice minus a few bucks.
- -- The delay (in seconds) players have to wait between material purchasing:
- GUNCRAFT.config.buyDelay = 600
- GUNCRAFT.config.buyDelayDonator = 480
- -- The minimum amount of materials a player can buy at a time:
- GUNCRAFT.config.minBuy = 25
- -- The maximim amount of materials a player can buy at a time:
- GUNCRAFT.config.maxBuy = 5000
- GUNCRAFT.config.maxBuyDonator = 7500
- -- The in-game name of the team that is able to use guncraft (gundealers):
- GUNCRAFT.config.gunTeam = "Gun Dealer"
- -- Default: "Gun Dealer"
- -- The ULX usergroups who should be considered donators:
- GUNCRAFT.donatorRanks = {
- "superadmin",
- "developer",
- "donator",
- "vip",
- "gold",
- "gold_member",
- }
- -- The minimum ULX rank that is required to perform fundamental changes to Guncraft (e.g. change the NPC position)
- GUNCRAFT.superRank = "superadmin"
- -- Default: Superadmin/Owner and above.
- -- It takes the following number multiplied by the weapon's craft-time to craft a shipment of that weapon:
- GUNCRAFT.config.shipmentTimeMultiplier = 9.5
- -- It costs the following number multiplied by the weapon's material-price to craft a shipment of that weapon:
- GUNCRAFT.config.shipmentPriceMultiplier = 9
- -- Same idea as the two points above, just this time with the amount of experience points a player gets for crafting a shipment:
- GUNCRAFT.config.shipmentXPMultiplier = 7
- -- The level (not amount of experience points) that is required for players to be able to craft shipment versions of weapons:
- GUNCRAFT.config.shipmentLevel = 5 --Level, not points
- -- The chat command for checking how many materials you have:
- GUNCRAFT.config.materialChatCommand = "/materials"
- -- Default: "/materials"
- -- The chat command for checking how much experience you have:
- GUNCRAFT.config.expChatCommand = "/experience"
- -- Default: "/experience"
- -- The chat command for dropping a crate of materials:
- GUNCRAFT.config.dropMatsChatCommand = "/dropmaterials"
- -- Default: "/dropmaterials"
- -- The different crafting-levels and the amount of experience points they require to reach: ( FORMAT: [<level>] = <experience> )
- -- NOTE: Changing this will most likely cause imbalance with Guncraft.
- GUNCRAFT.config.levels = {
- [12] = 1000,
- [11] = 600,
- [10] = 400,
- [9] = 300,
- [8] = 275,
- [7] = 150,
- [6] = 120,
- [5] = 90,
- [4] = 60,
- [3] = 40,
- [2] = 20,
- [1] = 0
- }
- -- The table of weapons that players are able to craft, as well as all the information regarding the weapons:
- -- NOTE: All fields are required!
- -- NOTE: reqXP = required level (not experience points)
- -- NOTE: XP = amount of experience POINTS granted from crafting.
- -- NOTE: If you are not sure how to set this up, please watch this video: https://youtu.be/BtGmpI-kwd8
- GUNCRAFT.config.weapons = {
- -- Pistols
- [1] = { name = "HK USP", mats = 30, class = "m9k_usp", time = 3, reqXP = 1, XP = 3 },
- [2] = { name = "Colt 1911", mats = 50, class = "m9k_colt1911", time = 3, reqXP = 1, XP = 3 },
- [3] = { name = "Desert Eagle", mats = 130, class = "m9k_deagle", time = 5, reqXP = 3, XP = 7 },
- [4] = { name = "S & W Model 3 Russian", mats = 150, class = "m9k_model3russian", time = 5, reqXP = 2, XP = 7 },
- -- SMGs
- [5] = { name = "AAC Honey Badger", mats = 200, class = "m9k_honeybadger", time = 11, reqXP = 6, XP = 10 },
- [6] = { name = "HK MP5", mats = 230, class = "m9k_mp5", time = 8, reqXP = 5, XP = 10 },
- [7] = { name = "Tommy Gun", mats = 260, class = "m9k_thompson", time = 13, reqXP = 4, XP = 15 },
- [8] = { name = "KRISS Vector", mats = 300, class = "m9k_vector", time = 10, reqXP = 5, XP = 15 },
- [9] = { name = "UZI", mats = 300, class = "m9k_uzi", time = 10, reqXP = 4, XP = 15 },
- -- Assault Rifles
- [10] = { name = "AK47", mats = 400, class = "m9k_ak47", time = 15, reqXP = 5, XP = 20 },
- [11] = { name = "FN FAL", mats = 500, class = "m9k_fal", time = 20, reqXP = 6, XP = 25 },
- [12] = { name = "SCAR", mats = 600, class = "m9k_scar", time = 20, reqXP = 6, XP = 25 },
- [13] = { name = "F2000", mats = 600, class = "m9k_f2000", time = 20, reqXP = 7, XP = 25 },
- [14] = { name = "FAMAS", mats = 600, class = "m9k_famas", time = 20, reqXP = 11, XP = 25 },
- -- Shotguns
- [15] = { name = "Winchester 87", mats = 250, class = "m9k_1887winchester", time = 18, reqXP = 7, XP = 30 },
- [16] = { name = "Double Barrel", mats = 300, class = "m9k_dbarrel", time = 13, reqXP = 12, XP = 30 },
- [17] = { name = "Mossberg 590", mats = 350, class = "m9k_mossberg590", time = 23, reqXP = 8, XP = 35 },
- [18] = { name = "Winchester Carbine", mats = 350, class = "m9k_winchester73", time = 23, reqXP = 6, XP = 35 },
- -- Snipers
- [19] = { name = "SVD Dragunov", mats = 600, class = "m9k_dragunov", time = 30, reqXP = 9, XP = 40 },
- [20] = { name = "SVT 40", mats = 800, class = "m9k_svt40", time = 35, reqXP = 10, XP = 45 },
- [21] = { name = "M249 LMG", mats = 800, class = "m9k_m249lmg", time = 35, reqXP = 11, XP = 60 }
- }
- --[[
- SQL CONFIGURATION BELOW
- Please note: MySQL support is currently unavailable. Do NOT enable MySQL. This will be fixed in a future version.
- ]]
- GUNCRAFT.config.database = GUNCRAFT.config.database or {}
- -- If you want to use MySQL with Guncraft, you need tmysql4: https://facepunch.com/showthread.php?t=1442438
- -- Set to "true" to use MySQL for storing player data. (WARNING: Do NOT enable this unless you know what you are doing!)
- GUNCRAFT.config.database.enabled = false
- -- Default = "false"
- -- The IP of the MySQL database.
- GUNCRAFT.config.database.host = "127.0.0.1"
- -- The port for the MySQL database.
- GUNCRAFT.config.database.port = 3306
- -- Default: 3306
- -- The username for the MySQL database.
- GUNCRAFT.config.database.user = "username"
- -- The password for the MySQL database.
- GUNCRAFT.config.database.password = "password"
- -- The name of the MySQL database where the data should be stored.
- GUNCRAFT.config.database.database = "database"
- --[[-------------------------------------------------------------------------
- END OF CONFIG
- ---------------------------------------------------------------------------]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement