I havent been able to figure out why I cant disable a player's name and health from appearing when you look at them. The info above their head is normal.
[IMG]http://images.akamai.steamusercontent.com/ugc/478879292340889315/3B1D2165CE90725684E5B3920AB5CE9282665321/[/IMG]
hook.Add( "HUDDrawTargetID", "removeid", function()
return false
end )
It seems that if you want the player info on the top to only draw when you're looking at the player, you should override the hook Invule posted with your drawing code. For an example look at the base code: [url]https://github.com/garrynewman/garrysmod/blob/master/garrysmod/gamemodes/base/gamemode/cl_targetid.lua[/url]
If you want to just disable it the more "correct" way to do it would be the example in this wiki page: [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/GM/HUDDrawTargetID]GM:HUDDrawTargetID[/url]
Although Invule's code would still work fine.
Alright, thanks!
Sorry, you need to Log In to post a reply to this thread.