PDMTA Posted June 25, 2016 Share Posted June 25, 2016 Este codigo no es mio , es de la comunidad Estoy intentando cambiar la fuente del texto pero no he podido.. Intente con Bankgothic que es aceptada en mta y no funciona. addEventHandler("onClientResourceStart", resourceRoot, function() Yazi = guiCreateLabel(343, 562, 400, 30, "(Owner PhantomDamn) Jugadores:", false) guiSetFont(Yazi, "clear-normal" ) guiLabelSetColor(Yazi, 0, 0, 0) guiLabelSetHorizontalAlign(Yazi, "center", false) guiLabelSetVerticalAlign(Yazi, "center") end ) addEventHandler("onClientRender", root, function() dxDrawLine(600 , 428 , 823 , 454, tocolor(0, 0, 0, 248), 1, false) dxDrawLine(463, 428 , 823 , 428 , tocolor(0, 0, 0, 248), 1, false) dxDrawLine(323 , 454, 963, 454, tocolor(0, 0, 0, 248), 1, false) dxDrawLine(463, 454, 963, 428 , tocolor(0, 0, 0, 248), 1, false) dxDrawRectangle(343, 562, 400, 30, tocolor(30, 254, 13, 105), false) end ) setTimer( function( ) guiSetText(Yazi, '(Owner PhantomDamn) Jugadores: '.. #getElementsByType('player')) end, 100, 0 ) Link to comment
Tomas Posted June 25, 2016 Share Posted June 25, 2016 Bankgothic no viene con la librería GUI. https://wiki.multitheftauto.com/wiki/St ... Font_Names Link to comment
PDMTA Posted June 25, 2016 Author Share Posted June 25, 2016 Entonces por que este dxDrawText me funciona perfectamente.? dxDrawText("FPS: "..getElementData(getLocalPlayer(),"FPS").." PING: "..getPlayerPing(getLocalPlayer()), px, py, 1806, 1050, tocolor(40, 250, 0, 255), 0.6, "bankgothic", "left", "top", false, false, false, true, false) Link to comment
Sasu Posted June 25, 2016 Share Posted June 25, 2016 Porque ese sí viene con la libreria DirectX. Link to comment
Recommended Posts