SetFarClipDistance
From Multi Theft Auto: Wiki
Note:
Setting this less than 5 may cause problems to the client
This function is used to set the distance of render.
Syntax
Required Arguments
- distance: A float specifying the distance of render.
Returns
Returns true if the distance was set correctly, false if invalid arguments were passed.
Example
Click to collapse [-]
ServerThe function which is adjusting visibility range of the game world.
addEventHandler("onResourceStart",resourceRoot,function() setFarClipDistance(3000) -- we adjust visibility range on 3000 metres end)
Click to expand [+]
ClientSee Also
- setInteriorSoundsEnabled
- getInteriorSoundsEnabled
- setRainLevel
- getRainLevel
- resetRainLevel
- setSunSize
- getSunSize
- resetSunSize
- setSunColor
- getSunColor
- resetSunColor
- setWindVelocity
- getWindVelocity
- resetWindVelocity
- setFarClipDistance
- getFarClipDistance
- resetFarClipDistance
- setFogDistance
- getFogDistance
- resetFogDistance
- removeWorldModel
- restoreWorldModel
- restoreAllWorldModels
- setOcclusionsEnabled
- getOcclusionsEnabled