resetFarClipDistance | Multi Theft Auto: Wiki Skip to content

resetFarClipDistance

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 resets the far clip distance to its default state.

Note

The function will not reset far clip distance client-side, unless it is relying on a value set by the server.

Note

The function will reset the far clip distance to false server-side, as there is no default value to begin with.

Syntax

resetFarClipDistance ( )

Code Examples

server

This example will demonstrate basic functionality of the function.

setFarClipDistance( 1200 )
outputDebugString( "Render distance: " .. getFarClipDistance( ) )
resetFarClipDistance( )
outputDebugString( "New render distance: " .. tostring( getFarClipDistance( ) ) )

See Also

World Functions