resetWorldProperties | Multi Theft Auto: Wiki Skip to content

resetWorldProperties

Client-side
Server-side
Shared

Manual Review Required

Please finish this page using the corresponding Old Wiki article. Go to Contribution guidelines for more information.


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

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.

  • resetSpecialProperties (default: true): Restores all special world properties changed by setWorldSpecialPropertyEnabled to default.
  • resetWorldProperties (default: true): Reset all world properties changed by setWorldProperty .
  • resetWeatherProperties (default: true): Reset all weather properties like heat haze, rain level, sun color etc.
  • resetLODs (default: true): Reset vehicles and peds lod distance.
  • resetSounds (default: true): Restore interior sounds, world sounds and ambient sounds.
  • resetGlitches (default: true): MISSING_PARAM_DESC
  • resetJetpackWeapons (default: true): MISSING_PARAM_DESC

Returns

  • nil: value

This function returns nothing ( nil ).

Code Examples

shared
resetWorldProperties()

See Also

World Functions