Stevenn Posted April 7, 2012 Share 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. Link to comment
Castillo Posted April 7, 2012 Share Posted April 7, 2012 May I ask what the hell is "onClientResourceRoot"? that event doesn't exists, nor makes any sense. Link to comment
Jaysds1 Posted April 7, 2012 Share 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... Link to comment
Stevenn Posted April 7, 2012 Author Share 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. Link to comment
Laffu Posted April 7, 2012 Share Posted April 7, 2012 Hey Stevenn you are old Steve owner of SANL:RPG you are creating a server called SAIC:RPG? 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