MAB Posted July 28, 2015 Share Posted July 28, 2015 is addEventHandler("onClientRender",root,anyfunction) makes a DX things visible for all players in the server and when using removeEventHandler will make them invisible for all players who see them?! Link to comment
KariiiM Posted July 28, 2015 Share Posted July 28, 2015 Yes, you've to use addEventHandler to let your dirext x shows and removeEventHandler to make them invisible. Link to comment
MAB Posted July 28, 2015 Author Share Posted July 28, 2015 LOL i mean for all players or one player?! i tried addEventHandler("onClientRender,player,function) but didn't work Link to comment
KariiiM Posted July 28, 2015 Share Posted July 28, 2015 LOL i mean for all players or one player?! i tried addEventHandler("onClientRender,player,function) but didn't work You've to check if the player who hitting marker is a localPlayer. Example: function MarkerHit(hitPlayer,matchingDimension) if( hitPlayer == localPlayer ) then guiSetVisible (windowname,true) showCursor (true) end end addEventHandler ("onClientMarkerHit",Marker,MarkerHit) Link to comment
MAB Posted July 28, 2015 Author Share Posted July 28, 2015 LOL i mean for all players or one player?! i tried addEventHandler("onClientRender,player,function) but didn't work You've to check if the player who hitting marker is a localPlayer. Example: function MarkerHit(hitPlayer,matchingDimension) if( hitPlayer == localPlayer ) then guiSetVisible (windowname,true) showCursor (true) end end addEventHandler ("onClientMarkerHit",Marker,MarkerHit) What marker?! Link to comment
MAB Posted July 28, 2015 Author Share Posted July 28, 2015 but it isn;t about onClientRender Link to comment
xeon17 Posted July 28, 2015 Share Posted July 28, 2015 but it isn;t about onClientRender Just use if( hitPlayer == localPlayer ) then and enjoy 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