GhostXoP Posted June 16, 2012 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.
Castillo Posted June 16, 2012 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?
GhostXoP Posted June 16, 2012 Author 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)
DiSaMe Posted June 16, 2012 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.
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