matito6 Posted October 20, 2012 Posted October 20, 2012 Welcome. How to add my font in destructionderby.lua function DestructionDerby:handleFinishActivePlayer(player) if not self.rankingBoard then end finishActivePlayer(player) local activePlayers = getActivePlayers() if #activePlayers == 1 then showMessage(getPlayerName(activePlayers[1]) .. ' WON ! ', 255, 0, 0) end end i want change "WON!" and "player name font " but how ? ;D
xiti Posted October 20, 2012 Posted October 20, 2012 If u want to change this message font u need to make your own function. For example: function showMessage(player) dxDrawText(getPlayerName(player).." WON!",sX/2,sY/2,500,200,tocolor(255,255,255,255),1,"default-bold") end
denny199 Posted October 20, 2012 Posted October 20, 2012 That wil not work xiti, dxDrawText needs the eventhandler onClientRender.
denny199 Posted October 20, 2012 Posted October 20, 2012 Do you have your'e own font? or do you want to import a mta's default font?
matito6 Posted October 20, 2012 Author Posted October 20, 2012 i download font and I would like the word "Euro WIN!" in destructionderby.lua was what drew the font
Castillo Posted October 20, 2012 Posted October 20, 2012 That 'showMessage' function is drawn by server side texts, they haven't got font argument.
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