Garry's Mod

Garry's Mod

54 ratings
[HTML-HUD] Dynamic Overlay (HUD)
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Effects
Addon Tags: Build, Fun
File Size
Posted
Updated
1.941 KB
26 Feb, 2016 @ 3:27pm
26 Feb, 2016 @ 6:39pm
2 Change Notes ( view )

Subscribe to download
[HTML-HUD] Dynamic Overlay (HUD)

In 2 collections by Gaerisson
Heavyß0× - Fort Fights
7 items
Heavyß0× - [Data Require]
4 items
Description
This is not a HUD, this will add a "website" URL in front of your screen with alpha, you can show some news to your players or show some tips.

It's like a Dynamic Overlay.

I'm gonna add a video later :)

You can edit my template here : www.gaerisson-softs.fr/Contents/HTML-HUD/HUD_Template.html
This "HUD" can be refresh in real time or be disable.

Commands :
---------------------------------------------------------------------------------
ADMIN :
- sv_hud_html_url www.example.com ( don't put the http:// ) and don't forget to add the command with your website in server.cfg
- sv_hud_refresh (force refresh to all players)
- sv_hud_enable_all (force enable for all players)
- sv_hud_disable_all (force disable for all players)
---------------------------------------------------------------------------------
CLIENT :
- cl_hud_html_enable 1 or 0 (to enable or not the HUD)
- cl_hud_html_refresh (refresh clientside)
---------------------------------------------------------------------------------

/!\ I recommended you to not use FLASH or GIF in your html url this can drop your fps down /!\

Sorry for bad english and enjoy !
(I know I'm not really good in lua so don't blame me, thanks)
20 Comments
Sayonara87 6 May, 2024 @ 11:20am 
The only issue i have with this addon is that it only works with the www protocol. Which means i can't use sub-domains (free websites) to use my custom content.
Awakened NPC. 19 Mar, 2022 @ 6:07am 
dead addon
Gaerisson  [author] 13 Feb, 2018 @ 11:15am 
Hmm if I remember its possible with the method I used to render the page, I will check
Sterrible 13 Feb, 2018 @ 7:02am 
Is it possible to send data from LUA to the pages JavaScript using this?
Gaerisson  [author] 12 Jan, 2017 @ 1:14am 
Well, in gmod the webkit is awesomium if I remember, but for the pac I have to check and do a fix if it interferes ( to hide the scrollbar you have to add overflow:hidden in your body css ), thx for report !
Seductive Lamia Noises 11 Jan, 2017 @ 8:04pm 
What webkit does it use? Mine is overlaying a scrollbar. Also, it interferes with PAC3
AwokenVoid 15 Sep, 2016 @ 4:25pm 
ok thx Gareisson
Gaerisson  [author] 15 Sep, 2016 @ 8:32am 
You can use it like for showing the clock or an event in html with cool effects using css or just using it to show snow in front of the current HUD for holiday or hmm somes stats showing something that can be dynamic (with JavaScript), just be creative and do something that can be useful with this basic add-on but as I said don't put flash with this or your fps will drop very hard, I think it's the same with videos.
AwokenVoid 14 Sep, 2016 @ 3:14pm 
Can I have a example for this mod? A different one
Gaerisson  [author] 13 Sep, 2016 @ 10:47pm 
Commands :
---------------------------------------------------------------------------------
ADMIN :
- sv_hud_html_url www.example.com ( don't put the http:// ) and don't forget to add the command with your website in server.cfg
- sv_hud_refresh (force refresh to all players)
- sv_hud_enable_all (force enable for all players)
- sv_hud_disable_all (force disable for all players)
---------------------------------------------------------------------------------
CLIENT :
- cl_hud_html_enable 1 or 0 (to enable or not the HUD)
- cl_hud_html_refresh (refresh clientside)
---------------------------------------------------------------------------------