Team Spartan Cookies & Milk Forums
  • Issue Tracker
  • Donations
  • Search
  • Member List
  • Help

Register

Team Spartan Cookies & Milk Forums Garry's Mod Starfall v
« Previous 1 … 5 6 7 8 9 … 18 Next »
Hudshoulddraw
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pages (2): 1 2 Next »
Threaded Mode
Hudshoulddraw
18-07-2017, 12:36 AM, (This post was last modified: 18-07-2017, 12:36 AM by 4N0NYM.)
#1
4N0NYM Offline
absens
****
Posts: 561
Threads: 211
Joined: Dec 2014
Hudshoulddraw
I found out that when the EF2(TSCM) Style is enabled it block somehow the hook to work, aslong this is active the HUD cant prevented it to draw.

(I'm using the Example http://wiki.garrysmod.com/page/GM/HUDShouldDraw)
Find
Reply
18-07-2017, 06:00 PM,
#2
Person8880 Offline
gpj.ecafllorT
*******
Posts: 2,407
Threads: 45
Joined: Sep 2013
RE: Hudshoulddraw
This should be fixed after a restart.
Find
Reply
20-01-2018, 11:13 PM,
#3
4N0NYM Offline
absens
****
Posts: 561
Threads: 211
Joined: Dec 2014
RE: Hudshoulddraw
Just want to bring it back cuz it still dont work or dont work anymore.
Find
Reply
21-01-2018, 11:09 AM,
#4
Person8880 Offline
gpj.ecafllorT
*******
Posts: 2,407
Threads: 45
Joined: Sep 2013
RE: Hudshoulddraw
It's definitely called. What are you trying to do with it?
Find
Reply
21-01-2018, 12:50 PM, (This post was last modified: 21-01-2018, 12:50 PM by 4N0NYM. Edited 3 times in total.)
#5
4N0NYM Offline
absens
****
Posts: 561
Threads: 211
Joined: Dec 2014
RE: Hudshoulddraw
i use the example from the Glua docs
 local hide = {
CHudHealth = true,
CHudBattery = true,
}

hook.add( "hudshoulddraw", "HideHUD", function( name )
if ( hide[ name ] ) then return false end
end )
Find
Reply
21-01-2018, 02:21 PM,
#6
Person8880 Offline
gpj.ecafllorT
*******
Posts: 2,407
Threads: 45
Joined: Sep 2013
RE: Hudshoulddraw
These are already hidden by the EF2 HUD. Are you trying to hide parts of the EF2 HUD?
Find
Reply
21-01-2018, 03:24 PM, (This post was last modified: 21-01-2018, 03:37 PM by 4N0NYM.)
#7
4N0NYM Offline
absens
****
Posts: 561
Threads: 211
Joined: Dec 2014
RE: Hudshoulddraw
no, i didnt knowed there was something for the EF2

when i use
HudString = "Found = "
Hud = {}
if CLIENT then
hook("hudshoulddraw","hud",function(Name)
if Hud[Name] ~= true then
Hud[Name] = true
HudString = (HudString.." | "..Name)
end
end)
timer.simple(5,function() printConsole(HudString) end)
end
i only get :
LuaHudDeathNotice | NetGraph | CHudDeathNotice | CHudChat | CHudWeaponSelection | CHudHealth | CHudSecondaryAmmo | CHudAmmo | CHudGMod | CHudTrain | CHudMessage | CHudMenu | CHudWeapon | CHudHintDisplay | CHudCrosshair | CHudCloseCaption
Find
Reply
21-01-2018, 06:09 PM,
#8
4N0NYM Offline
absens
****
Posts: 561
Threads: 211
Joined: Dec 2014
RE: Hudshoulddraw
The only thing i found to hide it is "CHudGMod" but it disable all.
Find
Reply
21-01-2018, 08:19 PM,
#9
Person8880 Offline
gpj.ecafllorT
*******
Posts: 2,407
Threads: 45
Joined: Sep 2013
RE: Hudshoulddraw
There is no way to hide it currently. Are you asking for a way to hide it through the hudshoulddraw hook?
Find
Reply
21-01-2018, 08:22 PM,
#10
4N0NYM Offline
absens
****
Posts: 561
Threads: 211
Joined: Dec 2014
RE: Hudshoulddraw
yes, that we doesnt need to change it back to normal to see costum huds.
Find
Reply
« Next Oldest | Next Newest »
Pages (2): 1 2 Next »


  • View a Printable Version
Forum Jump:


Users browsing this thread:
Contact UsTeam Spartan Cookies & MilkReturn to TopLite (Archive) ModeMark all forums readRSS Syndication

Powered By MyBB, © 2002-2026 MyBB Group.