local Modelname = {}Modelname_show = trueif ( CLIENT ) thenfunction Modelname.HUDPaint() local ply = LocalPlayer() local trace = ply:GetEyeTrace() if !trace.Entity then return false end if ( Modelname.Modelname_show ) then local class = Entity:GetClass() local model = Entity:GetModel() local ent = trace.Entity --if ent:IsValid() and class == "worldspawn" then return false --elseif ent:IsValid() and class != "worldspawn" if ( ent:IsValid() and class != "worldspawn" ) then local text = ("" .. class .. ": " .. model .. "") end --nameit(text) if Modelname.modelname_show then draw.WordBox( 8, ScrW() / 2, ScrH() / 2, "(" .. text .. ")", "Default", Color(50,50,75,100), Color(255,255,255,255) ) end else endend-- function Modelname.nameit( text ) -- draw.WordBox( 8, ScrW() / 2, ScrH() / 2, "(" .. text .. ")", "Default", Color(50,50,75,100), Color(255,255,255,255) ) -- end --function Toggle(cmd) if Modelname_show then return false end else return true end--concommand.Add( "nameit", Toggle )hook.Add( "HUDPaint", "TellMeNow", Modelname.HUDPaint ) end