Advertisement
Guest User

Untitled

a guest
Jun 5th, 2017
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.44 KB | None | 0 0
  1. --[[
  2. Name: sv_config.lua
  3. For: SantosRP
  4. By: Ultra
  5. ]]--
  6.  
  7. --[[ SQL Settings ]]--
  8. if DEV_SERVER then
  9. GM.Config.SQLHostName = "localhost"
  10. GM.Config.SQLUserName = "db12419"
  11. GM.Config.SQLPassword = "ch3U101i20"
  12. GM.Config.SQLDBName = "db12419"
  13. else
  14. GM.Config.SQLHostName = "localhost"
  15. GM.Config.SQLUserName = "db12419"
  16. GM.Config.SQLPassword = "ch3U101i20"
  17. GM.Config.SQLDBName = "db12419"
  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 = "community_manager", 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. --[[ Global Loadout Settings ]]--
  43. GM.Config.GlobalLoadout = {
  44. "weapon_physgun",
  45. --"weapon_physcannon",
  46. --"weapon_fists",
  47. "weapon_keys",
  48. "weapon_srphands",
  49. "weapon_idcard",
  50. }
  51.  
  52. --[[ Car Settings ]]--
  53. GM.Config.UseCustomVehicleDamage = true
  54. GM.Config.BaseCarFuelConsumption = 35
  55.  
  56. --[[ Property Settings ]]--
  57. GM.Config.GovernemtDoorJobs = { --List of jobs that can lock government doors
  58. ["JOB_POLICE"] = true,
  59. ["JOB_EMS"] = true,
  60. ["JOB_FIREFIGHTER"] = true,
  61. }
  62.  
  63. --[[ Damage Settings ]]--
  64. GM.Config.BleedDamage = 1
  65. GM.Config.BleedInterval = 30
  66. GM.Config.BleedBandageDuration = 60 *2 --Time a bandage should stop bleeding for
  67. GM.Config.ItemDamageTakeCooldown = 45 --Time following a damage event to an item that a player should be blocked from picking the item back up
  68.  
  69. --[[ Fire System Settings ]]--
  70. GM.Config.MaxFires = 512
  71. GM.Config.MaxChildFires = 32
  72. GM.Config.FireSpreadDistance = 80
  73. GM.Config.FireNodeCount = 4
  74. GM.Config.FireSpreadCount = 2
  75. GM.Config.FireBurnEverything = true
  76. GM.Config.FireSimRate = 6
  77.  
  78. --[[ Driving Test Questions ]]--
  79. --Note: The questions table must be the same in the shared config, but without the answers!
  80. GM.Config.DrivingTestRetakeDelay = 5 *60
  81. GM.Config.MinCorrectDrivingTestQuestions = 5
  82. GM.Config.DrivingTestQuestions_Answers = {
  83. { 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 } },
  84. { Question = "What do you do if you see someone thats just crashed.", Options = { ["Continue driving"] = false, ["Call your friends"] = false, ["Investigate the scene"] = true } },
  85. { 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 } },
  86. { 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 } },
  87. { 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 } },
  88. { 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 } },
  89. { 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 } },
  90. }
  91.  
  92. --[[ NPC Bank Item Storage Settings ]]--
  93. GM.Config.BankStorage_MAX_UNIQUE_ITEMS = 10
  94. GM.Config.BankStorage_MAX_NUM_ITEM = 20
  95. GM.Config.BankStorage_VIP_MAX_UNIQUE_ITEMS = 50
  96. GM.Config.BankStorage_VIP_MAX_NUM_ITEM = 100
  97.  
  98. --[[ NPC Drug Dealer Settings ]]--
  99. GM.Config.DrugNPCMoveTime_Min = 15 *60
  100. GM.Config.DrugNPCMoveTime_Max = 40 *60
  101.  
  102. --[[ Map Settings ]]--
  103. --The smaller the fade min and max are, the sooner map props will stop drawing
  104. GM.Config.DetailPropFadeMin = 1024
  105. GM.Config.DetailPropFadeMax = 1700
  106.  
  107. --[[ Job Settings ]]--
  108. GM.Config.JobPayInterval = 15 *60 --How often players should get paid
  109. GM.Config.EMSReviveBonus = 100 --How much money to give an EMS player when they revive someone
  110. GM.Config.FireBonus = 100 --How much money to give a firefighter player when they put out enough fires
  111. GM.Config.FireExtinguishBonusCount = 50 --How many fires a player must put out before they get paid the bonus
  112.  
  113. --[[ Weather ]]--
  114. GM.Config.WeatherRandomizer_MinTime = 60 *4
  115. GM.Config.WeatherRandomizer_MaxTime = 60 *8
  116. GM.Config.WeatherTable = {
  117. { ID = "thunder_storm", MinTime = 60 *3.5, MaxTime = 60 *12, Chance = function() return math.random(1, 8) == 1 end },
  118. { ID = "thunder_storm", MinTime = 60 *6, MaxTime = 60 *15, Chance = function() return math.random(1, 8) == 1 end },
  119. { ID = "light_rain", MinTime = 60 *3.5, MaxTime = 60 *8, Chance = function() return math.random(1, 5) == 1 end },
  120. { ID = "light_rain", MinTime = 60 *3.5, MaxTime = 60 *8, Chance = function() return math.random(1, 5) == 1 end },
  121. { ID = "light_rain", MinTime = 60 *6, MaxTime = 60 *15, Chance = function() return math.random(1, 10) == 1 end },
  122. }
  123.  
  124. --[[ Misc Settings ]]--
  125. GM.Config.AdvertPrice = 75
  126. GM.Config.MinDrugConfiscatePrice = 50
  127. GM.Config.MaxDrugConfiscatePrice = 120
  128. GM.Config.DefWalkSpeed = 80
  129. GM.Config.DefRunSpeed = 185
  130. GM.Config.MaxRunSpeed = 260
  131.  
  132. --[[ Hard Coded Ban List ]]--
  133. GM.Config.Banned4Lyfe = {
  134. ["76561197964083008"] = "lol", --Fredy, thanks for showing me what was wrong in the end i guess
  135. ["76561198035956018"] = "lol", --Bolli, fredy's crew
  136. ["76561198037374396"] = "lol", --StephenPuffs, fredy's crew
  137. ["76561197986963571"] = "lol", --XQ, fredy's crew
  138. ["76561197994463215"] = "lol", --Fredy's crew
  139. ["76561198162962704"] = "", --Leystryku, okay guy, but still lol, deleted the website
  140. ["76561198262197817"] = "gay", --Michael Ross, thanks for being gay
  141. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement