You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With this module you can create SA:MP servers which send back fake query to clients
Example of usage:
import{SampServer}from"samp-fake-query";constserver=newSampServer("0.0.0.0",7777);// Set server configserver.config.setPassworded(true);server.config.setPlayersCount(10);server.config.setMaxPlayersCount(100);server.config.setHostname("My SA:MP server");server.config.setGamemode("Unknown");server.config.setMapname("English");// Add rulesserver.rules.addRule("weburl","github.com/ghosty2004");server.rules.addRule("owner","ghosty2004");// Add playersserver.players.addPlayer(0,"ghosty2004",1,1);// Listen for eventsserver.on("listening",(ip,port)=>{console.log(`SA:MP fake query listening on ${ip}:${port}`);});server.on("requestData",(clientIp,clientPort,opcode)=>{console.log(`Received request from ${clientIp}:${clientPort} for opcode ${opcode}`);});