When trying to run the code below, this error is produced:
lua/testhud.lua:28: ')' expected (to close '(' at line 19) near ''
Code:
surface.CreateFont( "Whatever", {
font = "Arial",
size = 100,
weight = 500,
blursize = 0,
scanlines = 0,
antialias = true,
underline = false,
italic = false,
strikeout = false,
symbol = false,
rotary = false,
shadow = false,
additive = false,
outline = false,
} )
hook.Add( "HudPaint" , "DrawMyHud" , function( )
local health = LocalPlayer():Health()
draw.RoundedBox(0,8,8,300+4 , 30+4,Color(86,55,89))
draw.RoundedBox(0,10,10,health * 3,30,Color(255,120,120))
draw.SimpleText(health.."%","Whatever",10 + 150 , 10 + 15 ,Colour(255,255,255),1,1)
end