Im trying to do text on a DarkRP Hud using, local function GM:HUDPaint, now i put in my text commands and add it under DrawHUD() and I get this error,
[CODE][ERROR] gamemodes/darkrp/gamemode/client/hud.lua:228: '(' expected near ':'
1. unknown - gamemodes/darkrp/gamemode/client/hud.lua:0[/CODE]
I dont know why it would ask for a ( near the : it makes no sense please help, heres my GM:HUDPaint function
[CODE]local function GM:HUDPaint()
self.BaseClass:HUDPaint()
local ply = LocalPlayer()
local HP = ply:Health()
local Armor = ply:Armor()
surface.CreateFont("DejaVu Sans", 36, 250, true, false, "DarkRPMyFont")
surface.SetTextColor( 255, 255, 255, 255)
surface.SetTextPos( 150, ScrH() - 105)
surface.SetFont("DarkRPMyFont")
surface.DrawText( HP )
end [/CODE]
Thanks
Sorry, you need to Log In to post a reply to this thread.