ResetPedsLODDistance: Difference between revisions
Jump to navigation
Jump to search
m (→See Also) |
m (→Example) |
||
Line 15: | Line 15: | ||
==Example== | ==Example== | ||
This adds a command "resetlod", which resets the peds LOD distance. | |||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
function resetLOD( ) | function resetLOD( ) |
Revision as of 23:16, 22 July 2018
Resets the distance of peds LOD to default. Default values depends on client setting. If client has enabled high detail peds in video options, value will be reset to 500 - otherwise to 60.
Syntax
bool resetPedsLODDistance ( )
Returns
Returns true if the peds LOD distance was reset, false otherwise.
Example
This adds a command "resetlod", which resets the peds LOD distance.
function resetLOD( ) resetPedsLODDistance( ) end addCommandHandler( "resetlod", resetLOD )
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