Jump to content

[REL] Serverinfo (web)


IIYAMA

Recommended Posts

  • Moderators

Serverinfo

This resource is a small API for MTA server info, which you can modify / expand to your liking. It is many used to display information about the current state if the server. Like for example how many players are playing.

Read the installation carefully, because you certainly do not want to put your admin login credentials online. ?

 

Note: before you even download this resource, test if your web interface is even available. Start your server. Open a web browser and fill in your (local) IP and standard port. If it ask for a username and password, it looks like it is OK. If not, something doesn't seems to be correct.

!Servers hosts that are based on slots, might have disabled the exposure of the web interface.

<ip>:<port>

 

Endpoint:

<ip>:<port>/<resourceName>/api/<endpointName>.json

Local ip and standard port: http://127.0.0.1:22005

 

Analytics

analytics.png.803ba65ef8211447244b354c75662184.png

http://127.0.0.1:22005/serverinfo/api/analytics.json

 

Team info

team-list.png.e75fd84158cb5f7189b0a3c0f9df1776.png

http://127.0.0.1:22005/serverinfo/api/teamList.json

 

Chat history

chat.png.17a56e651daba1d9c98a2d597f3a9253.png

http://127.0.0.1:22005/serverinfo/api/chat.json

 

Generic info

generic-info.png.3cb930bbebee9dd46c0d60dd826a533f.png

http://127.0.0.1:22005/serverinfo/api/info.json

 

Player info

player-list.png.949f78ca2339f4c7fd6c05318600383a.png

http://127.0.0.1:22005/serverinfo/api/playerList.json

 

Download:

https://community.multitheftauto.com/?p=resources&s=details&id=18781

  • Like 2
  • Thanks 1
Link to comment
  • IIYAMA changed the title to [REL] Serverinfo (web)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...