SolvedWhy this didn't work?

Posts 1–10 of 10 · Page 1 of 1
Why this didn't work?
Code:
function ShowDesc()
	local sentity = ((LocalPlayer:GetEyeTrace().Entity):GetClass())
	draw.DrawText( sentity, "verysmall", 162, ScrH()-500, Color(255,255,255,255), TEXT_ALIGN_CENTER)
end
I was trying to see which entity class am i looking to but this didn't worked, i got bypass i run this on a server. I got font in same file.
Quote Originally Posted by 0 - p100 real quick View Post
errors....?
No nothing happens, i did reload the lua then tryed that but nothing still
are you hooking it or not
Thanks for replys, it's gaving that: attempt to index upvalue 'LocalPlayer' (a function value) for local sentity = ((LocalPlayer:GetEyeTrace().Entity):GetClass()) part.
Quote Originally Posted by fiha4155 View Post
Thanks for replys, it's gaving that: attempt to index upvalue 'LocalPlayer' (a function value) for local sentity = ((LocalPlayer:GetEyeTrace().Entity):GetClass()) part.
local sentity = ((LocalPlayer():GetEyeTrace().Entity):GetClass())

should work
Quote Originally Posted by fiha4155 View Post
Code:
function ShowDesc()
	local sentity = ((LocalPlayer:GetEyeTrace().Entity):GetClass())
	draw.DrawText( sentity, "verysmall", 162, ScrH()-500, Color(255,255,255,255), TEXT_ALIGN_CENTER)
end
I was trying to see which entity class am i looking to but this didn't worked, i got bypass i run this on a server. I got font in same file.
Code:
function ShowDesc()
	local sentity = LocalPlayer():GetEyeTrace().Entity:GetClass()
	draw.DrawText( sentity, "verysmall", 162, ScrH()-500, Color(255,255,255,255), TEXT_ALIGN_CENTER)
end
Quote Originally Posted by suchisgood View Post
Code:
function ShowDesc()
	local sentity = LocalPlayer():GetEyeTrace().Entity:GetClass()
	draw.DrawText( sentity, "verysmall", 162, ScrH()-500, Color(255,255,255,255), TEXT_ALIGN_CENTER)
end
Thanks for reply, i love u! U are faster than facepunch. Thanks. I will try it. If it don't works, i will reply again.
Quote Originally Posted by fiha4155 View Post
Thanks for reply, i love u! U are faster than facepunch. Thanks. I will try it. If it don't works, i will reply again.
Thanks!
Posts 1–10 of 10 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us