From 63bea2bbc1a96bb3983b69d4538f3fbed055289e Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Mon, 22 Feb 2021 18:34:12 -0600 Subject: [PATCH] Fix weather name display in setweather cmd --- scripts/server/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/server/config.js b/scripts/server/config.js index 163d3203..113f761b 100644 --- a/scripts/server/config.js +++ b/scripts/server/config.js @@ -722,7 +722,7 @@ function setWeatherCommand(command, params, client) { gta.forceWeather(toInteger(weatherId)); getServerConfig().weather = weatherId; - messageAdminAction(`${client.name} set the weather to [#AAAAAA]${weatherNames[getServerGame()][toInteger(weatherId)]}`); + messageAdminAction(`${client.name} set the weather to [#AAAAAA]${getGameData().weatherNames[getServerGame()][toInteger(weatherId)]}`); updateServerRules(); return true; }