#RooTs Posted September 14, 2014 Share Posted September 14, 2014 (edited) ... Edited September 16, 2014 by Guest Link to comment
MultiNo Posted September 14, 2014 Share Posted September 14, 2014 Where you set the value of X, y, sh, sw? Link to comment
#RooTs Posted September 15, 2014 Author Share Posted September 15, 2014 (edited) ... Edited September 16, 2014 by Guest Link to comment
#RooTs Posted September 15, 2014 Author Share Posted September 15, 2014 (edited) .. Edited September 17, 2014 by Guest Link to comment
#RooTs Posted September 15, 2014 Author Share Posted September 15, 2014 (edited) ... Edited September 16, 2014 by Guest Link to comment
Castillo Posted September 15, 2014 Share Posted September 15, 2014 That's a decompiled piece of code, we won't help you with that. Link to comment
#RooTs Posted September 15, 2014 Author Share Posted September 15, 2014 (edited) ... Edited September 16, 2014 by Guest Link to comment
MultiNo Posted September 15, 2014 Share Posted September 15, 2014 local startTime = 0 local rootElement = getRootElement() local totalTime = 5000 function createText() local aux = getTickCount() - startTime dxDrawText("Text",x,y, etc... ) if aux > totalTime then removeEventHandler("onClientRender", rootElement, createText) end end function ShowText() startTime = getTickCount() addEventHandler("onClientRender", rootElement, createText) end addEventHandler("onClientResourceStart", rootElement, ShowText) Try this Link to comment
#RooTs Posted September 15, 2014 Author Share Posted September 15, 2014 (edited) ... Edited September 16, 2014 by Guest Link to comment
MultiNo Posted September 15, 2014 Share Posted September 15, 2014 not work Edit line 10 with your text, coordinates, and other things necessary. Link to comment
#RooTs Posted September 15, 2014 Author Share Posted September 15, 2014 (edited) .... Edited September 16, 2014 by Guest Link to comment
#RooTs Posted September 15, 2014 Author Share Posted September 15, 2014 (edited) ..... Edited September 16, 2014 by Guest Link to comment
MultiNo Posted September 15, 2014 Share Posted September 15, 2014 Edit the coordinates, try putting a little more to the left I had tested with those coordinates before, and everything works perfectly. sx,sy = guiGetScreenSize() px,py = 1600,900 x,y = (sx/px), (sy/py) dxDrawText("Your Text Here",x*280, y*400, x*1320, y*120, tocolor(255, 255, 255, 255), 2, "bankgothic" ) Link to comment
#RooTs Posted September 15, 2014 Author Share Posted September 15, 2014 (edited) .... Edited September 16, 2014 by Guest Link to comment
MultiNo Posted September 15, 2014 Share Posted September 15, 2014 local startTime = 0 local rootElement = getResourceRootElement(getThisResource()) local totalTime = 5000 local sx,sy = guiGetScreenSize() local px,py = 1600,900 local x,y = (sx/px), (sy/py) local RR = math.random(100, 255) local BB = math.random(100, 255) local GG = math.random(100, 255) function createText() local aux = getTickCount() - startTime dxDrawText("Your Text Here",x*280, y*400, x*1320, y*120, tocolor(RR, BB, GG, 255), 2, "bankgothic" ) if aux > totalTime then removeEventHandler("onClientRender", root, createText) end end function ShowText() startTime = getTickCount() addEventHandler("onClientRender", root, createText) end addEventHandler("onClientResourceStart", rootElement, ShowText) Link to comment
The Don Posted September 15, 2014 Share Posted September 15, 2014 -- Client Side # local DonText = "Your Text" function DonEVENT( ) dxDrawText(DonText, 100, 100, 100, 100, tocolor(255, 255, 255,255), 1, "default-bold") end addEventHandler("onClientRender", root,DonEVENT) setTimer( function( ) removeEventHandler("onClientRender", root, DonEVENT) end, 20000, 1, true) Link to comment
#RooTs Posted September 15, 2014 Author Share Posted September 15, 2014 (edited) .. Edited September 16, 2014 by Guest Link to comment
Tails Posted September 18, 2014 Share Posted September 18, 2014 (edited) It's very rude to remove your posts like that. Next time don't post the snippets of your code if you're too afraid that they will get stolen. These forums are here to help you and other people. So if you like to help other people then do not delete your posts next times. Edited September 18, 2014 by Guest Link to comment
xeon17 Posted September 18, 2014 Share Posted September 18, 2014 Isn't this what you did spamming LekRoots? Link to comment
Bonsai Posted September 18, 2014 Share Posted September 18, 2014 In fact, he should be banned instantly for doing that. Especially because its even more stupid since people quoted his stuff as far as I can see. Link to comment
Recommended Posts