Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function (callback: (err, maxplayer, maxspec) => any) {
- var rpc = gbxremote.createClient(5000, '88.99.115.61');
- rpc.on('connect', function() {
- rpc.query('GetServerOptions').then(function (res) {
- // maxplayer = res["CurrentMaxPlayers"];
- // maxspec = res["CurrentMaxSpectators"];
- callback(null, maxplayer, maxspec);
- })
- rpc.terminate();
- });
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement