I’ve made a Node.js module which allows you to query a FiveReborn server, after poking around in Wireshark and figuring out how it all works. I made this so I can use it for my website to show the status of the server.
Example:
const fivereborn = require('fivereborn-query')
fivereborn.query("255.255.255.255", 30120, (err, data) => {
if (!err) {
console.log(data)
} else {
console.log('Server is offline.')
}
})
Output:
{ maxclients: '24',
clients: '0',
challenge: 'xxx',
gamename: 'GTA5',
protocol: 4,
hostname: 'Test FiveReborn Server',
gametype: 'Freeroam',
mapname: 'fivem-map-skater',
iv: '-1688173451' }