Garry's Mod

Garry's Mod

96 ratings
Defcon HUD [Customizable ingame]
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Server content
Addon Tags: Fun, Roleplay
File Size
Posted
Updated
395.015 KB
25 Aug, 2018 @ 2:04pm
18 Apr, 2021 @ 11:25am
24 Change Notes ( view )

Subscribe to download
Defcon HUD [Customizable ingame]

Description


[Current version v1.1.3]

NEW in v1.1.3 : Fixing hud positions a bit glitchy, Adding simple gradient defcon hud

COMING : Customizable Text for each defcon

[Report Issues/Give Suggestions]

Please be sure to report issues, or give suggestions you would love to see beside of unrating the addon. I will be happy to make you happy !



[All Gamemodes Support]

Sandbox and so on.
Exclusive features for darkrp gamemode (restrict job access for defcon commands)
Report if it doesn't work on your gamemode !



[Description]

Choose multiple design for your defcon hud and change levels using chat commands.
  • 5 Custom Design
  • HUD Position Custom
  • Defcon Levels Color customizable
  • Level notification sound customizable
  • Enable/disable
  • DarkRP Module ( jobs restrictions )



[HOW TO USE IT ?]
  1. be an admin/superadmin and type "/defcon menu" in chat then the config menu will pop up

  2. customize as you wish and don't forget to "save" the config using the bar menu

  3. force levels using chat commands "/defcon 1", "/defcon 2", "/defcon 3", "/defcon 4", "/defcon 5"

  4. no levels ==> "/defcon 0"

  5. Have fun



[DarkRP Jobs restriction ]
  1. Go to the config panel "/defcon menu"
  2. Then click on module in the bar menu
  3. Click Enable DarkRP Module
  4. Go to the new tab "DarkRP Settings" and add jobs to the "defcon jobs" list
  5. Save the config



[Credits]

Original Idea: Karma
Popular Discussions View All (1)
1
27 May, 2019 @ 12:01pm
Amount of Defcons
Beast
62 Comments
Bonnish 14 Jun, 2024 @ 10:22pm 
i cant use the addon
[Defcon HUD [Customizable ingame]] lua/includes/extensions/net.lua:154: bad argument #1 to 'pairs' (table expected, got string)
1. pairs - [C]:-1
2. WriteTable - lua/includes/extensions/net.lua:154
3. DoClick - lua/autorun/client/cl_yc_defconhud.lua:1403
4. OnMouseReleased - lua/vgui/dlabel.lua:237
5. unknown - lua/vgui/dmenuoption.lua:77
craxe 17 Sep, 2023 @ 1:31am 
Is it possible do download the addon and customize it i will make sure to also give credits of the maker
starbuckcolin 25 May, 2022 @ 3:38pm 
I can't use the addon. It just gives me this error when I try to save it.
[Defcon HUD [Customizable ingame]] lua/includes/extensions/net.lua:111: bad argument #1 to 'pairs' (table expected, got string)
1. pairs - [C]:-1
2. WriteTable - lua/includes/extensions/net.lua:111
3. DoClick - lua/autorun/client/cl_yc_defconhud.lua:1403
4. OnMouseReleased - lua/vgui/dlabel.lua:237
5. unknown - lua/vgui/dmenuoption.lua:76
Gamer688 19 Nov, 2021 @ 12:07pm 
Can you add one option to change defcon to another name?
Zeekien 1 Nov, 2021 @ 6:46am 
thanks for the response yam! I will look into it! It would be awesome to implement as a feature XD
Yam  [author] 1 Nov, 2021 @ 4:48am 
@Azglie & @Gaz, In case you get this error, it means there is a conflict with an other addon.
The other addon might block the defcon system to load properly.

So please make sure to test addon one by one if needed.
Yam  [author] 1 Nov, 2021 @ 2:10am 
@Azglie & @Gaz
I've downloaded the addon and it works correctly. Can you guys explain me what you've done to get this ?

@ExlandLive, if you know a bit of lua and can extract the addon to edit it. You might find the code used for the init in "lua/autorun/server/sv_yc_defconhud.lua" and then at the block's code from line 441 to 456 is the right one. Change boolean values regarding the right defcon you want.
Otherwise, we will see if we can implement it into the configuration itself.
[RAT] I am shykio 23 Oct, 2021 @ 4:16pm 
the addon no longer works for me, it tells me like @Epsilon
Sloppinheimer 23 Oct, 2021 @ 3:05pm 
Getting this error whenever I try to save config in the defcon menu.

[Defcon HUD [Customizable ingame]] lua/includes/extensions/net.lua:103: bad argument #1 to 'pairs' (table expected, got string)
1. pairs - [C]:-1
2. WriteTable - lua/includes/extensions/net.lua:103
3. DoClick - lua/autorun/client/cl_yc_defconhud.lua:1403
4. OnMouseReleased - lua/vgui/dlabel.lua:237
5. unknown - lua/vgui/dmenuoption.lua:76

Zeekien 18 Oct, 2021 @ 7:29am 
Is it possible to change set the default level of DEFCON on server start and such. I would like it to start at 1 If possible! I believe it is as I saw you changed the defualt to 5 sometime last year Yam