Skip to content

Module for getting servers from the SAMP favorites list

License

Notifications You must be signed in to change notification settings

hertanion/node-samp-favorite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

node-samp-favorite

Module for getting servers from the SAMP favorites list

Usage

import os from "os";
import { fs } from "fs";
import { getServers } from "samp-favorite";

const pathToDat = `${os.homedir()}\\Documents\\GTA San Andreas User Files\\SAMP\\USERDATA.DAT`;
fs.readFile(pathToDat, async (err, data) => {
  if (err) throw err;
  const servers = await getServers(data);
  console.log(servers);
});

About

Module for getting servers from the SAMP favorites list

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published