Advertisement
Guest User

Untitled

a guest
Feb 17th, 2020
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.62 KB | None | 0 0
  1. -- ╔═══╗───╔╗──────╔╗─╔╗────╔╗--
  2. -- ║╔═╗║───║║──────║║─║║────║║--
  3. -- ║║─╚╬╗─╔╣╚═╦══╦═╣╚═╝╠╗╔╦═╝║--
  4. -- ║║─╔╣║─║║╔╗║║═╣╔╣╔═╗║║║║╔╗║--
  5. -- ║╚═╝║╚═╝║╚╝║║═╣║║║─║║╚╝║╚╝║--
  6. -- ╚═══╩═╗╔╩══╩══╩╝╚╝─╚╩══╩══╝--
  7. -- ────╔═╝║──── By Mactavish ─--
  8. -- ────╚══╝─────── Config ────--
  9.  
  10. -- ╔══╦════╦════╦═══╦╗─╔╦════╦══╦══╦╗─╔╦╦╦╗
  11. -- ║╔╗╠═╗╔═╩═╗╔═╣╔══╣╚═╝╠═╗╔═╩╗╔╣╔╗║╚═╝║║║║
  12. -- ║╚╝║─║║───║║─║╚══╣╔╗─║─║║──║║║║║║╔╗─║║║║
  13. -- ║╔╗║─║║───║║─║╔══╣║╚╗║─║║──║║║║║║║╚╗╠╩╩╝
  14. -- ║║║║─║║───║║─║╚══╣║─║║─║║─╔╝╚╣╚╝║║─║╠╦╦╗
  15. -- ╚╝╚╝─╚╝───╚╝─╚═══╩╝─╚╝─╚╝─╚══╩══╩╝─╚╩╩╩╝
  16.  
  17. -- You can edit the config throw the game!!!
  18. -- Just type ch_confing command in the console
  19.  
  20. CyberHud.DefaultPatern = {
  21. ["main_l"] = Color(255,55,40), -- This is main HUD color
  22. ["main_d"] = Color(155,55,40), -- Main color but darker
  23. ["main_s"] = Color(245,45,70), -- This color used only in health bar as the second slider
  24. ["sub_l"] = Color(170,255,250), -- Sub color (for armor and etc)
  25. ["hunger"] = Color(54,217,107), -- Hunger bar and wallet color
  26. ["red"] = Color(255,55,40), -- Red notifications
  27. ["yellow"] = Color(255,200,40), -- Yellow notifications
  28. ["blue"] = Color(170,255,250), -- Blue notifications
  29. ["shadow"] = Color(0,0,0,100), -- Shadows
  30. ["bgr"] = Color(0,0,0,155) -- Same as shadows but darker
  31. }
  32.  
  33. CyberHud.TeamPaterns = {}
  34.  
  35. -- Navi and white
  36. CyberHud.TeamPaterns["Group_1"] = {
  37. ["main_l"] = Color(50,200,255),
  38. ["main_d"] = Color(0,55,155),
  39. ["main_s"] = Color(10,180,250),
  40. ["sub_l"] = Color(250,250,250),
  41. ["hunger"] = Color(255,190,0),
  42. ["red"] = Color(255,55,40),
  43. ["yellow"] = Color(255,200,40),
  44. ["blue"] = Color(170,255,250),
  45. ["shadow"] = Color(0,0,0,100),
  46. ["bgr"] = Color(0,0,0,155)
  47. }
  48.  
  49. -- Purple
  50. CyberHud.TeamPaterns["Group_2"] = {
  51. ["main_l"] = Color(180,0,255),
  52. ["main_d"] = Color(155,55,40),
  53. ["main_s"] = Color(245,45,70),
  54. ["sub_l"] = Color(239,20,94),
  55. ["hunger"] = Color(239,20,94),
  56. ["red"] = Color(255,55,40),
  57. ["yellow"] = Color(255,200,40),
  58. ["blue"] = Color(170,255,250),
  59. ["shadow"] = Color(0,0,0,100),
  60. ["bgr"] = Color(0,0,0,155)
  61. }
  62.  
  63. CyberHud.TeamSetup = {
  64. [TEAM_ENFANT] = "Group_1",
  65. [TEAM_INITIE] = "Group_1",
  66. [TEAM_PADAWAN] = "Group_1",
  67. [TEAM_JEDI] = "Group_1",
  68. [TEAM_CHEVALIER] = "Group_1",
  69. [TEAM_CONSULAIRE] = "Group_1",
  70. }
  71.  
  72. -- If you still want to edit the config manually, lock the config to block
  73.  
  74. CyberHud.LockedConfig = false -- Locking the config disable ingame configurator menu
  75.  
  76. CyberHud.Config.GlitchEffect = true -- Enable HUD glitching effect when player got damaged or player's health is less than 60%
  77.  
  78. CyberHud.Config.ColorCor = true -- Enable color correction when player's health gets lower
  79.  
  80. CyberHud.Config.BloodStains = true -- Enable blood stains on the screen when player's health is low
  81.  
  82. CyberHud.Config.HeartBeat = true -- Enable heart beating sound when player's health is low
  83.  
  84. CyberHud.Config.MainColorBased = true -- Draw notifications with the same color as a hud
  85.  
  86. CyberHud.Config.EnableFlash = false -- Enable flash on alert notifications (middle screen notifications)
  87.  
  88. CyberHud.Config.HiddenWallet = false -- Show player's wallet only if it was changed (when player drops/gets money or salary)
  89.  
  90. CyberHud.Config.DrawPlayerHalo = false -- Draw halo around players when they are close to you
  91.  
  92. CyberHud.Config.EnablePlayerInfo = true -- Enable overhead hud information above other players
  93.  
  94. CyberHud.Config.DrawDoorHalo = false -- Draw halo around entities (doors and cars) when you are close and looking at them
  95.  
  96. CyberHud.Config.WeaponSelectionHud = true -- Enable weapon selection hud
  97.  
  98. CyberHud.Config.WeaponInfo = true -- Enable weapon information on hud
  99.  
  100. CyberHud.Config.Weapon_Sel = "cyberhud/sel.wav" -- Weapon selection sound
  101.  
  102. CyberHud.Config.Weapon_Scr = "cyberhud/scr.wav" -- Weapon scroll sound
  103.  
  104. /////////////////////////////////////////////////////////////////////
  105. /////////////////////////////////////////////////////////////////////
  106. -- ───────────────────────────--/////////////////////////////////////
  107. -- Do not edit anything below --/////////////////////////////////////
  108. -- ───────────────────────────--/////////////////////////////////////
  109. /////////////////////////////////////////////////////////////////////
  110. /////////////////////////////////////////////////////////////////////
  111.  
  112. CyberHud.Patern = table.Copy(CyberHud.DefaultPatern)
  113.  
  114. function CyberHud.DrawGlitchEffect()
  115.  
  116. if CLIENT and CyberHud.Config.GlitchEffect then
  117. return true
  118. end
  119.  
  120. return false
  121.  
  122. end
  123.  
  124. net.Receive( "CyberHud.GetData", function(l, ply)
  125.  
  126. if CLIENT then
  127. local config = net.ReadTable()
  128.  
  129. CyberHud.Config = config
  130.  
  131. CyberHud.UpdateHookInfo()
  132. else
  133. net.Start("CyberHud.GetData")
  134. net.WriteTable(CyberHud.Config)
  135. net.Send(ply)
  136. end
  137.  
  138. end)
  139.  
  140. if CLIENT then
  141.  
  142. net.Start("CyberHud.GetData") net.SendToServer()
  143.  
  144. end
  145.  
  146. if SERVER then
  147.  
  148. net.Receive( "CyberHud.SaveConfig", function(l, ply)
  149.  
  150. if !ply:IsSuperAdmin() then return end
  151.  
  152. if CyberHud.LockedConfig then return end
  153.  
  154. local config = net.ReadTable()
  155.  
  156. CyberHud.Config = config
  157.  
  158. net.Start("CyberHud.GetData")
  159. net.WriteTable(config)
  160. net.Send(player.GetAll())
  161.  
  162. json_table = util.TableToJSON( config, true )
  163.  
  164. file.Write("cyberhud_config_v2.txt",json_table)
  165.  
  166. end)
  167.  
  168.  
  169. if CyberHud.LockedConfig then return end
  170.  
  171. if !file.Exists("cyberhud_config_v2.txt","DATA") then
  172.  
  173. json_table = util.TableToJSON( CyberHud.Config, true )
  174.  
  175. file.Write("cyberhud_config_v2.txt",json_table)
  176.  
  177. else
  178.  
  179. local config = util.JSONToTable(file.Read("cyberhud_config_v2.txt","DATA"))
  180.  
  181. CyberHud.Config = config
  182.  
  183. net.Start("CyberHud.GetData")
  184. net.WriteTable(config)
  185. net.Send(player.GetAll())
  186. end
  187.  
  188. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement