Advertisement
Guest User

Untitled

a guest
Sep 3rd, 2017
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.37 KB | None | 0 0
  1. --[[
  2. Name: sv_config.lua
  3.  
  4.  
  5. ]]--
  6.  
  7. --[[ SQL Settings ]]--
  8. if DEV_SERVER then
  9. GM.Config.SQLHostName = ""
  10. GM.Config.SQLUserName = ""
  11. GM.Config.SQLPassword = ""
  12. GM.Config.SQLDBName = ""
  13. else
  14. GM.Config.SQLHostName = ""
  15. GM.Config.SQLUserName = ""
  16. GM.Config.SQLPassword = ""
  17. GM.Config.SQLDBName = ""
  18. end
  19.  
  20. GM.Config.SQLSnapshotRate = 5 *60 --Lower = less time between updates to sql. This value should be set with respect to the number of workers in use!
  21. GM.Config.SQLReconnectInterval = 1 *60 --Time to wait before retrying a lost sql connection
  22. GM.Config.SQLNumWriteWorkers = 8 --Number of connections to open to the sql server for writing player data with
  23.  
  24. --[[ IPB Settings ]]--
  25. GM.Config.IPBJobWhitelist = {
  26. ["JOB_POLICE"] = { 4, 13, 23 },
  27. ["JOB_FIREFIGHTER"] = { 4, 31, 25 },
  28.  
  29. }
  30. GM.Config.IPBUlxGroups = {
  31. { group = "superadmin", ids = {4, (DEV_SERVER and 21 or nil)} },
  32. { group = "communitymanager", ids = {29} },
  33. { group = "headadmin", ids = {10} },
  34. { group = "senior admin", ids = {16} },
  35. { group = "admin", ids = {7} },
  36. { group = "moderator", ids = {9} },
  37. { group = "vip", ids = {15, 32} },
  38. { group = "developer", ids = {(not DEV_SERVER and 21 or nil)} },
  39. { group = "user", ids = {12} },
  40. }
  41.  
  42. --[[ ServerNet Settings ]]-`
  43. GM.Config.ServerNetUseTLS_1_2 = false
  44. GM.Config.ServerNetExtraAuth = false
  45. GM.Config.ServerNetExtraAuthKey = ""
  46. GM.Config.ServerNetPort = 27400
  47. GM.Config.ServerNetPool = {
  48. DEV_SERVER and "103.62.50.13" or nil,
  49. not DEV_SERVER and (GM.Config.ServerRegion == "" and "103.62.50.13" or "103.62.50.13") or nil
  50. }
  51.  
  52. --[[ Global Loadout Settings ]]--
  53. GM.Config.GlobalLoadout = {
  54. "weapon_physgun",
  55. --"weapon_physcannon",
  56. "weapon_fists",
  57. "weapon_keys",
  58. "weapon_srphands",
  59. "weapon_idcard",
  60. }
  61.  
  62. --[[ Car Settings ]]--
  63. GM.Config.UseCustomVehicleDamage = true
  64. GM.Config.BaseCarFuelConsumption = 35
  65.  
  66. --[[ Property Settings ]]--
  67. GM.Config.GovernemtDoorJobs = { --List of jobs that can lock government doors
  68. ["JOB_POLICE"] = true,
  69. ["JOB_EMS"] = true,
  70. ["JOB_FIREFIGHTER"] = true,
  71. }
  72.  
  73. --[[ Damage Settings ]]--
  74. GM.Config.BleedDamage = 1
  75. GM.Config.BleedInterval = 30
  76. GM.Config.BleedBandageDuration = 60 *2 --Time a bandage should stop bleeding for
  77. GM.Config.ItemDamageTakeCooldown = 45 --Time following a damage event to an item that a player should be blocked from picking the item back up
  78.  
  79. --[[ Fire System Settings ]]--
  80. GM.Config.MaxFires = 256
  81. GM.Config.MaxChildFires = 25
  82. GM.Config.FireSpreadDistance = 80
  83. GM.Config.FireNodeCount = 4
  84. GM.Config.FireSpreadCount = 2
  85. GM.Config.FireBurnEverything = true
  86. GM.Config.FireSimRate = 6
  87.  
  88. --[[ Driving Test Questions ]]--
  89. --Note: The questions table must be the same in the shared config, but without the answers!
  90. GM.Config.DrivingTestRetakeDelay = 5 *60
  91. GM.Config.MinCorrectDrivingTestQuestions = 5
  92. GM.Config.DrivingTestQuestions_Answers = {
  93. { 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 } },
  94. { Question = "What do you do if you see someone thats just crashed.", Options = { ["Continue driving"] = false, ["Call your friends"] = false, ["Investigate the scene"] = true } },
  95. { 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 } },
  96. { 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 } },
  97. { 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 } },
  98. { 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 } },
  99. { 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 } },
  100. }
  101.  
  102. --[[ NPC Bank Item Storage Settings ]]--
  103. GM.Config.BankStorage_MAX_UNIQUE_ITEMS = 75
  104. GM.Config.BankStorage_MAX_NUM_ITEM = 40
  105. GM.Config.BankStorage_VIP_MAX_UNIQUE_ITEMS = 120
  106. GM.Config.BankStorage_VIP_MAX_NUM_ITEM = 70
  107.  
  108. --[[ NPC Drug Dealer Settings ]]--
  109. GM.Config.DrugNPCMoveTime_Min = 15 *60
  110. GM.Config.DrugNPCMoveTime_Max = 40 *60
  111.  
  112. --[[ NPC Jail Warden Settings ]]--
  113. GM.Config.CopLawyerRequestCooldownTime = 60 --Time a player must wait after requesting a lawyer before they may do so again
  114.  
  115. --[[ Map Settings ]]--
  116. --The smaller the fade min and max are, the sooner map props will stop drawing
  117. GM.Config.DetailPropFadeMin = 1024
  118. GM.Config.DetailPropFadeMax = 1700
  119.  
  120. --[[ Job Settings ]]--
  121. GM.Config.JobPayInterval = 12 *60 --How often players should get paid
  122. GM.Config.EMSReviveBonus = 150 --How much money to give an EMS player when they revive someone
  123. GM.Config.FireBonus = 100 --How much money to give a firefighter player when they put out enough fires
  124. GM.Config.FireExtinguishBonusCount = 30 --How many fires a player must put out before they get paid the bonus
  125.  
  126. --[[ Weather ]]--
  127. GM.Config.WeatherRandomizer_MinTime = 60 * 3
  128. GM.Config.WeatherRandomizer_MaxTime = 60 * 5
  129. GM.Config.WeatherTable = {
  130. { ID = "thunder_storm", MinTime = 60 *3.5, MaxTime = 60 *12, Chance = function() return math.random(1, 8) == 1 end },
  131. { ID = "thunder_storm", MinTime = 60 *6, MaxTime = 60 *15, Chance = function() return math.random(1, 8) == 1 end },
  132. { ID = "light_rain", MinTime = 60 *3.5, MaxTime = 60 *8, Chance = function() return math.random(1, 5) == 1 end },
  133. { ID = "light_rain", MinTime = 60 *3.5, MaxTime = 60 *8, Chance = function() return math.random(1, 5) == 1 end },
  134. { ID = "light_rain", MinTime = 60 *6, MaxTime = 60 *15, Chance = function() return math.random(1, 10) == 1 end },
  135. }
  136.  
  137. --[[ Misc Settings ]]--
  138. GM.Config.AdvertPrice = 25
  139. GM.Config.MinDrugConfiscatePrice = 300
  140. GM.Config.MaxDrugConfiscatePrice = 500
  141. GM.Config.DefWalkSpeed = 87
  142. GM.Config.DefRunSpeed = 190
  143. GM.Config.MaxRunSpeed = 250
  144.  
  145. --[[ Hard Coded Ban List ]]--
  146. GM.Config.Banned4Lyfe = {}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement