Box esp Gmod .lua

Posts 1–11 of 11 · Page 1 of 1
Box esp Gmod .lua
Hello
Well i'm looking for source code for Box esp.
Yes, i'm shitty coder so i can't code it by myself so i'm asking you for make it for me, please
You know like Green box on players so you can see them thought the walls and stuff ;3
I need this code so i can put it to other script
Thanks for help
Code:
        print("ESP Loaded")
LocalPlayer():ChatPrint("BoxESP Loaded")
LocalPlayer():ChatPrint("Wallhack Loaded")
LocalPlayer():ChatPrint("by Skittles 2.0")

local function MESPCheck(v)
	if v:Alive() == true && v:Health() ~= 0 && v:Health() >= 0 && v ~= LocalPlayer() && LocalPlayer():Alive() then
		return true
	else
		return false
	end
end


hook.Add( "HUDPaint", "aimbot.Wallhack", function()
for k,v in pairs ( player.GetAll() ) do
 
        local Position = ( v:GetPos() + Vector( 0,0,80 ) ):ToScreen()
        local Name = ""
 
        if v == LocalPlayer() then Name = "" else Name = v:Name() end
 
end
 
end )
 
local shouldDraw = true
 
local hzCross = CreateClientConVar("HZ_Crosshair","0",false)
 
function Crosshair1()
surface.SetDrawColor(team.GetColor(LocalPlayer():Team()))
surface.DrawLine(ScrW() / 2 - 10, ScrH() / 2, ScrW() / 2 + 11 , ScrH() / 2)
surface.DrawLine(ScrW() / 2 - 0, ScrH() / 2 - 10, ScrW() / 2 - 0 , ScrH() / 2 + 11)
end
hook.Add("HUDPaint","CustomCross",Crosshair1)

local function coordinates( ent )
local min, max = ent:OBBMins(), ent:OBBMaxs()
local corners = {
        Vector( min.x, min.y, min.z ),
        Vector( min.x, min.y, max.z ),
        Vector( min.x, max.y, min.z ),
        Vector( min.x, max.y, max.z ),
        Vector( max.x, min.y, min.z ),
        Vector( max.x, min.y, max.z ),
        Vector( max.x, max.y, min.z ),
        Vector( max.x, max.y, max.z )
}
 
local minX, minY, maxX, maxY = ScrW() * 2, ScrH() * 2, 0, 0
for _, corner in pairs( corners ) do
        local onScreen = ent:LocalToWorld( corner ):ToScreen()
        minX, minY = math.min( minX, onScreen.x ), math.min( minY, onScreen.y )
        maxX, maxY = math.max( maxX, onScreen.x ), math.max( maxY, onScreen.y )
end
 
return minX, minY, maxX, maxY
end
hook.Add("HUDPaint", "Example", function()
for k,v in pairs(player.GetAll()) do
        local x1,y1,x2,y2 = coordinates(v)
         print(tostring(team.GetColor(v:Team())))
         surface.SetDrawColor(color_white)
 
 
        surface.DrawLine( x1, y1, math.min( x1 + 5, x2 ), y1 )
        surface.DrawLine( x1, y1, x1, math.min( y1 + 5, y2 ) )
 
 
        surface.DrawLine( x2, y1, math.max( x2 - 5, x1 ), y1 )
        surface.DrawLine( x2, y1, x2, math.min( y1 + 5, y2 ) )
 
 
        surface.DrawLine( x1, y2, math.min( x1 + 5, x2 ), y2 )
        surface.DrawLine( x1, y2, x1, math.max( y2 - 5, y1 ) )
 
 
        surface.DrawLine( x2, y2, math.max( x2 - 5, x1 ), y2 )
        surface.DrawLine( x2, y2, x2, math.max( y2 - 5, y1 ) )
end
end)

local struc = {}
struc.pos = {}
struc.pos[1] = 100 -- x pos
struc.pos[2] = 200 -- y pos
struc.color = Color(255,0,0,255) -- Red
struc.text = "Hello World" -- Text
struc.font = "DefaultFixed" -- Font
struc.xalign = TEXT_ALIGN_CENTER -- Horizontal Alignment
struc.yalign = TEXT_ALIGN_CENTER -- Vertical Alignment
draw.Text( struc )
It also has a Custom Crosshair, Have fun
Thank you :3
Quote Originally Posted by coca12345 View Post
Thank you :3
No problem.
Hey i have another question for you.
I think this code is for color of box: "surface.SetDrawColor(color_white)"
Do you know why if i change color_white to color_blue, this doesn't want to work?
Quote Originally Posted by coca12345 View Post
Hey i have another question for you.
I think this code is for color of box: "surface.SetDrawColor(color_white)"
Do you know why if i change color_white to color_blue, this doesn't want to work?
No clue, Just keep it white.
One question, where i put the .lua in?

---------- Post added at 07:57 AM ---------- Previous post was at 07:46 AM ----------

And what's the bind code's? c:
And what's the bind code's? c:

Like Bind <Key> "Code"
Yea... BUT WHATS THE CODE?
Quote Originally Posted by Hamadas View Post
Yea... BUT WHATS THE CODE?
Theres no code haha Just run the script Then while still in console put Example Bind c "Aimbot 1" then Bind v "Aimbot 0" etc...
Quote Originally Posted by Hamadas View Post
Yea... BUT WHATS THE CODE?
Well, if you took 1 or 2 minutes to actually look, you'd see that there is none, It's just a simple ESP, all you have to do is Open it.
Posts 1–11 of 11 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us