An HUD coding issue.

I own a DarkRP server. I just upgraded to 2.5.1 and now getting these errors spammed in the console:

[ERROR] gamemodes/darkrp/gamemode/modules/hud/cl_hud.lua:98: attempt to perform arithmetic on field ‘startinghealth’ (a nil value)

  1. DrawHealth - gamemodes/darkrp/gamemode/modules/hud/cl_hud.lua:98
  2. DrawHUD - gamemodes/darkrp/gamemode/modules/hud/cl_hud.lua:244
    3. unknown - gamemodes/darkrp/gamemode/modules/hud/cl_hud.lua:391

Can anyone help?

simple fix go to the hud hover over it right click then hit delete you then find one that works, its as simple as that

This is the default DarkRP HUD. This is the one that works.

Which version you used before the upgrade?

You must’ve accidentally deleted GM.Config.startinghealth from your config or have set it to a nil value.