surface a nil value

How do I fix this problem? I’m just trying to declare a font in my cl_init.lua and it keeps throwing me this error:

--\gamemode\cl_init.lua:10: attempt to index global 'surface' (a nil value)

Heres the code



surface.CreateFont( “TargetID”, 48, 800, true, false, “GiantTargetID” );

for k, v in pairs(file.FindInLua("–/gamemode/client/*.lua")) do




Sidenote: I also get the same error with my custom draw function, “Attempt to call ‘draw’ a nil value”

You’ve included cl_init on the server ( probably from init.lua ).

Thats what I get for coding high I suppose, thanks Kogitsune!