GetFarClipDistance

From Multi Theft Auto: Wiki
Revision as of 14:07, 6 January 2022 by Tracer (talk | contribs) (Added default value)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

[[{{{image}}}|link=|]] Note: The function will return false server-side if far clip distance has not been set before the function is called.
[[{{{image}}}|link=|]] Note: Default far clip distance value is 800.

Syntax

float getFarClipDistance ( )

Returns

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

Example

This example will demonstrate basic functionality of the function.

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

See Also