From d7403e0a65f7bfeeea7490f45cc12c1c7f4193b5 Mon Sep 17 00:00:00 2001 From: Arctos2win <116841243+Arctos2win@users.noreply.github.com> Date: Fri, 29 Sep 2023 20:09:19 +0200 Subject: [PATCH] fix --- [core]/es_extended/client/functions.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/[core]/es_extended/client/functions.lua b/[core]/es_extended/client/functions.lua index 1e438fda..565a2f34 100644 --- a/[core]/es_extended/client/functions.lua +++ b/[core]/es_extended/client/functions.lua @@ -432,7 +432,7 @@ function ESX.Game.GetPlayers(onlyOtherPlayers, returnKeyValue, returnPeds) if returnKeyValue then players[active[i]] = ped else - players[#players + 1] = returnPeds and ped or player + players[#players + 1] = returnPeds and ped or active[i] end end end