Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -[[
- Name: sv_config.lua
- by: Asriel + CodeRed
- ]]
- --
- --[[ SQL Settings ]]
- --
- if DEV_SERVER then
- GM.Config.SQLHostName = "localhost"
- GM.Config.SQLUserName = "root"
- GM.Config.SQLPassword = "BusterRoxy2013"
- GM.Config.SQLDBName = "server"
- else
- GM.Config.SQLHostName = "localhost"
- GM.Config.SQLUserName = "root"
- GM.Config.SQLPassword = "BusterRoxy2013"
- GM.Config.SQLDBName = "server"
- end
- --[[ SQL - Heavy Bob - Commented out the stuff and put in my own values. https://www.youtube.com/watch?v=W8qcccZy03s ]]
- --
- --[[
- GM.Config.SQLNumWriteWorkers = 1
- GM.Config.SQLSnapshotRate = 1
- GM.Config.SQLReconnectInterval = 1
- ]]
- --
- --[[Commented this out to see if this will resolve SQL shit - Heavy Bob]]
- --
- GM.Config.SQLSnapshotRate = 60 --Lower = less time between updates to sql. This value should be set with respect to the number of workers in use!
- GM.Config.SQLReconnectInterval = 30 --Time to wait before retrying a lost sql connection
- GM.Config.SQLNumWriteWorkers = 8 --Number of connections to open to the sql server for writing player data with
- --[[ IPB Settings ]]
- --
- GM.Config.ServerRegion = "AU" --Options: US, EU
- GM.Config.IPBJobWhitelist = {
- ["JOB_POLICE"] = {
- id = 2,
- timeReq = 24
- },
- ["JOB_FIREFIGHTER"] = {
- id = 4,
- timeReq = 4
- },
- ["JOB_EMS"] = {
- id = 3,
- timeReq = 12
- },
- ["JOB_PROSECUTOR"] = {
- id = 11,
- timeReq = 24
- },
- ["JOB_LAWYER"] = {
- id = 10,
- timeReq = 24
- },
- ["JOB_TOW"] = {
- id = 6,
- timeReq = 48
- },
- ["JOB_MAYOR"] = {
- id = 12
- },
- ["JOB_GARBAGE"] = {
- id = 15,
- timeReq = 24
- },
- ["JOB_SWAT"] = {
- id = 88,
- timeReq = 999
- }
- }
- GM.Config.IPBUlxGroups = {
- -- { group = "superadmin", ids = {4, (DEV_SERVER and 21 or nil)} },
- {
- group = "superadmin",
- ids = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 88, 99}
- },
- {
- group = "developer",
- ids = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 88, 99}
- },
- {
- group = "admin",
- ids = {2, 3, 4, 11, 10, 6, 12}
- },
- {
- group = "operator",
- ids = {2, 3, 4, 11, 10, 6, 12}
- },
- {
- group = "manager",
- ids = {2, 3, 4, 11, 10, 6, 12}
- },
- {
- group = "owner",
- ids = {2, 3, 4, 11, 10, 6, 12}
- },
- {
- group = "enforcer",
- ids = {2, 3, 4, 11, 10, 6, 12}
- },
- {
- group = "donators",
- ids = {2, 3, 4, 11, 10, 6, 12}
- },
- {
- group = "highdonators",
- ids = {2, 3, 4, 11, 10, 6, 12}
- }
- }
- --[[ ServerNet Settings ]]
- --
- --[[
- GM.Config.ServerNetUseTLS_1_2 = false
- GM.Config.ServerNetExtraAuth = false
- GM.Config.ServerNetExtraAuthKey = ""
- GM.Config.ServerNetPort = 27005
- GM.Config.ServerNetPool = {
- DEV_SERVER and "192.168.1.85" or nil,
- not DEV_SERVER and "45.121.211.88" or nil,
- }
- ]]
- --
- --[[ Global Loadout Settings ]]
- --
- GM.Config.GlobalLoadout = {"weapon_physgun", "weapon_keys", "weapon_srphands", "weapon_idcard"} --"weapon_physcannon", --"weapon_fists",
- GM.Config.VIPLoadout = {"weapon_physgun", "weapon_fists", "weapon_keys", "weapon_srphands", "weapon_idcard"} --"weapon_physcannon",
- --[[ Car Settings ]]
- --
- GM.Config.UseCustomVehicleDamage = false
- GM.Config.BaseCarFuelConsumption = 35
- --[[ Property Settings ]]
- --
- --List of jobs that can lock government doors
- GM.Config.GovernemtDoorJobs = {
- ["JOB_POLICE"] = true,
- ["JOB_EMS"] = true,
- ["JOB_FIREFIGHTER"] = true,
- ["JOB_SSERVICE"] = true,
- ["JOB_SWAT"] = true,
- ["JOB_MAYOR"] = true -- Job Mayor is important.
- }
- --[[ Damage Settings ]]
- --
- GM.Config.BleedDamage = 1
- GM.Config.BleedInterval = 30
- GM.Config.BleedBandageDuration = 60 * 2 --Time a bandage should stop bleeding for
- GM.Config.ItemDamageTakeCooldown = 45 --Time following a damage event to an item that a player should be blocked from picking the item back up
- --[[ Fire System Settings ]]
- --
- GM.Config.MaxFires = 256
- GM.Config.MaxChildFires = 25
- GM.Config.FireSpreadDistance = 100
- GM.Config.FireNodeCount = 6
- GM.Config.FireSpreadCount = 4
- GM.Config.FireBurnEverything = true
- GM.Config.FireSimRate = 8
- --[[ City Worker Settings ]]
- --
- GM.Config.PayForMowingGrass = 80
- GM.Config.PayForClearingDebris = 70
- GM.Config.PayForFixingHydrant = 100
- --[[ Driving Test Questions ]]
- --
- --Note: The questions table must be the same in the shared config, but without the answers!
- GM.Config.DrivingTestRetakeDelay = 5 * 60
- GM.Config.MinCorrectDrivingTestQuestions = 5
- GM.Config.DrivingTestQuestions_Answers = {
- {
- Question = "What do you do when its a green light?",
- Options = {
- ["You begin to move"] = true,
- ["You stop"] = false,
- ["You turn off your engine"] = false
- }
- },
- {
- Question = "What do you do if you see someone thats just crashed.",
- Options = {
- ["Continue driving"] = false,
- ["Call your friends"] = false,
- ["Investigate the scene"] = true
- }
- },
- {
- Question = "Someone has just crashed into you and damaged your car.",
- Options = {
- ["Pull a weapon on him"] = false,
- ["Exchange insurance information"] = true,
- ["Talk shit to him while ramming his car"] = false
- }
- },
- {
- Question = "Your car seems to be not functioning properly, what do you do?",
- Options = {
- ["Call the cops"] = true,
- ["Stand on the road to get someones attention"] = false,
- ["Phone up mechanical services"] = false
- }
- },
- {
- Question = "You encounter a police road block and the officer tells you to turn around, do you",
- Options = {
- ["Ignore the officer and continue driving"] = false,
- ["Sit in your car and do nothing"] = false,
- ["Carefully turn around and drive"] = true
- }
- },
- {
- Question = "You see a another driver driving recklessly, what do you do?",
- Options = {
- ["Inform the police"] = true,
- ["Drive recklessly yourself"] = false,
- ["Message your friend"] = false
- }
- },
- {
- Question = "You have just accidentally crashed into a pole and you have injured yourself, what do you do?",
- Options = {
- ["Lie on the road and wait for someone to help"] = false,
- ["Follow someone until they help you"] = false,
- ["Call EMS"] = true
- }
- }
- }
- --[[ NPC Bank Item Storage Settings ]]
- --
- GM.Config.BankStorage_MAX_UNIQUE_ITEMS = 10
- GM.Config.BankStorage_MAX_NUM_ITEM = 20
- GM.Config.BankStorage_VIP_MAX_UNIQUE_ITEMS = 50
- GM.Config.BankStorage_VIP_MAX_NUM_ITEM = 100
- --[[ NPC Drug Dealer Settings ]]
- --
- GM.Config.DrugNPCMoveTime_Min = 5 * 60
- GM.Config.DrugNPCMoveTime_Max = 10 * 60
- --[[ NPC Jail Warden Settings ]]
- --
- GM.Config.CopLawyerRequestCooldownTime = 60 --Time a player must wait after requesting a lawyer before they may do so again
- --[[ Map Settings ]]
- --
- --The smaller the fade min and max are, the sooner map props will stop drawing
- GM.Config.DetailPropFadeMin = 1024
- GM.Config.DetailPropFadeMax = 1700
- --[[ Job Settings ]]
- --
- GM.Config.JobPayInterval = 10 * 60 --How often players should get paid
- GM.Config.EMSReviveBonus = 500 --How much money to give an EMS player when they revive someone
- GM.Config.EMSReviveBonusCooldown = 5 * 60 --How much time (in seconds) should pass before an EMS recieves a bonus for reviving the same player
- GM.Config.FireBonus = 500 --How much money to give a firefighter player when they put out enough fires
- GM.Config.FireExtinguishBonusCount = 50 --How many fires a player must put out before they get paid the bonus
- --[[ Weather ]]
- --
- GM.Config.WeatherRandomizer_MinTime = 60 * 4
- GM.Config.WeatherRandomizer_MaxTime = 60 * 8
- GM.Config.WeatherTable = {
- {
- ID = "thunder_storm",
- MinTime = 60 * 3.5,
- MaxTime = 60 * 12,
- Chance = function() return math.random(1, 8) == 1 end
- },
- {
- ID = "thunder_storm",
- MinTime = 60 * 6,
- MaxTime = 60 * 15,
- Chance = function() return math.random(1, 8) == 1 end
- },
- {
- ID = "light_rain",
- MinTime = 60 * 3.5,
- MaxTime = 60 * 8,
- Chance = function() return math.random(1, 5) == 1 end
- },
- {
- ID = "light_rain",
- MinTime = 60 * 3.5,
- MaxTime = 60 * 8,
- Chance = function() return math.random(1, 5) == 1 end
- },
- {
- ID = "light_rain",
- MinTime = 60 * 6,
- MaxTime = 60 * 15,
- Chance = function() return math.random(1, 10) == 1 end
- }
- }
- --[[ Misc Settings ]]
- --
- GM.Config.AdvertPrice = 20
- GM.Config.MinDrugConfiscatePrice = 25
- GM.Config.MaxDrugConfiscatePrice = 50
- GM.Config.DefWalkSpeed = 85
- GM.Config.DefRunSpeed = 225
- GM.Config.MaxRunSpeed = 385
- GM.Config.Banned4Lyfe = {}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement