Marvellous Posted February 29, 2012 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
Marvellous Posted February 29, 2012 Author 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?
Castillo Posted February 29, 2012 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.
Marvellous Posted February 29, 2012 Author Posted February 29, 2012 where can i find function showMessage declared?
Castillo Posted February 29, 2012 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.
Marvellous Posted March 3, 2012 Author 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)
Kenix Posted March 3, 2012 Posted March 3, 2012 What the problem? Can you show, how you trigger event onWins?
Kenix Posted March 3, 2012 Posted March 3, 2012 https://wiki.multitheftauto.com/wiki/Scr ... troduction
TwiX! Posted March 4, 2012 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?
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