People doing ESX.GetPlayers() are idiots, either because they’re using ESX 1.1 or think moving to Legacy from v1 Final will somehow blow up their server.
That old xPlayer loop method is deprecated and replaced with ESX.GetExtendedPlayers which lets you actually “GetPlayersFromJob”. Otherwise it takes 3 events to maintain a basic table with just player ids in a job.