• Darkrp Draw error
    2 replies, posted
I got this problem with my Darkrp server this is the error: [LUA][ERROR] lua/includes/modules/draw.lua:144: bad argument #1 to 'SetFont' (string expected, got nil) 1. SetFont - [C]:-1 2. DrawText - lua/includes/modules/draw.lua:144 3. DrawHealth - gamemodes/darkrp/gamemode/client/hud.lua:75 4. DrawHUD - gamemodes/darkrp/gamemode/client/hud.lua:225 5. unknown - gamemodes/darkrp/gamemode/client/hud.lua:339 [/LUA] I have changed the font but can't seem to fix it. The font I used was Trebuchet18 doesn't seem to work for me. The HUD lettering is gone and so are the names above people's head. Anyone know what I did wrong? surface.SetFont(Trebuchet22) <-- From the draw.lua:144 draw.DrawText(math.Max(0, math.Round(LocalPlayer():Health())), "DarkRPHUD2", RelativeX + 4 + (HUDWidth - 8)/2, RelativeY - 32, ConVars.HealthText, 1) <--- From hud.lua:75 DrawHealth() <---hud.lua:225 DrawHUD() <---hud.lua:339
Show us the code [url]http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index184c.html[/url]
I changed all the fonts to Default, but it didn't work.
Sorry, you need to Log In to post a reply to this thread.