• Hud doesn't work on dedicated server?
    6 replies, posted
I've created my own gamemode, with its own hud. I'm running it on my dedicated server for me and my friends to enjoy. So far there are no real gameplay bugs and we've been having tonnes of fun, but there's one little problem with the gamemode's custom hud. This code's: [CODE]draw.SimpleText("Current God: " .. GetGlobalString( 'god', 'None') , "Trebuchet24", ScrW() / 2 - 20, 0, Color(30,30,30,255), TEXT_ALIGN_CENTER)[/CODE] output is really faint and transparent, we can hardly see it. It still displays what it's meant to, but it's so faint. Anyone got some advice?
What hook are you running that in?
hook.Add("HUDPaint", "Hud", HUD) EDIT: Just to clarify, this works when I run it on a listen server.
Can you show us a screenshot comparison? Preferably full screen, showcasing the 'faintness' difference between SP and MP.
And where are you running the code?
Whilst taking screenshots of it on the server, it fixed itself. But just in case it happens after I post this, here is the code: [CODE] function HUD() draw.SimpleText("Current God: " .. GetGlobalString( 'god', 'None') , "Trebuchet24", ScrW() / 2 - 20, 0, Color(30,30,30,255), TEXT_ALIGN_CENTER) end hook.Add("HUDPaint", "Hud", HUD)[/CODE]
The error is back again... :dead:
Sorry, you need to Log In to post a reply to this thread.