SetFarClipDistance
From Multi Theft Auto: Wiki
This function is used to set the distance of render. Areas beyond the specified distance will not be rendered.
Syntax
bool setFarClipDistance ( float distance )
Required Arguments
- distance: A float specifying the distance of render. Setting this less than 5 will cause problems to the client.
Returns
Returns true if the distance was set correctly, false if invalid arguments were passed.
Example
Click to collapse [-]
ServerThis example adjusts the visibility range of the game world.
addEventHandler( "onResourceStart", resourceRoot, function( ) setFarClipDistance( 3000 ) -- We adjust visibility range to 3000 metres end )
Click to expand [+]
ClientSee Also
- areTrafficLightsLocked
- getAircraftMaxVelocity
- getCloudsEnabled
- getFarClipDistance
- getFogDistance
- getGameSpeed
- getGravity
- getHeatHaze
- getJetpackMaxHeight
- getJetpackWeaponEnabled
- getMinuteDuration
- getMoonSize
- getOcclusionsEnabled
- getRainLevel
- getSkyGradient
- getSunColor
- getSunSize
- getTime
- getTrafficLightState
- getWeather
- getWindVelocity
- getZoneName
- isGarageOpen
- removeWorldModel
- resetFarClipDistance
- resetFogDistance
- resetHeatHaze
- resetMoonSize
- resetRainLevel
- resetSkyGradient
- resetSunColor
- resetSunSize
- resetWindVelocity
- restoreAllWorldModels
- restoreWorldModel
- setAircraftMaxVelocity
- setCloudsEnabled
- setFarClipDistance
- setFogDistance
- setGameSpeed
- setGarageOpen
- setGravity
- setHeatHaze
- setInteriorSoundsEnabled
- setJetpackWeaponEnabled
- setMinuteDuration
- setMoonSize
- setOcclusionsEnabled
- setRainLevel
- setSkyGradient
- setSunColor
- setSunSize
- setTime
- setTrafficLightState
- setTrafficLightsLocked
- setWeather
- setWeatherBlended
- setWindVelocity