ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. setNearClipDistance

Function

setNearClipDistance

ServerWorldIdentical to MTA:SA

Stores the camera near clip distance: things closer to the camera than this are not drawn (0.1-20 m, 0.3 by default).

Syntax

bool setNearClipDistance(float distance)

Arguments

distancefloat
Distance in metres.

Returns

true on success.

Example

setNearClipDistance(0.5)

Notes

State for scripts. The game camera does not change.

See also