From 1e057586e9b109b656d799fd7f7db83a53c6be9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Antunes?= Date: Mon, 20 Jan 2020 22:53:56 +0000 Subject: [PATCH] Update FiveM Serverlist API Link The old link was: http://runtime.fivem.net/api/servers/ but after a couple of tests I saw that the Live URL is http://servers-live.fivem.net/api/servers/ (for https Sites I recomend put https://servers-live.fivem.net/api/servers/ Kind Regards and hope this help ;) --- servermodule.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/servermodule.js b/servermodule.js index 6be97ed..c8a4085 100644 --- a/servermodule.js +++ b/servermodule.js @@ -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]; @@ -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 -} \ No newline at end of file +}