Garry's Mod

Garry's Mod

Modern Hud
4 Comments
MysteriousGirl 19 Oct, 2018 @ 11:30pm 
Change Line 28 from
local curammo = LocalPlayer():GetActiveWeapon():Clip1()

to

local client = LocalPlayer()
local clip = LocalPlayer():GetActiveWeapon()
if clip and IsValid(clip) then
local curammo = clip:Clip1()

this will correct the clip1 error on death. Enjoy.
sybau 27 Feb, 2018 @ 1:25pm 
its not modern, its just basic and shit.
JFAexe 24 Feb, 2018 @ 4:12am 
How about to fix bars when armor and hp more than 100 and fix that error:

[ERROR] lua/autorun/modernhud.lua:28: attempt to call method 'Clip1' (a nil value)
1. nextevent - lua/autorun/modernhud.lua:28
2. unknown - lua/dlib/modules/hook.lua:439

I know how to fix that, if you want I can help
The Hogg 23 Feb, 2018 @ 1:15pm 
Yeah it's pretty good, a little weird at first, but it certainly looks a hecc of a lot cleaner than the standard shit