• How do I get Player by Entity?
    4 replies, posted
Is it possible to get a Player by their entity? How do I do so? Thanks!
To get the player by their name you can loop through player.GetAll and use v:Nick() == name or something of the sort. To get the player by steam id use: player.GetBySteamID which does the same as above but just checks if the steam id is the same instead
What do you mean? What exactly do you want? The player is an entity. Do you want the player's name?
But I don't get the Player name from Entity:GetClass(), I just get "player".
because that is the entity class to get the name use Entity:Nick()
Sorry, you need to Log In to post a reply to this thread.