Garry's Mod Wiki

GM:HUDDrawTargetID

  boolean GM:HUDDrawTargetID()

Description

Called from GM:HUDPaint to draw player info when you hover over a player with your crosshair or mouse.

Returns

1 boolean
Should the player info be drawn.

Example

This code will turn off the player and health appearing when you look at them.

-- First solution: return false hook.Add( "HUDDrawTargetID", "HidePlayerInfo", function() return false end ) -- Second solution: override the gamemode hook function GM:HUDDrawTargetID() return false end