GET_ACTIVE_PLAYERS: the replacement for player loops

You should change the loop inside the ESX.Game.GetPlayers() function to the GetActivePlayers().

Go into the es_extended/client/functions.lua and have a look at it there. The wiki shows how to use it’s functions, not the code of the functions themselves.
:kiss: