[Help] help with hud

idk why but this isnt working http://pastebin.com/nzVnDqCw

Post the error please… We don’t want to proof read code you copied from somewhere.

[ERROR] addons/darkrpmodification-master/lua/darkrp_modules/hud/cl_hud.lua:24: attempt to index global ‘localplayer’ (a nil value)

  1. Base - addons/darkrpmodification-master/lua/darkrp_modules/hud/cl_hud.lua:24
  2. fn - addons/darkrpmodification-master/lua/darkrp_modules/hud/cl_hud.lua:339
    3. unknown - addons/ulib/lua/ulib/shared/hook.lua:179

Replace localplayer with LocalPlayer() on line 24

ty m8 :smiley:

Although question begs, why isn’t all of that inside a HUDDraw hook?

o lol didnt realize that lol