setFarClipDistance | Multi Theft Auto: Wiki Skip to content

setFarClipDistance

Client-side
Server-side
Shared

This page is incomplete! Help wanted!

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


This function is used to set the distance of render. Areas beyond the specified distance will not be rendered.

Syntax

setFarClipDistance ( )

Code Examples

server

This example adjusts the visibility range of the game world.

addEventHandler( "onResourceStart", resourceRoot,
function( )
setFarClipDistance( 3000 ) -- We adjust visibility range to 3000 metres
end
)

See Also

World Functions