New to lua.( HUD)

Hello,
I am new to lua and i was trying to make a hud for something to do and practice, I got the text and stuff working accept i cant seem to get a outline around the text (to make it look better and easier to notice.
I looked on the gmod wiki and i tryed the code for draw.SimpleTextOutlined but i cant get it to work,
Here is my code


function hud()
	local HP = LocalPlayer():Health()
	local Arm = LocalPlayer():Armor()
	draw.RoundedBox(0, 8, ScrH() - 98, 204, 90, Color( 75, 255, 15, 255))
	draw.RoundedBox(0, 10, ScrH() - 80, 200, 70, Color(24, 24, 24, 255))
	draw.SimpleTextOutlined("Health:".. HP, "default", 20, ScrH() - 30 - 66, Color( 255, 255, 255, 255) TEXT_ALIGN_LEFT, TEXT_ALIGN_LEFT, 5, Color(255,255,255,255) )
	[[draw.SimpleText("Health:".. HP, "default", 20, ScrH() - 30 - 66, Color( 255, 255, 255, 255))]]
	
end
hook.Add("HUDPaint", "MyHudName", hud)

and the errors are

[ERROR] gamemodes/limitless roleplay/gamemode/cl_hud.lua:14: ‘)’ expected near ‘20’

  1. unknown - gamemodes/limitless roleplay/gamemode/cl_hud.lua:0

[ERROR] gamemodes/limitless roleplay/gamemode/cl_hud.lua:14: ‘)’ expected near ‘TEXT_ALIGN_LEFT’

  1. unknown - gamemodes/limitless roleplay/gamemode/cl_hud.lua:0

I am new to lua so it may be something very easy and im just missing it or something, but any help would be greatly appreciated.
thanks

I’m not sure what line 14 is since it isn’t the full code. But I see a few syntax issues right away:

[lua]function hud()
local HP = LocalPlayer():Health()
local Arm = LocalPlayer():Armor()
draw.RoundedBox(0, 8, ScrH() - 98, 204, 90, Color( 75, 255, 15, 255))
draw.RoundedBox(0, 10, ScrH() - 80, 200, 70, Color(24, 24, 24, 255))
// Missing comma after Color
draw.SimpleTextOutlined(“Health:”… HP, “default”, 20, ScrH() - 30 - 66, Color( 255, 255, 255, 255), TEXT_ALIGN_LEFT, TEXT_ALIGN_LEFT, 5, Color(255,255,255,255) )

// Box comments are done using --[[ text ]]
--[[draw.SimpleText("Health:".. HP, "default", 20, ScrH() - 30 - 66, Color( 255, 255, 255, 255))]]

end
hook.Add(“HUDPaint”, “MyHudName”, hud)[/lua]

oh haha it was the comma, i thought it was something easy i couldnt find :|, but thank you very much ! :slight_smile: