From 074589da473bddb8e75931adbc294af2edf1332e Mon Sep 17 00:00:00 2001 From: SantaSpeen Date: Thu, 17 Aug 2023 18:27:16 +0300 Subject: [PATCH] FIX GetPlayers #1 --- src/modules/PluginsLoader/lua_plugins_loader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/PluginsLoader/lua_plugins_loader.py b/src/modules/PluginsLoader/lua_plugins_loader.py index cc67a08..078af74 100644 --- a/src/modules/PluginsLoader/lua_plugins_loader.py +++ b/src/modules/PluginsLoader/lua_plugins_loader.py @@ -233,7 +233,7 @@ def GetPlayerVehicles(self, player_id): def GetPlayers(self): self.log.debug("request GetPlayers()") clients = ev.call_event("_get_player", cid=-1)[0] - return self._lua.table_from(clients) + return self._lua.table_from([i.nick for i in clients]) def IsPlayerGuest(self, player_id) -> bool: self.log.debug("request IsPlayerGuest()")