ResetWorldProperties: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "__NOTOC__ {{Shared function}} {{New feature/item|3.0161|1.6.0|22741|This function resets all world properties to default.}} ==Syntax== <syntaxhighlight lang="lua">nil resetWorldProperties( [ bool rsetSpecialProperties = true, bool resetWorldProperties = true, bool resetWeatherProperties = true, bool resetLODs = true, bool resetSounds = true, bool resetGlitches = true, bool resetJetpackWeapons = true ] )</syntaxhighlight> ===Optional arguments=== {{OptionalArg}} * '''re...")
 
mNo edit summary
 
Line 4: Line 4:


==Syntax==
==Syntax==
<syntaxhighlight lang="lua">nil resetWorldProperties( [ bool rsetSpecialProperties = true, bool resetWorldProperties = true, bool resetWeatherProperties = true, bool resetLODs = true, bool resetSounds = true, bool resetGlitches = true, bool resetJetpackWeapons = true ] )</syntaxhighlight>
<syntaxhighlight lang="lua">nil resetWorldProperties( [ bool resetSpecialProperties = true, bool resetWorldProperties = true, bool resetWeatherProperties = true, bool resetLODs = true, bool resetSounds = true, bool resetGlitches = true, bool resetJetpackWeapons = true ] )</syntaxhighlight>
===Optional arguments===
===Optional arguments===
{{OptionalArg}}
{{OptionalArg}}

Latest revision as of 13:30, 25 September 2024

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