setFarClipDistance | Multi Theft Auto: Wiki Skip to content

setFarClipDistance

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 is used to set the distance of render. Areas beyond the specified distance will not be rendered.

Syntax

bool setFarClipDistance ( float distance )
Required Arguments
  • distance: A float specifying the distance of render. Setting this less than 5 will cause problems to the client.

Returns

  • bool: value

Returns true if the distance was set correctly, false if invalid arguments were passed.

Code Examples

shared

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