• Server name in the corner doesn't work
    4 replies, posted
Why it doesn't work? I get this error in the console: [CODE][ERROR] lua/autorun/client/serverlogo.lua:9: ')' expected (to close '(' at line 8) near 'end' 1. unknown - lua/autorun/client/serverlogo.lua:0[/CODE] CODE: [CODE]surface.CreateFont( "TextFont", { font = "Arial", size = 16, weight = 500, } ) function DrawText() draw.SimpleText("FADE ROLEPLAY", "TextFont", ScrW() / 2 - 70, 5, Color(255,255,255,255) end hook.Add("HUDPaint", "DrawText", DrawText);[/CODE]
You're missing a ")". Read the error before making a thread.
Sorry, didn't see. I have a new question, how can I make the logo overlap hud? Since the hud overlaps the logo.
[QUOTE=heu3;52478056]Sorry, didn't see. I have a new question, how can I make the logo overlap hud? Since the hud overlaps the logo.[/QUOTE] You could use a [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/GM/PostDrawHUD]GM:PostDrawHUD[/url] or [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/GM/DrawOverlay]GM:DrawOverlay[/url] hook. Keep in mind [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/GM/DrawOverlay]GM:DrawOverlay[/url] would draw over the escape menu and developer console so you'd have to check if those were open with [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/gui/IsGameUIVisible]gui.IsGameUIVisible[/url] before drawing it.
[QUOTE=Sean Bean;52478067]You could use a [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/GM/PostDrawHUD]GM:PostDrawHUD[/url] or [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/GM/DrawOverlay]GM:DrawOverlay[/url] hook. Keep in mind [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/GM/DrawOverlay]GM:DrawOverlay[/url] would draw over the escape menu and developer console so you'd have to check if those were open with [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/gui/IsGameUIVisible]gui.IsGameUIVisible[/url] before drawing it.[/QUOTE] Thanks! Solved.
Sorry, you need to Log In to post a reply to this thread.