HeK Posted January 1, 2012 Share Posted January 1, 2012 (edited) How can i change the Killmessages font? I tried in the textlib.lua, gui.lua and the killmessages server and client side scripts, and no success. Can anyone help me? Edited January 1, 2012 by Guest Link to comment
Mefisto_PL Posted January 1, 2012 Share Posted January 1, 2012 I think it's a 16 line.. dxText = {} dxText_mt = { __index = dxText } local idAssign,idPrefix = 0,"c" local g_screenX,g_screenY = guiGetScreenSize() local visibleText = {} ------ local defaults = { fX = 0.5, fY = 0.5, bRelativePosition = true, strText = "", bVerticalAlign = "center", bHorizontalAlign = "center", tColor = {255,255,255,255}, fScale = 1, strFont = "default", Because in a DxDraw is a "default" font. Look this: https://wiki.multitheftauto.com/wiki/DxDrawText Maybe this can help you. Link to comment
HeK Posted January 1, 2012 Author Share Posted January 1, 2012 Nope, i tried that a lot of times. It didn't work. Thanks anyway. Link to comment
Mefisto_PL Posted January 1, 2012 Share Posted January 1, 2012 Okey.. I found it in gui.lua addEvent ( "doOutputMessage", true ) function outputMessage ( message, r, g, b, font ) if type(message) ~= "string" and type(message) ~= "table" then outputDebugString ( "outputMessage - Bad 'message' argument", 0, 112, 112, 112 ) return false end if type(font) ~= "string" then font = "default" end r = tonumber(r) or 255 g = tonumber(g) or 255 b = tonumber(b) or 255 ---shift everything up shiftUpGUI() --Delete the first line destroyLine (1) table.remove ( contentMessages, 1 ) if type(message) == "string" then message = {message} end Here is a font too.. Link to comment
HeK Posted January 1, 2012 Author Share Posted January 1, 2012 Already tried those, didn't work :\ Fixed it, i was trying "default-bold-small" and it didn't work it had to be "default-bold". Thanks. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now