Stevenn Posted April 7, 2012 Posted April 7, 2012 function dxText ( ) dxDrawText("my message",511.0,354.0,995.0,637.0,tocolor(255,255,255,255),1.5,"pricedown","left","top",false,false,false) end addEventHandler('onClientResourceRoot', root, function(reason) addEventHandler ( "onClientRender", root, dxText ) setTimer ( function ( ) removeEventHandler ( "onClientRender", root, dxText ) end ,5000,1 ) end ) no debugs, but no message either.
Castillo Posted April 7, 2012 Posted April 7, 2012 May I ask what the hell is "onClientResourceRoot"? that event doesn't exists, nor makes any sense. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Jaysds1 Posted April 7, 2012 Posted April 7, 2012 try this: function dxText ( ) dxDrawText("my message",511.0,354.0,995.0,637.0,tocolor(255,255,255,255),1.5,"pricedown","left","top",false,false,false) end addEventHandler('onClientResourceStart', resourceRoot,function() addEventHandler ( "onClientRender", root, dxText ) setTimer(removeEventHandler,5000,1,"onClientRender",root,dxText) end) @Solid, come on, he might not have overstand what it really means... He attempted the script and you should've helped... My in-game name: Jaysds1 Retired CMG Scripter World Of Tanks GameMode (Open-Source): https://github.com/Jaysds1/mtasa-wot-gamemode Online GUI-Editor (WIP): https://forum.mtasa.com/topic/47678-online-gui-editor/
Stevenn Posted April 7, 2012 Author Posted April 7, 2012 lol, it's 4:50 am and i'm quite tired, i obviously meant onClientResourceStart and it works now, thanks for the sarcastic comment though solid. @Jay thanks.
Laffu Posted April 7, 2012 Posted April 7, 2012 Hey Stevenn you are old Steve owner of SANL:RPG you are creating a server called SAIC:RPG? Mta is good RPG is even better
Jaysds1 Posted April 7, 2012 Posted April 7, 2012 @Jay thanks. np My in-game name: Jaysds1 Retired CMG Scripter World Of Tanks GameMode (Open-Source): https://github.com/Jaysds1/mtasa-wot-gamemode Online GUI-Editor (WIP): https://forum.mtasa.com/topic/47678-online-gui-editor/
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