Skip to main content

getNearestPlayerID

Export Syntax
exports['viority_supportid']:getNearestPlayerID(MaxDistance)

PARAMETER

  1. MaxDistance (STRING) (OPTIONAL) -> Max Distance, if not set, 5.0 will be used
Example Export
exports['viority_supportid']:getNearestPlayerID() --> Returns the SupportID of the nearest player!
info

It will be return false when no one is around.