diff --git a/[core]/es_extended/server/functions.lua b/[core]/es_extended/server/functions.lua index 5599f16c..cd512f5a 100644 --- a/[core]/es_extended/server/functions.lua +++ b/[core]/es_extended/server/functions.lua @@ -261,7 +261,7 @@ end function ESX.GetNumPlayers(key, val) if not key then - return #ESX.GetPlayers() + return #ESX.Players end if type(val) == "table" then