Is there a console command to see name of the prop you are looking at?

Hi, is there a console command to see name (and preferably model location) of the prop you are looking at ingame?

if you’re in singleplayer,


sv_allowcslua 1
lua_run_cl print(LocalPlayer():GetEyeTrace().Entity:GetPos())
lua_run_cl print(LocalPlayer():GetEyeTrace().Entity:GetModel())

That is not what I am exactly looking for, I need to find command, or at least another way, to find prop name on public server (not mine) with shitton of props and “listmodels” in console won’t do it’s job.

Yeah, I know what you mean. You need to do it on your own server, however because of scriptenforcer.

I made this a while ago and put it in my client autorun:



concommand.Add("what_is_it", function()
        local tr = LocalPlayer():GetEyeTrace()
        if IsValid(tr.Entity) then
                print("Class: " .. tr.Entity:GetClass())
                print("Model: " .. tr.Entity:GetModel())
        end
end, nil, nil)