surface.CreateFont

Ok, I see alot of people trying to make the non-table version of a surface.CreateFont:
[lua]
surface.CreateFont(“Font”, “Arial”, 20, 400, false, false)
[/lua]
Well in the new update of GMod 13, it is now used as a table:
[lua]
surface.CreateFont(“Font”,
{
font = “Arial”,
size = 20,
weight = 400,
antialias = false,
shadow = false
})
[/lua]
Make sure you use a table! Making it as a string will crash your game and create errors and make your CPU go high as hell!

I’m pretty sure that gmod errors out when you don’t it a table anymore…

It doesn’t crash your game. If it does, you’re doing something wrong and that isn’t the problem.