Garry's Mod Wiki

Garry's Mod Wiki

  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

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...