Advertisement
Guest User

NFG

a guest
Dec 16th, 2017
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.84 KB | None | 0 0
  1. ---------------------------------------------------------------
  2. ------------------------- The NameTag -------------------------
  3. ---------------------------------------------------------------
  4. EOTI_NameTag.Motif = 'Space.lua' -- Selected Motif from /hud/ folder
  5. EOTI_NameTag.EditorRefresh = true -- Refreshes the LUA file every second, only use for customizing the HUD on your server
  6.  
  7. -- The Targeting HUD
  8. EOTI_NameTag.Enable = true -- toggle on/off
  9. EOTI_NameTag.TargetYOffset = 30 -- How far above their head the tag appears
  10. EOTI_NameTag.Distance = 300 -- How close you need to be to see it (30 = 1 yard/meter)
  11.  
  12. -- Draw halo around target.
  13. EOTI_NameTag.DrawHalo = false -- Creates a Left4Dead style halo around your target.
  14. EOTI_NameTag.HaloColor = Color(100,100,255) -- Determines the color of the Halo.
  15. EOTI_NameTag.HaloSize = 2 -- How large the halo is around the player.
  16. EOTI_NameTag.HaloIntensity = 2 -- Increases brightness, causes FPS lag it set too high and only matters if you set EOTI_NameTag.HaloSize to higher than 3.
  17.  
  18. -- Who it displays on
  19. EOTI_NameTag.ShowPlayer = true
  20. EOTI_NameTag.ShowNPC = false
  21. EOTI_NameTag.ShowVehicle = false
  22. EOTI_NameTag.ShowProp = false -- Displays all entities; note: this will turn it on for players using roaming NPC addon from SF.
  23.  
  24. -- Which Targeting HUD boxes are displayed
  25. EOTI_NameTag.ShowName = true -- Hides/shows the player name above their head.
  26. EOTI_NameTag.ShowNPCName = false -- Hides/shows the NPC name or entity class name above their head.
  27. EOTI_NameTag.ShowVehicleName = false -- Hides/shows the npc or entity class name above their head.
  28. EOTI_NameTag.ShowHealth = false -- Hides/shows the health on the left
  29. EOTI_NameTag.ShowArmor = false -- Hides/shows the armor in the middle
  30. EOTI_NameTag.ShowTag = false -- Hides/shows the level or rank tag on the right
  31. EOTI_NameTag.ShowInfo = true -- Hides/shows the information bar on the bottom
  32. EOTI_NameTag.HideNameTag = true -- Hides/shows the DarkRP or default Garry's Mod Name Tag.
  33.  
  34. ---------------------------------------------------------------
  35. ------------------------ The Healthbar ------------------------
  36. ---------------------------------------------------------------
  37. EOTI_HPBar.Enable = false -- Toggle on/off
  38. EOTI_HPBar.YOffset = 170 -- How high above their head it is.
  39. EOTI_HPBar.Distance = 350 -- How close you need to be to see it.
  40. EOTI_HPBar.BarHeight = 8 -- How tall the health/armor bars are.
  41. EOTI_HPBar.BarWidth = 150 -- How wide the health/armor bars are.
  42. EOTI_HPBar.Max = 10 -- Max number of Health Bars visible at one time. Increasing this may low fps for lower-end players on your server.
  43. EOTI_HPBar.ShowBots = false -- Shows the healthbar on nearby Bots.
  44. EOTI_HPBar.ShowPlayers = false -- Shows the healthbar on nearby Players.
  45.  
  46. --------------------------------------------------------------
  47. --------------------- Assign Custom Names --------------------
  48. --------------------------------------------------------------
  49.  
  50. -- You can give names to entities or NPCs using this, The format is:
  51. -- Entity_classname = 'name you want!',
  52. EOTI_NameTag.CustomNames = {
  53.  
  54. -- ENTITIES
  55. pocket = 'Hände',
  56.  
  57. -- VEHICLES
  58. prop_vehicle_jeep = 'Vehicle',
  59. prop_vehicle_prisoner_pod = 'Prison Pod',
  60. prop_vehicle_airboat = 'Airboat',
  61.  
  62. -- NPCS
  63. npc_kleiner = 'Dr. Isaac Kleiner',
  64. npc_combine_s = 'Combine Soldier',
  65. }
  66.  
  67. --------------------------------------------------------------
  68. ---------------------- Advanced Users ------------------------
  69. --------------------------------------------------------------
  70.  
  71. -- EOTI_NameTag.getDarkRPJob() -- returns a string (DarkRP only)
  72. -- EOTI_NameTag.getLevel() -- returns a number (works with vrondakis, leveling system, levelup, elevel)
  73. -- EOTI_NameTag.hasDarkRPGunLicense() -- returns a boolean (DarkRP only)
  74. -- EOTI_NameTag.isDarkRPWanted() -- returns boolean if they're wanted.
  75. -- EOTI_NameTag.TargetIsInPlayerGroup(group) -- returns a boolean if they're in a user group (DarkRP only)
  76.  
  77. -- This is the bar at the bottom, this function will override it. Returning nil makes it not appear.
  78.  
  79. function EOTI_NameTag.overrideInfoBar(ply,target,isply,isnpc,isveh,isprop)
  80. local job = EOTI_NameTag.getDarkRPJob( target ) or ''
  81. return job != '' and job or nil
  82. end
  83.  
  84.  
  85. -- This is the bar on the right, this function will override it. Returning nil makes it not appear.
  86. function EOTI_NameTag.overrideTag(ply,target,isply,isnpc,isveh,isprop)
  87. local ply = isply and 'Player' -- Is your target a player, display Lv.5 or Player (if DarkRP doesn't exist)
  88. local veh = isveh and 'Vehicle' -- Is your target a vehicle?
  89. local npc = isnpc and 'NPC' -- Is your target an NPC?
  90. local prp = isprop and 'Prop' -- Is your target a prop?
  91.  
  92.  
  93. return own or adm or mod or vip or lvl or npc or veh or prp or nil
  94. -- nil causes the bar to disappear if they're none of the above.
  95. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement