• [Lua] surface.CreateFont - attempt to index global 'surface' ?
    4 replies, posted
I'm not sure why I'm getting this error. [IMG]http://snag.gy/VcUWL.jpg[/IMG] [CODE]surface.CreateFont( "TestFont", { font = "Arial", size = 17, weight = 500, blursize = 0, scanlines = 0, antialias = true, underline = false, italic = false, strikeout = false, symbol = false, rotary = false, shadow = true, additive = false, outline = true } )[/CODE]
You sure you're doing this clientside?
Oh thanks, that's probably it. : )
If I recall, place it inside a 'If CLIENT then end' statement and it should be okay.
[QUOTE=NiandraLades;43135610]If I recall, place it inside a 'If CLIENT then end' statement and it should be okay.[/QUOTE] That's exactly what I did. Thanks to both of you.
Sorry, you need to Log In to post a reply to this thread.