Skip to content

Commit

Permalink
FIX GetPlayers #1
Browse files Browse the repository at this point in the history
  • Loading branch information
SantaSpeen committed Aug 17, 2023
1 parent 50c12f4 commit 074589d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/PluginsLoader/lua_plugins_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()")
Expand Down

0 comments on commit 074589d

Please sign in to comment.