ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Shared functions
  3. setFarClipDistance

Function

setFarClipDistance

Server and clientMiscellaneousIdentical to MTA:SA

Sets the world draw distance. For compatibility with existing scripts the value is stored and returned by getFarClipDistance, but Trilogy Hub does not change the in-game distance yet.

Syntax

bool setFarClipDistance(float distance)

Arguments

distancefloat
Distance in metres.

Returns

true on success.

Example

setFarClipDistance(1500)

Notes

Client. In a client script - a value for this player only (resetFarClipDistance goes back to the server one).

See also