MAB Posted July 28, 2015 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?!
KariiiM Posted July 28, 2015 Posted July 28, 2015 Yes, you've to use addEventHandler to let your dirext x shows and removeEventHandler to make them invisible.
MAB Posted July 28, 2015 Author Posted July 28, 2015 LOL i mean for all players or one player?! i tried addEventHandler("onClientRender,player,function) but didn't work
KariiiM Posted July 28, 2015 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)
MAB Posted July 28, 2015 Author 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?!
xeon17 Posted July 28, 2015 Posted July 28, 2015 but it isn;t about onClientRender Just use if( hitPlayer == localPlayer ) then and enjoy
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