Advertisement
Guest User

Untitled

a guest
Apr 8th, 2019
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.17 KB | None | 0 0
  1. -[[
  2. Name: sv_config.lua
  3. by: Asriel + CodeRed
  4.  
  5. ]]
  6. --
  7. --[[ SQL Settings ]]
  8. --
  9. if DEV_SERVER then
  10. GM.Config.SQLHostName = "localhost"
  11. GM.Config.SQLUserName = "root"
  12. GM.Config.SQLPassword = "BusterRoxy2013"
  13. GM.Config.SQLDBName = "server"
  14. else
  15. GM.Config.SQLHostName = "localhost"
  16. GM.Config.SQLUserName = "root"
  17. GM.Config.SQLPassword = "BusterRoxy2013"
  18. GM.Config.SQLDBName = "server"
  19. end
  20. --[[ SQL - Heavy Bob - Commented out the stuff and put in my own values. https://www.youtube.com/watch?v=W8qcccZy03s ]]
  21. --
  22. --[[
  23. GM.Config.SQLNumWriteWorkers = 1
  24. GM.Config.SQLSnapshotRate = 1
  25. GM.Config.SQLReconnectInterval = 1
  26. ]]
  27. --
  28. --[[Commented this out to see if this will resolve SQL shit - Heavy Bob]]
  29. --
  30. GM.Config.SQLSnapshotRate = 60 --Lower = less time between updates to sql. This value should be set with respect to the number of workers in use!
  31. GM.Config.SQLReconnectInterval = 30 --Time to wait before retrying a lost sql connection
  32. GM.Config.SQLNumWriteWorkers = 8 --Number of connections to open to the sql server for writing player data with
  33. --[[ IPB Settings ]]
  34. --
  35. GM.Config.ServerRegion = "AU" --Options: US, EU
  36.  
  37. GM.Config.IPBJobWhitelist = {
  38. ["JOB_POLICE"] = {
  39. id = 2,
  40. timeReq = 24
  41. },
  42. ["JOB_FIREFIGHTER"] = {
  43. id = 4,
  44. timeReq = 4
  45. },
  46. ["JOB_EMS"] = {
  47. id = 3,
  48. timeReq = 12
  49. },
  50. ["JOB_PROSECUTOR"] = {
  51. id = 11,
  52. timeReq = 24
  53. },
  54. ["JOB_LAWYER"] = {
  55. id = 10,
  56. timeReq = 24
  57. },
  58. ["JOB_TOW"] = {
  59. id = 6,
  60. timeReq = 48
  61. },
  62. ["JOB_MAYOR"] = {
  63. id = 12
  64. },
  65. ["JOB_GARBAGE"] = {
  66. id = 15,
  67. timeReq = 24
  68. },
  69. ["JOB_SWAT"] = {
  70. id = 88,
  71. timeReq = 999
  72. }
  73. }
  74.  
  75. GM.Config.IPBUlxGroups = {
  76. -- { group = "superadmin", ids = {4, (DEV_SERVER and 21 or nil)} },
  77. {
  78. group = "superadmin",
  79. ids = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 88, 99}
  80. },
  81. {
  82. group = "developer",
  83. ids = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 88, 99}
  84. },
  85. {
  86. group = "admin",
  87. ids = {2, 3, 4, 11, 10, 6, 12}
  88. },
  89. {
  90. group = "operator",
  91. ids = {2, 3, 4, 11, 10, 6, 12}
  92. },
  93. {
  94. group = "manager",
  95. ids = {2, 3, 4, 11, 10, 6, 12}
  96. },
  97. {
  98. group = "owner",
  99. ids = {2, 3, 4, 11, 10, 6, 12}
  100. },
  101. {
  102. group = "enforcer",
  103. ids = {2, 3, 4, 11, 10, 6, 12}
  104. },
  105. {
  106. group = "donators",
  107. ids = {2, 3, 4, 11, 10, 6, 12}
  108. },
  109. {
  110. group = "highdonators",
  111. ids = {2, 3, 4, 11, 10, 6, 12}
  112. }
  113. }
  114.  
  115. --[[ ServerNet Settings ]]
  116. --
  117. --[[
  118. GM.Config.ServerNetUseTLS_1_2 = false
  119. GM.Config.ServerNetExtraAuth = false
  120. GM.Config.ServerNetExtraAuthKey = ""
  121. GM.Config.ServerNetPort = 27005
  122. GM.Config.ServerNetPool = {
  123. DEV_SERVER and "192.168.1.85" or nil,
  124. not DEV_SERVER and "45.121.211.88" or nil,
  125. }
  126. ]]
  127. --
  128. --[[ Global Loadout Settings ]]
  129. --
  130. GM.Config.GlobalLoadout = {"weapon_physgun", "weapon_keys", "weapon_srphands", "weapon_idcard"} --"weapon_physcannon", --"weapon_fists",
  131. GM.Config.VIPLoadout = {"weapon_physgun", "weapon_fists", "weapon_keys", "weapon_srphands", "weapon_idcard"} --"weapon_physcannon",
  132. --[[ Car Settings ]]
  133. --
  134. GM.Config.UseCustomVehicleDamage = false
  135. GM.Config.BaseCarFuelConsumption = 35
  136.  
  137. --[[ Property Settings ]]
  138. --
  139. --List of jobs that can lock government doors
  140. GM.Config.GovernemtDoorJobs = {
  141. ["JOB_POLICE"] = true,
  142. ["JOB_EMS"] = true,
  143. ["JOB_FIREFIGHTER"] = true,
  144. ["JOB_SSERVICE"] = true,
  145. ["JOB_SWAT"] = true,
  146. ["JOB_MAYOR"] = true -- Job Mayor is important.
  147. }
  148.  
  149. --[[ Damage Settings ]]
  150. --
  151. GM.Config.BleedDamage = 1
  152. GM.Config.BleedInterval = 30
  153. GM.Config.BleedBandageDuration = 60 * 2 --Time a bandage should stop bleeding for
  154. GM.Config.ItemDamageTakeCooldown = 45 --Time following a damage event to an item that a player should be blocked from picking the item back up
  155. --[[ Fire System Settings ]]
  156. --
  157. GM.Config.MaxFires = 256
  158. GM.Config.MaxChildFires = 25
  159. GM.Config.FireSpreadDistance = 100
  160. GM.Config.FireNodeCount = 6
  161. GM.Config.FireSpreadCount = 4
  162. GM.Config.FireBurnEverything = true
  163. GM.Config.FireSimRate = 8
  164. --[[ City Worker Settings ]]
  165. --
  166. GM.Config.PayForMowingGrass = 80
  167. GM.Config.PayForClearingDebris = 70
  168. GM.Config.PayForFixingHydrant = 100
  169. --[[ Driving Test Questions ]]
  170. --
  171. --Note: The questions table must be the same in the shared config, but without the answers!
  172. GM.Config.DrivingTestRetakeDelay = 5 * 60
  173. GM.Config.MinCorrectDrivingTestQuestions = 5
  174.  
  175. GM.Config.DrivingTestQuestions_Answers = {
  176. {
  177. Question = "What do you do when its a green light?",
  178. Options = {
  179. ["You begin to move"] = true,
  180. ["You stop"] = false,
  181. ["You turn off your engine"] = false
  182. }
  183. },
  184. {
  185. Question = "What do you do if you see someone thats just crashed.",
  186. Options = {
  187. ["Continue driving"] = false,
  188. ["Call your friends"] = false,
  189. ["Investigate the scene"] = true
  190. }
  191. },
  192. {
  193. Question = "Someone has just crashed into you and damaged your car.",
  194. Options = {
  195. ["Pull a weapon on him"] = false,
  196. ["Exchange insurance information"] = true,
  197. ["Talk shit to him while ramming his car"] = false
  198. }
  199. },
  200. {
  201. Question = "Your car seems to be not functioning properly, what do you do?",
  202. Options = {
  203. ["Call the cops"] = true,
  204. ["Stand on the road to get someones attention"] = false,
  205. ["Phone up mechanical services"] = false
  206. }
  207. },
  208. {
  209. Question = "You encounter a police road block and the officer tells you to turn around, do you",
  210. Options = {
  211. ["Ignore the officer and continue driving"] = false,
  212. ["Sit in your car and do nothing"] = false,
  213. ["Carefully turn around and drive"] = true
  214. }
  215. },
  216. {
  217. Question = "You see a another driver driving recklessly, what do you do?",
  218. Options = {
  219. ["Inform the police"] = true,
  220. ["Drive recklessly yourself"] = false,
  221. ["Message your friend"] = false
  222. }
  223. },
  224. {
  225. Question = "You have just accidentally crashed into a pole and you have injured yourself, what do you do?",
  226. Options = {
  227. ["Lie on the road and wait for someone to help"] = false,
  228. ["Follow someone until they help you"] = false,
  229. ["Call EMS"] = true
  230. }
  231. }
  232. }
  233.  
  234. --[[ NPC Bank Item Storage Settings ]]
  235. --
  236. GM.Config.BankStorage_MAX_UNIQUE_ITEMS = 10
  237. GM.Config.BankStorage_MAX_NUM_ITEM = 20
  238. GM.Config.BankStorage_VIP_MAX_UNIQUE_ITEMS = 50
  239. GM.Config.BankStorage_VIP_MAX_NUM_ITEM = 100
  240. --[[ NPC Drug Dealer Settings ]]
  241. --
  242. GM.Config.DrugNPCMoveTime_Min = 5 * 60
  243. GM.Config.DrugNPCMoveTime_Max = 10 * 60
  244. --[[ NPC Jail Warden Settings ]]
  245. --
  246. GM.Config.CopLawyerRequestCooldownTime = 60 --Time a player must wait after requesting a lawyer before they may do so again
  247. --[[ Map Settings ]]
  248. --
  249. --The smaller the fade min and max are, the sooner map props will stop drawing
  250. GM.Config.DetailPropFadeMin = 1024
  251. GM.Config.DetailPropFadeMax = 1700
  252. --[[ Job Settings ]]
  253. --
  254. GM.Config.JobPayInterval = 10 * 60 --How often players should get paid
  255. GM.Config.EMSReviveBonus = 500 --How much money to give an EMS player when they revive someone
  256. GM.Config.EMSReviveBonusCooldown = 5 * 60 --How much time (in seconds) should pass before an EMS recieves a bonus for reviving the same player
  257. GM.Config.FireBonus = 500 --How much money to give a firefighter player when they put out enough fires
  258. GM.Config.FireExtinguishBonusCount = 50 --How many fires a player must put out before they get paid the bonus
  259. --[[ Weather ]]
  260. --
  261. GM.Config.WeatherRandomizer_MinTime = 60 * 4
  262. GM.Config.WeatherRandomizer_MaxTime = 60 * 8
  263.  
  264. GM.Config.WeatherTable = {
  265. {
  266. ID = "thunder_storm",
  267. MinTime = 60 * 3.5,
  268. MaxTime = 60 * 12,
  269. Chance = function() return math.random(1, 8) == 1 end
  270. },
  271. {
  272. ID = "thunder_storm",
  273. MinTime = 60 * 6,
  274. MaxTime = 60 * 15,
  275. Chance = function() return math.random(1, 8) == 1 end
  276. },
  277. {
  278. ID = "light_rain",
  279. MinTime = 60 * 3.5,
  280. MaxTime = 60 * 8,
  281. Chance = function() return math.random(1, 5) == 1 end
  282. },
  283. {
  284. ID = "light_rain",
  285. MinTime = 60 * 3.5,
  286. MaxTime = 60 * 8,
  287. Chance = function() return math.random(1, 5) == 1 end
  288. },
  289. {
  290. ID = "light_rain",
  291. MinTime = 60 * 6,
  292. MaxTime = 60 * 15,
  293. Chance = function() return math.random(1, 10) == 1 end
  294. }
  295. }
  296.  
  297. --[[ Misc Settings ]]
  298. --
  299. GM.Config.AdvertPrice = 20
  300. GM.Config.MinDrugConfiscatePrice = 25
  301. GM.Config.MaxDrugConfiscatePrice = 50
  302. GM.Config.DefWalkSpeed = 85
  303. GM.Config.DefRunSpeed = 225
  304. GM.Config.MaxRunSpeed = 385
  305. GM.Config.Banned4Lyfe = {}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement