Hook 'DrawParty' Failed: [WW2-RP\gamemode\cl_Group.lua:16] attempt to index field 'DarkRPVars' (a nil value) HELP

I keep on getting this error any help???

[lua]

– HUD
surface.CreateFont(“coolvetica”, 28, 300, true, false, “PartyName”)
surface.CreateFont(“coolvetica”, 20, 200, true, false, “PartyMember”)
local y = 0
function DrawParty()
if !LocalPlayer().DarkRPVars[“pName”] then return end
draw.WordBox(1, 10, 50, " " … LocalPlayer().DarkRPVars[“pName”] … " ", “PartyName”, Color(0,0,0,100), Color(255,255,255,255))
y = 80
for k,v in pairs(player.GetAll()) do
if v.DarkRPVars[“pName”] == LocalPlayer().DarkRPVars[“pName”] then
draw.WordBox(1, 10, y, " " … v:Nick() … " ", “PartyMember”, Color(0,0,0,100), Color(255,255,255,255))
local QuadTable = {}
QuadTable.texture = surface.GetTextureID( (v.DarkRPVars[“pTex”] or “gui/silkicons/user”) )
QuadTable.color = Color(255,255,255,255)
QuadTable.x = 13
QuadTable.y = y+2
QuadTable.w = 16
QuadTable.h = 16
draw.TexturedQuad( QuadTable )
y = y + 22
end
end
end
hook.Add(“HUDPaint”, “DrawParty”, DrawParty)
[/lua]

Did you change anything before the error came?



if ( !LocalPlayer().DarkRPVars or !LocalPlayer().DarkRPVars["pName"] ) then return end;


try that, line 6.