Jump to content

Get Client from Player


GhostXoP

Recommended Posts

Posted

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.

Posted

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?

Posted

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)

Posted

Player element and client are the same. When you trigger client event for specific client, you pass player element as the first argument.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...