RU/getCloudsEnabled

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Эта функция устанавливает видимость облаков.

Использование

bool getCloudsEnabled ()

Что возвращается

Возвращается true, если облака видимы, или false, если облака не видимы.

Пример

function areCloudsVisible()
  if getCloudsEnabled() then
    outputChatBox("Clouds are visible.")
  else
    outputChatBox("Clouds are not visible.")
  end
end
addCommandHandler("clouds", areCloudsVisible)

Смотри также