Advertisement
Guest User

Untitled

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