GMod 13 Vectors...

I noticed you can’t just do .x/.y/.z anymore, which totally sucks! any alternatives?

As far as I’ve seen, you can still do .x, .y, and .z. Paste your code.

Yes you can use .x .y .z

It says error (nil value) so

Then you are doing something wrong.

Perhaps your vector is nil? Show us your full code.

It doesn’t matter what the error is, no one can help unless you post some code.

function tuzt()
for k,v in pairs(ents.FindByClass(“player”)) do
if v:Alive() then
color = team.GetColor(v:Team())
local vec_lel
vec_lel = Vector(0,0,70)
if v:Crouching() then
vec_lel = Vector(0,0,50)
end
local vout1
local vout2
vout1=v:GetPos()
vout2=v:GetPos()+vec_lel
vout1=vout1:ToScreen()
vout2=vout2:ToScreen()
local w
local h
h = vout2.z - vout1.z
w = h/5.56
surface.SetDrawColor(0,0,0,255)
surface.DrawOutlinedRect(vout1.x-w-1,vout2.y-1,vout1.x+w+1,vout.y+1)
surface.DrawOutlinedRect(vout1.x-w+1,vout2.y+1,vout1.x+w-1,vout.y-1)
surface.SetDrawColor(color)
surface.DrawOutlinedRect(vout1.x-w,vout2.y,vout1.x+w,vout.y)
end
end
end
hook.Add(“HUDPaint”,“lelt”,tuzt)

tell me why this crap doesnt work…

vout is a nil value. It should be vout1 or vout2 I assume.

oi i found the problem, it was at h=.z-.z thing while it was already toscreen’d

I find it funny how you just pasted your ESP code, this is just embarrassing :v:

By the way, is that an ESP?
If it is, it’s terrible.

http://cloud-2.steampowered.com/ugc/613895992251380574/91AECBA96AC593EC42134A847903C9E381A3BD0B/

do you call that terrible?

[editline]25th June 2013[/editline]

i dont care about it as it is a 2min hack and its years ago i made a gmod cheat

Yes, It’s terrible.
The box is very offset, probably doesn’t scale with the text and the text is way too high also.
Oh and did I mention your code? It’s awful.
And I think that all the people who “show off” their cheats should be just banned from facepunch.

the text is no part from the ESP… have you ever played TTT?

It’s still pretty bad code; Sorry!