diff --git a/opengsq/protocols/eos.py b/opengsq/protocols/eos.py index 64c0af0..f5f3d69 100644 --- a/opengsq/protocols/eos.py +++ b/opengsq/protocols/eos.py @@ -92,7 +92,7 @@ async def main_async(): client_secret = 'PP5UGxysEieNfSrEicaD1N2Bb3TdXuD7xHYcsdUHZ7s' deployment_id = 'ad9a8feffb3b4b2ca315546f038c3ae2' - eos = EOS(host='150.138.77.118', port=10019, timeout=5.0, client_id=client_id, + eos = EOS(host='5.62.115.46', port=7783, timeout=5.0, client_id=client_id, client_secret=client_secret, deployment_id=deployment_id) data = await eos.get_info() print(json.dumps(data, indent=None) + '\n') diff --git a/opengsq/protocols/fivem.py b/opengsq/protocols/fivem.py index ca940bf..cfdef0e 100644 --- a/opengsq/protocols/fivem.py +++ b/opengsq/protocols/fivem.py @@ -18,7 +18,7 @@ async def _get(self, filename: str) -> dict: async def get_info(self) -> dict: return await self._get('info') - async def get_players(self) -> dict: + async def get_players(self) -> list: return await self._get('players') async def get_dynamic(self) -> dict: @@ -30,7 +30,7 @@ async def get_dynamic(self) -> dict: import json async def main_async(): - fivem = FiveM(host='45.81.17.148', port=30120, timeout=5.0) + fivem = FiveM(host='144.217.10.12', port=30120, timeout=5.0) info = await fivem.get_info() print(json.dumps(info, indent=None) + '\n') players = await fivem.get_players()