Advertisement
Guest User

Untitled

a guest
Jan 16th, 2017
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.81 KB | None | 0 0
  1. require( "mysqloo" )
  2. --[[
  3. Name: sv_config.lua
  4. For: TalosLife
  5. By: TalosLife
  6. ]]--
  7.  
  8. --[[ SQL Settings ]]--
  9. if DEV_SERVER then
  10. if DEV_SERVER then
  11. GM.Config.SQLHostName = "localhost"
  12. GM.Config.SQLUserName = "root"
  13. GM.Config.SQLPassword = ""
  14. GM.Config.SQLDBName = "test"
  15. else
  16. GM.Config.SQLHostName = "localhost"
  17. GM.Config.SQLUserName = "root"
  18. GM.Config.SQLPassword = ""
  19. GM.Config.SQLDBName = "test"
  20. end
  21. end
  22.  
  23. 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!
  24. GM.Config.SQLReconnectInterval = 1 *60 --Time to wait before retrying a lost sql connection
  25. GM.Config.SQLNumWriteWorkers = 8 --Number of connections to open to the sql server for writing player data with
  26.  
  27. --[[ IPB Settings ]]--
  28. GM.Config.ServerRegion = "EU" --Options: US, EU
  29. GM.Config.IPBJobWhitelist = {
  30. ["JOB_POLICE"] = { 4, 15, 23 },
  31. ["JOB_FIREFIGHTER"] = { 4, 17, 24 },
  32. ["JOB_EMS"] = { 4, 16, 25 },
  33. ["JOB_MAYOR"] = { 27 },
  34. ["JOB_PROSECUTOR"] = { 4, 41 },
  35. ["JOB_LAWYER"] = { 4, 38 },
  36. ["JOB_JUDGE"] = { 4, 40 },
  37. }
  38. GM.Config.IPBUlxGroups = {
  39. -- { group = "superadmin", ids = {4, (DEV_SERVER and 21 or nil)} },
  40. { group = "rolad", ids = {29} },
  41. { group = "headadmin", ids = {28} },
  42. { group = "senior admin", ids = {12} },
  43. { group = "admin", ids = {7} },
  44. { group = "moderator", ids = {8} },
  45. }
  46.  
  47. --[[ ServerNet Settings ]]--
  48. GM.Config.ServerNetUseTLS_1_2 = false
  49. GM.Config.ServerNetExtraAuth = false
  50. GM.Config.ServerNetExtraAuthKey = ""
  51. GM.Config.ServerNetPort = 37015
  52. GM.Config.ServerNetPool = {
  53. DEV_SERVER and "192.168.1.85" or nil,
  54. not DEV_SERVER and (GM.Config.ServerRegion == "US" and "51.255.119.141" or "167.114.214.130") or nil,
  55. }
  56.  
  57. --[[ Global Loadout Settings ]]--
  58. GM.Config.GlobalLoadout = {
  59. "weapon_physgun",
  60. --"weapon_physcannon",
  61. --"weapon_fists",
  62. "weapon_keys",
  63. "weapon_srphands",
  64. "weapon_idcard",
  65. }
  66.  
  67. --[[ Car Settings ]]--
  68. GM.Config.UseCustomVehicleDamage = true
  69. GM.Config.BaseCarFuelConsumption = 35
  70.  
  71. --[[ Property Settings ]]--
  72. GM.Config.GovernemtDoorJobs = { --List of jobs that can lock government doors
  73. ["JOB_POLICE"] = true,
  74. ["JOB_EMS"] = true,
  75. ["JOB_FIREFIGHTER"] = true,
  76. }
  77.  
  78. --[[ Damage Settings ]]--
  79. GM.Config.BleedDamage = 1
  80. GM.Config.BleedInterval = 30
  81. GM.Config.BleedBandageDuration = 60 *2 --Time a bandage should stop bleeding for
  82. GM.Config.ItemDamageTakeCooldown = 45 --Time following a damage event to an item that a player should be blocked from picking the item back up
  83.  
  84. --[[ Fire System Settings ]]--
  85. GM.Config.MaxFires = 256
  86. GM.Config.MaxChildFires = 25
  87. GM.Config.FireSpreadDistance = 80
  88. GM.Config.FireNodeCount = 4
  89. GM.Config.FireSpreadCount = 2
  90. GM.Config.FireBurnEverything = true
  91. GM.Config.FireSimRate = 6
  92.  
  93. --[[ Driving Test Questions ]]--
  94. --Note: The questions table must be the same in the shared config, but without the answers!
  95. GM.Config.DrivingTestRetakeDelay = 5 *60
  96. GM.Config.MinCorrectDrivingTestQuestions = 5
  97. GM.Config.DrivingTestQuestions_Answers = {
  98. { Question = "What do you do when its a green light?", Options = { ["You begin to move"] = true, ["You stop"] = true, ["You turn off your engine"] = true } },
  99. { Question = "What do you do if you see someone thats just crashed.", Options = { ["Continue driving"] = true, ["Call your friends"] = true, ["Investigate the scene"] = true } },
  100. { Question = "Someone has just crashed into you and damaged your car.", Options = { ["Pull a weapon on him"] = true, ["Exchange insurance information"] = true, ["Talk shit to him while ramming his car"] = true } },
  101. { 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"] = true, ["Phone up mechanical services"] = true } },
  102. { Question = "You encounter a police road block and the officer tells you to turn around, do you", Options = { ["Ignore the officer and continue driving"] = true, ["Sit in your car and do nothing"] = true, ["Carefully turn around and drive"] = true } },
  103. { Question = "You see a another driver driving recklessly, what do you do?", Options = { ["Inform the police"] = true, ["Drive recklessly yourself"] = true, ["Message your friend"] = true } },
  104. { 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"] = true, ["Follow someone until they help you"] = true, ["Call EMS"] = true } },
  105. }
  106.  
  107. --[[ NPC Bank Item Storage Settings ]]--
  108. GM.Config.BankStorage_MAX_UNIQUE_ITEMS = 10
  109. GM.Config.BankStorage_MAX_NUM_ITEM = 20
  110. GM.Config.BankStorage_VIP_MAX_UNIQUE_ITEMS = 50
  111. GM.Config.BankStorage_VIP_MAX_NUM_ITEM = 100
  112.  
  113. --[[ NPC Drug Dealer Settings ]]--
  114. GM.Config.DrugNPCMoveTime_Min = 15 *60
  115. GM.Config.DrugNPCMoveTime_Max = 40 *60
  116.  
  117. --[[ NPC Jail Warden Settings ]]--
  118. GM.Config.CopLawyerRequestCooldownTime = 60 --Time a player must wait after requesting a lawyer before they may do so again
  119.  
  120. --[[ Map Settings ]]--
  121. --The smaller the fade min and max are, the sooner map props will stop drawing
  122. GM.Config.DetailPropFadeMin = 1024
  123. GM.Config.DetailPropFadeMax = 1700
  124.  
  125. --[[ Job Settings ]]--
  126. GM.Config.JobPayInterval = 12 *60 --How often players should get paid
  127. GM.Config.EMSReviveBonus = 100 --How much money to give an EMS player when they revive someone
  128. GM.Config.FireBonus = 100 --How much money to give a firefighter player when they put out enough fires
  129. GM.Config.FireExtinguishBonusCount = 50 --How many fires a player must put out before they get paid the bonus
  130.  
  131. --[[ Weather ]]--
  132. GM.Config.WeatherRandomizer_MinTime = 60 *4
  133. GM.Config.WeatherRandomizer_MaxTime = 60 *8
  134. GM.Config.WeatherTable = {
  135. { ID = "thunder_storm", MinTime = 60 *3.5, MaxTime = 60 *12, Chance = function() return math.random(1, 8) == 1 end },
  136. { ID = "thunder_storm", MinTime = 60 *6, MaxTime = 60 *15, Chance = function() return math.random(1, 8) == 1 end },
  137. { ID = "light_rain", MinTime = 60 *3.5, MaxTime = 60 *8, Chance = function() return math.random(1, 5) == 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 *6, MaxTime = 60 *15, Chance = function() return math.random(1, 10) == 1 end },
  140. }
  141.  
  142. --[[ Misc Settings ]]--
  143. GM.Config.AdvertPrice = 20
  144. GM.Config.MinDrugConfiscatePrice = 25
  145. GM.Config.MaxDrugConfiscatePrice = 50
  146. GM.Config.DefWalkSpeed = 110
  147. GM.Config.DefRunSpeed = 220
  148. GM.Config.MaxRunSpeed = 280
  149.  
  150. --[[ Hard Coded Ban List ]]--
  151. GM.Config.Banned4Lyfe = {
  152. -- ["76561197964083008"] = "lol", --Fredy, thanks for showing me what was wrong in the end i guess
  153. ["76561198035956018"] = "lol", --Bolli, fredy's crew
  154. ["76561198037374396"] = "lol", --StephenPuffs, fredy's crew
  155. ["76561198162962704"] = "", --Leystryku, okay guy, but still lol, deleted the website
  156. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement