ResetWorldProperties

From Multi Theft Auto: Wiki
Jump to navigation Jump to search

ADDED/UPDATED IN VERSION 1.6.0 r22741:
This function resets all world properties to default.

Syntax

nil resetWorldProperties( [ bool resetSpecialProperties = true, bool resetWorldProperties = true, bool resetWeatherProperties = true, bool resetLODs = true, bool resetSounds = true, bool resetGlitches = true, bool resetJetpackWeapons = true ] )

Optional arguments

NOTE: When using optional arguments, you might need to supply all arguments before the one you wish to use. For more information on optional arguments, see optional arguments.

  • resetSpecialProperties: Restores all special world properties changed by setWorldSpecialPropertyEnabled to default.
  • resetWorldProperties: Reset all world properties changed by setWorldProperty.
  • resetWeatherProperties: Reset all weather properties like heat haze, rain level, sun color etc.
  • resetLODs: Reset vehicles and peds lod distance.
  • resetSounds: Restore interior sounds, world sounds and ambient sounds.
Click to collapse [-]
Server

Note

Regardless of the value of the arguments, the following properties are reset:

  • Far clip distance
  • Near clip distance
  • Clouds (enabled)
  • Birds (enabled)
  • Occlusions (enabled)
  • Gravity
  • Game speed
  • Aircraft max height & velocity
  • Jetpack max height
  • Interior furnitures (enabled)
  • Minute duration
  • Blur level
  • Corona reflections
  • Traffic lights locked state
  • Water level and color
  • Wave height
  • Volumetric shadows

Returns

This function returns nothing (nil).

Example

resetWorldProperties()

See Also