GanJaRuleZ Posted March 27, 2012 Share Posted March 27, 2012 Hai allz .. Since , i got some problems with rendering of " dxDrawImage" And here are some questions .. 1. How to make a image showing just for one player. 2. How to make a certain image to be visible to a player , an another image to a another player ( The images are in the same place ) 3. How to make a certain image , showing for all players I'm asking these questions , because i develop a gamemode , and i got stuck Link to comment
drk Posted March 27, 2012 Share Posted March 27, 2012 1 and 2. addEventHandler ( 'onClientRender', element, function ( ) dxDrawText ( ... ) end ) 3. I will not answer this oO Link to comment
GanJaRuleZ Posted March 27, 2012 Author Share Posted March 27, 2012 ah , i got it , thank you Link to comment
Kenix Posted March 27, 2012 Share Posted March 27, 2012 You can't attach element to event handler onClientRender. You can only use root. The source of this event is the client's root element. Link to comment
GanJaRuleZ Posted March 27, 2012 Author Share Posted March 27, 2012 Than , another way of doing it is.. ? Link to comment
Kenix Posted March 27, 2012 Share Posted March 27, 2012 addEventHandler( 'onClientRender', root, function( ) if getElementData( localPlayer, 'onlyMe' ) then -- dxDrawText( ... ) end end ) addCommandHandler( 'draw', function( ) setElementData( localPlayer, 'onlyMe', true ) end ) It's just example. You can use variables, element data, ... 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