Skip to content

GetPlayerByUid

The player online with this id.

GetPlayerByUid(uid)
Parameter Type
uid string an id of GetPlayerUid

number | nil - the pid; nil when nobody online has it

local pid = GetPlayerByUid(owner_uid)
if pid then SendClientMessage(pid, COLOR_GOLD, "Someone is at your door.") end

GetPlayerUid · the Players group of the index