getFarClipDistance | Multi Theft Auto: Wiki Skip to content

getFarClipDistance

Client-side
Server-side
Shared

Manual Review Required

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


This function will tell you what is the current render distance.

Note

The function will return false server-side if far clip distance has not been set before the function is called.

Note

Default far clip distance value is 800.

Syntax

float getFarClipDistance ( )

Returns

  • float: value

Returns a float with the current render distance, false if the operation could not be completed.

Code Examples

shared

This example will demonstrate basic functionality of the function.

setFarClipDistance( 1200 )
outputDebugString( "Render distance: " .. getFarClipDistance( ) )

See Also

World Functions