Gets nearby players within a distance.
Parameters:
source (number): Player server ID
source
distance (number, optional): Search distance - default: 10.0
distance
Returns:
table: Array of nearby player data
table
for k, v in pairs (ps.getAllPlayers()) do print(k,v) end
Last updated 5 months ago