localclosestPlayer,closestDistance=ESX.Game.GetClosestPlayer()ifclosestPlayer==-1orclosestDistance>3.0thenESX.ShowNotification('There\'s no players nearby you!')elseESX.ShowNotification(('Found %s, they are %s unit(s) away'):format(GetPlayerName(closestPlayer),closestDistance))end