Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Update FiveM Serverlist API Link #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions servermodule.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function LoadServerData(serverEndpoint){
});

// Get the server data for the specified serverAddress from the FiveM Serverlist.
$.getJSON("http://runtime.fivem.net/api/servers/", function(data){
$.getJSON("http://servers-live.fivem.net/api/servers/", function(data){
for (var i = 0; i < data.length; i++){
if(data[i]['EndPoint'] == serverAddress){
serverData = data[i];
Expand Down Expand Up @@ -143,4 +143,4 @@ function IsScriptHookEnabled(){
function GetServerVersion(){
var serverVersion = serverData['Data']['server'] != undefined ? serverData['Data']['server'] : 'ERROR: Could not get the ServerVersion.'
return serverVersion
}
}