getPlayer
Grabs the player table for a specific identifier
ps.getPlayer(source)
Returns the player object for the given source.
Parameters:
source
(number): Player server ID
Returns:
table|nil
: player object or nil if not found
Example:
local player = ps.getPlayer(source)
if player then
print("Player found:", player.PlayerData.name)
end
Last updated