Skip to content

function findNearbyPlayers (server-side)

Available since version: 0.3.0

Find player ids within a radius of a given position in a world.

Declaration

{...} findNearbyPlayers({x, y, z} position_table, int radius, string world, int virtual_world)

Parameters

  • {x, y, z} position_table: Table with x,y,z coordinates.
  • int radius: Search radius.
  • string world: World name to search in.
  • int virtual_world: Optional virtual world id.

Returns {...}

Array of player ids.