I would just like to say, I am a serverside scripter 99% of the time, and the clientside scripter for our gamemode normally does this, so don’t eat me.
local trace = LocalPlayer():GetEyeTrace()
if (ValidEntity(trace.Entity)) and (trace.Entity:GetPos():Distance(LocalPlayer():GetPos()) < 100) then
ent = trace.Entity
if ent:IsDoor() then
if ent:IsOwnable() == false then
pos = ent:GetPos()
draw.DrawText(“Un Ownable”, “TargetID”, pos.x, pos.y, Color( 255, 255, 255, 255), 1)
hook.Add(“HUDPaint”, “DrawBox”, DrawDisplay);
The current problem is, is that the text isn’t showing up. However, when I change the X,Y values of the text to anything other than pos.x or pos.y (ie. 100,100), it actually appears on the screen. So basically, it IS recognizing its a door and that it is unownable, but its just not writing it.