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?! You can find me here.
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 You can find me here.
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?! You can find me here.
xeon17 Posted July 28, 2015 Posted July 28, 2015 That's just a example. A unique GangWar gamemode waiting for you!Click here for more information.
MAB Posted July 28, 2015 Author Posted July 28, 2015 but it isn;t about onClientRender You can find me here.
xeon17 Posted July 28, 2015 Posted July 28, 2015 but it isn;t about onClientRender Just use if( hitPlayer == localPlayer ) then and enjoy A unique GangWar gamemode waiting for you!Click here for more information.
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