Advertisement
LunaScripts

Box ESP source

Aug 12th, 2016
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. local box = CreateClientConVar( "boxesp", "0", false, false )
  2.  
  3. hook.Add("HUDPaint","",function()
  4. if(!box:GetBool()) then return; end
  5. for k, v in next, player.GetAll( ) do
  6. surface.SetFont ( "trebuchet18" )
  7. if v:GetFriendStatus() == "friend" then
  8. surface.SetDrawColor( Color( 0,255,0 ) )
  9. else
  10. surface.SetDrawColor( 255, 0, 0 )
  11. end
  12. if v:IsAdmin() then
  13. surface.SetDrawColor( Color( 255,0,255 ) )
  14. end
  15. if v:Health( ) >= 1 and v:IsValid() and v != LocalPlayer() then
  16. local pos = v:GetPos( );
  17. local pos, pos2 = (pos - Vector(0, 0, 5)):ToScreen(), ( pos + Vector(0, 0, 70 ) ):ToScreen();
  18. local h = pos.y - pos2.y;
  19. local w = h / 2.2;
  20. surface.DrawOutlinedRect( pos.x - w / 2, pos.y - h, w, h);
  21. surface.SetDrawColor(0, 0, 0, 0);
  22. surface.DrawOutlinedRect( pos.x - w / 2 - 1, pos.y - h - 1, w + 2, h + 2);
  23. surface.DrawOutlinedRect( pos.x - w / 2 + 1, pos.y - h + 1, w - 2, h - 2);
  24.  
  25. end
  26. end
  27. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement