open.mp | SetWorldTime
  • Home
  • FAQ
  • Forum
  • Servers
  • Docs
  • Blog
  • Login
  • Englishاللغة العربيةar-TNবাংলাbosanski jezikDeutschΕλληνικάEspañoleestiفارسیFrançaisHrvatskimagyarBahasa IndonesiaItaliano日本語ქართულიlietuvių kalbaNederlandsNorskjęzyk polskiPortuguêsRomânăРусскийslovenski jezikсрпски језикไทยWikang TagalogTürkçeУкраїнськаاردوTiếng Việt简体中文繁體中文
warning Not Translated

This page has not been translated into the language that your browser requested. The English content is being shown as a fallback.

If you want to contribute a translation for this page then please click here.

SetWorldTime

Description

Sets the world time (for all players) to a specific hour.

NameDescription
hourThe hour to set (0-23)

Returns

This function does not return any specific values.

Examples

// Set the time to 12 o'clock (noon)
SetWorldTime(12);

Notes

tip

This function is only relevant for players that do not use a passing clock - see TogglePlayerClock.

tip

To set the minutes and/or to set the time for individual players, see SetPlayerTime.

Related Functions

  • SetPlayerTime: Set a player's time.
  • SetWeather: Set the global weather.
  • SetGravity: Set the global gravity.

Community

  • Discord
  • Instagram
  • Twitter
  • Twitch
  • YouTube
  • Facebook
  • VK

More

  • SA-MP
  • Blog
  • GitHub