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; }