Marvellous Posted February 29, 2012 Share Posted February 29, 2012 hey all how to create such a text ? ,is there a different font?, how to make multicolored message ? see picture .thank you Link to comment
Kenix Posted February 29, 2012 Share Posted February 29, 2012 race/modes/destructionderby.lua line 69 Link to comment
Marvellous Posted February 29, 2012 Author Share Posted February 29, 2012 I was looking for something in the style dxWrite .... there is only an object or what it is .. where do I add font and stroke? Link to comment
Castillo Posted February 29, 2012 Share Posted February 29, 2012 You can't do that, you can only change the color and the text of the message. To change font and add stroke and so on, you'll need to trigger a event to the client side to create the text. Link to comment
Marvellous Posted February 29, 2012 Author Share Posted February 29, 2012 where can i find function showMessage declared? Link to comment
Castillo Posted February 29, 2012 Share Posted February 29, 2012 You can't change the font of that text. Link to comment
Marvellous Posted February 29, 2012 Author Share Posted February 29, 2012 Will you help me to write? Link to comment
Castillo Posted February 29, 2012 Share Posted February 29, 2012 As I told you before, you need to use either dxDrawText or the text lib which is already on race resource combined with triggerClientEvent. Link to comment
Marvellous Posted March 3, 2012 Author Share Posted March 3, 2012 Please help addEvent("onWins", true) function drawNexMapString(player) local x, y = guiGetScreenSize() winner = dxText:create("#ECECEC"..getPlayerNametagText(player).." #00B2EEhas pwnd you all", x / 2, y / 2 - 10 + 75 - 41, false, "bankgothic", 1, "center") nextmap = dxText:create( "#ECECECRandom map start after:", x / 2, y / 2 - 10 + 75 + 11, false, "bankgothic", 1, "center") winner:type('stroke', 1, 0, 0, 0, 255) nextmap:type('stroke', 1, 0, 0, 0, 255) local timerTime = 5 timer = dxText:create( tostring(timerTime), x / 2, y / 2 - 10 + 75 + 41, false, "bankgothic", 1, "center") timer:type('stroke', 1, 0, 0, 0, 255) setTimer(function()timerTime = timerTime - 1 timer:text(tostring(timerTime)) end, 1000, 4) setTimer(function()winner:visible(false) nextmap:visible(false) timer:visible(false)end, 5500, 1) end addEventHandler("onWins", getRootElement(), drawNexMapString) Link to comment
Kenix Posted March 3, 2012 Share Posted March 3, 2012 What the problem? Can you show, how you trigger event onWins? Link to comment
Marvellous Posted March 3, 2012 Author Share Posted March 3, 2012 i do not know how to do Link to comment
Kenix Posted March 3, 2012 Share Posted March 3, 2012 https://wiki.multitheftauto.com/wiki/Scr ... troduction Link to comment
TwiX! Posted March 4, 2012 Share Posted March 4, 2012 Please help addEvent("onWins", true) function drawNexMapString(player) local x, y = guiGetScreenSize() winner = dxText:create("#ECECEC"..getPlayerNametagText(player).." #00B2EEhas pwnd you all", x / 2, y / 2 - 10 + 75 - 41, false, "bankgothic", 1, "center") nextmap = dxText:create( "#ECECECRandom map start after:", x / 2, y / 2 - 10 + 75 + 11, false, "bankgothic", 1, "center") winner:type('stroke', 1, 0, 0, 0, 255) nextmap:type('stroke', 1, 0, 0, 0, 255) local timerTime = 5 timer = dxText:create( tostring(timerTime), x / 2, y / 2 - 10 + 75 + 41, false, "bankgothic", 1, "center") timer:type('stroke', 1, 0, 0, 0, 255) setTimer(function()timerTime = timerTime - 1 timer:text(tostring(timerTime)) end, 1000, 4) setTimer(function()winner:visible(false) nextmap:visible(false) timer:visible(false)end, 5500, 1) end addEventHandler("onWins", getRootElement(), drawNexMapString) Why you stolen my old script? 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