ResetWorldProperties: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
mNo edit summary  | 
				m (→Note:  update to latest added)  | 
				||
| Line 36: | Line 36: | ||
* Wave height  | * Wave height  | ||
* Volumetric shadows  | * Volumetric shadows  | ||
* Game time state  | |||
* Dynamic ped shadows  | |||
===Returns===  | ===Returns===  | ||
Revision as of 08:39, 5 January 2025
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- resetGlitches: Disable all glitches enabled by setGlitchEnabled.
 - resetJetpackWeapons: Reset jetpack weapons changes by setJetpackWeaponEnabled to default (uzi, pistol, tec9).
 
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
 - Game time state
 - Dynamic ped shadows
 
Returns
This function returns nothing (nil).
Example
resetWorldProperties()
See Also
- areTrafficLightsLocked
 - getAircraftMaxHeight
 - getAircraftMaxVelocity
 - getCloudsEnabled
 - getFarClipDistance
 - getFogDistance
 - getGameSpeed
 - getGravity
 - getHeatHaze
 - getInteriorSoundsEnabled
 - getJetpackMaxHeight
 - getMinuteDuration
 - getMoonSize
 - getOcclusionsEnabled
 - getRainLevel
 - getSunColor
 - getSunSize
 - getTime
 - getTrafficLightState
 - getWeather
 - getWindVelocity
 - getSkyGradient
 - getPlayerBlurLevel
 - getZoneName
 - isGarageOpen
 - removeWorldModel
 - resetFarClipDistance
 - resetFogDistance
 - resetHeatHaze
 - resetMoonSize
 - resetRainLevel
 - resetSkyGradient
 - resetSunColor
 - resetSunSize
 - resetWindVelocity
 - restoreAllWorldModels
 - restoreWorldModel
 - setAircraftMaxHeight
 - setAircraftMaxVelocity
 - setCloudsEnabled
 - setFarClipDistance
 - setFogDistance
 - setGameSpeed
 - setGarageOpen
 - setGravity
 - setHeatHaze
 - setInteriorSoundsEnabled
 - setMinuteDuration
 - setMoonSize
 - setOcclusionsEnabled
 - setRainLevel
 - setSkyGradient
 - setSunColor
 - setSunSize
 - setTime
 - setTrafficLightState
 - setTrafficLightsLocked
 - setWeather
 - setWeatherBlended
 - setWindVelocity
 - setJetpackMaxHeight
 - setPlayerBlurLevel