Hello, i work to a new addons for my server and i need to hide all HUD without mine when some_variable is true
i've this code :
hook.Add( "HUDShouldDraw", "HideHUD", function( name )
if some_variable == true then
if ( name == "hud_name" ) then return true end
return false
end
end )
but i need a hud name or identifier, how can i identify my hud ?
Research and use hook.Call within the function where you draw your HUD. Use the output from that to determine if you need to draw or not
HUD Element List
okay KingofBeast, i will try
Spar this is a list of name of defaut hud, i don't need it
See here:
garrysmod/cl_hud.lua at 394ae745df8f8f353ea33c8780f012fc000f4f56..
Sorry, you need to Log In to post a reply to this thread.