GhostXoP Posted June 16, 2012 Share Posted June 16, 2012 How can i get the client from a player element? A player triggers a onMarkerHit event, but the event only returns the player element that hit it. Im trying to have a window pop up upon hit, but i need the client from the player to trigger the clients event upon marker hit. Link to comment
Castillo Posted June 16, 2012 Share Posted June 16, 2012 I don't get what do you mean, you want to show a GUI window to the player who hit the marker? if so, then you can use the hitElement argument? Link to comment
GhostXoP Posted June 16, 2012 Author Share Posted June 16, 2012 What i mean is, onMarkerHit returns the element that hit the marker, but how would i get the client from the element, to trigger the client's event triggerClientEvent(client, "Event", someFunction) Link to comment
DiSaMe Posted June 16, 2012 Share Posted June 16, 2012 Player element and client are the same. When you trigger client event for specific client, you pass player element as the first argument. 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