GetPlayerByUid
The player online with this id.
Syntax
Section titled “Syntax”GetPlayerByUid(uid)| Parameter | Type | |
|---|---|---|
uid |
string | an id of GetPlayerUid |
Returns
Section titled “Returns”number | nil - the pid; nil when nobody online has it
Example
Section titled “Example”local pid = GetPlayerByUid(owner_uid)if pid then SendClientMessage(pid, COLOR_GOLD, "Someone is at your door.") endSee also
Section titled “See also”GetPlayerUid · the Players group of the index
