Skip to content

Commit

Permalink
FIX #1
Browse files Browse the repository at this point in the history
  • Loading branch information
SantaSpeen committed Aug 16, 2023
1 parent 68bf7d0 commit f145048
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/modules/PluginsLoader/lua_plugins_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,8 @@ def GetPlayerVehicles(self, player_id):

def GetPlayers(self):
self.log.debug("request GetPlayers()")
clients = ev.call_event("_get_player", cid=-1)
self.log.debug(f"clients {clients}")
return self._lua.table_from(clients) if len(clients) > 0 else None
clients = ev.call_event("_get_player", cid=-1)[0]
return self._lua.table_from(clients)

def IsPlayerGuest(self, player_id) -> bool:
self.log.debug("request IsPlayerGuest()")
Expand Down

0 comments on commit f145048

Please sign in to comment.