0.3.0 • Published 3 years ago

mtasa-api v0.3.0

Weekly downloads
13
License
MIT
Repository
github
Last release
3 years ago

MTA:SA API

The Simplest way to obtain data from MTASA servers.

Functions

  • getAll
  • getBy({ ip: string, port?: number } )
  • search ({ name?: string, ip?: number, version?: string })
  • setTick(seconds: int)

Example

import MtaSA from 'mtasa-api'

const mtaAPI = new MtaSA()

const example = async () => {
   await mtaAPI.build() // Build the API first

   const alanticServer = mtaAPI.getBy({ ip: '149.56.228.58', port: 22003 })
   console.log(alanticServer) 
}

 example()
0.3.0

3 years ago

0.2.22

4 years ago

0.2.21

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago