Advertisement
Guest User

Untitled

a guest
Jun 5th, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.52 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 = "web-panel01.gmchosting.com"
  10. GM.Config.SQLUserName = "pierre_rp"
  11. GM.Config.SQLPassword = "Poland12"
  12. GM.Config.SQLDBName = "santos_rp"
  13. else
  14. GM.Config.SQLHostName = "web-panel01.gmchosting.com"
  15. GM.Config.SQLUserName = "pierre_rp"
  16. GM.Config.SQLPassword = "Poland12"
  17. GM.Config.SQLDBName = "santos_rp"
  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. ["JOB_EMS"] = { 4, 14, 26 },
  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 = 27015
  47. GM.Config.ServerNetPool = {
  48. DEV_SERVER and "192.95.4.92:27015" or nil,
  49. not DEV_SERVER and (GM.Config.ServerRegion == "EU" and "192.95.4.92:27015" or "192.95.4.92:27015") 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_SWAT"] = true,
  70. ["JOB_EMS"] = true,
  71. ["JOB_FIREFIGHTER"] = true,
  72. }
  73.  
  74. --[[ Damage Settings ]]--
  75. GM.Config.BleedDamage = 1
  76. GM.Config.BleedInterval = 30
  77. GM.Config.BleedBandageDuration = 60 *2 --Time a bandage should stop bleeding for
  78. GM.Config.ItemDamageTakeCooldown = 45 --Time following a damage event to an item that a player should be blocked from picking the item back up
  79.  
  80. --[[ Fire System Settings ]]--
  81. GM.Config.MaxFires = 256
  82. GM.Config.MaxChildFires = 25
  83. GM.Config.FireSpreadDistance = 80
  84. GM.Config.FireNodeCount = 4
  85. GM.Config.FireSpreadCount = 2
  86. GM.Config.FireBurnEverything = true
  87. GM.Config.FireSimRate = 6
  88.  
  89. --[[ Driving Test Questions ]]--
  90. --Note: The questions table must be the same in the shared config, but without the answers!
  91. GM.Config.DrivingTestRetakeDelay = 5 *60
  92. GM.Config.MinCorrectDrivingTestQuestions = 5
  93. GM.Config.DrivingTestQuestions_Answers = {
  94. { 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 } },
  95. { Question = "What do you do if you see someone thats just crashed.", Options = { ["Continue driving"] = false, ["Call your friends"] = false, ["Investigate the scene"] = true } },
  96. { 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 } },
  97. { 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 } },
  98. { 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 } },
  99. { 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 } },
  100. { 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 } },
  101. }
  102.  
  103. --[[ NPC Bank Item Storage Settings ]]--
  104. GM.Config.BankStorage_MAX_UNIQUE_ITEMS = 75
  105. GM.Config.BankStorage_MAX_NUM_ITEM = 40
  106. GM.Config.BankStorage_VIP_MAX_UNIQUE_ITEMS = 120
  107. GM.Config.BankStorage_VIP_MAX_NUM_ITEM = 70
  108.  
  109. --[[ NPC Drug Dealer Settings ]]--
  110. GM.Config.DrugNPCMoveTime_Min = 15 *60
  111. GM.Config.DrugNPCMoveTime_Max = 40 *60
  112.  
  113. --[[ NPC Jail Warden Settings ]]--
  114. GM.Config.CopLawyerRequestCooldownTime = 60 --Time a player must wait after requesting a lawyer before they may do so again
  115.  
  116. --[[ Map Settings ]]--
  117. --The smaller the fade min and max are, the sooner map props will stop drawing
  118. GM.Config.DetailPropFadeMin = 1024
  119. GM.Config.DetailPropFadeMax = 1700
  120.  
  121. --[[ Job Settings ]]--
  122. GM.Config.JobPayInterval = 12 *60 --How often players should get paid
  123. GM.Config.EMSReviveBonus = 150 --How much money to give an EMS player when they revive someone
  124. GM.Config.FireBonus = 100 --How much money to give a firefighter player when they put out enough fires
  125. GM.Config.FireExtinguishBonusCount = 30 --How many fires a player must put out before they get paid the bonus
  126.  
  127. --[[ Weather ]]--
  128. GM.Config.WeatherRandomizer_MinTime = 60 * 3
  129. GM.Config.WeatherRandomizer_MaxTime = 60 * 5
  130. GM.Config.WeatherTable = {
  131. { ID = "thunder_storm", MinTime = 60 *3.5, MaxTime = 60 *12, Chance = function() return math.random(1, 8) == 1 end },
  132. { ID = "thunder_storm", MinTime = 60 *6, MaxTime = 60 *15, Chance = function() return math.random(1, 8) == 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 *3.5, MaxTime = 60 *8, Chance = function() return math.random(1, 5) == 1 end },
  135. { ID = "light_rain", MinTime = 60 *6, MaxTime = 60 *15, Chance = function() return math.random(1, 10) == 1 end },
  136. }
  137.  
  138. --[[ Misc Settings ]]--
  139. GM.Config.AdvertPrice = 25
  140. GM.Config.MinDrugConfiscatePrice = 300
  141. GM.Config.MaxDrugConfiscatePrice = 500
  142. GM.Config.DefWalkSpeed = 87
  143. GM.Config.DefRunSpeed = 190
  144. GM.Config.MaxRunSpeed = 250
  145.  
  146. --[[ Hard Coded Ban List ]]--
  147. GM.Config.Banned4Lyfe = {}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement