Fix weather name display in setweather cmd

This commit is contained in:
Vortrex
2021-02-22 18:34:12 -06:00
parent 7b61a6fd4c
commit 63bea2bbc1

View File

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