Skip to content

setScriptCameraNearClip

Client-side

Available in Neon, not standard MTA

Sets GTA's scripted near clip, or clears the override with false.

Syntax

bool setScriptCameraNearClip(int token, float|false distance)

Arguments

tokenint

Current lease token.

distancefloat|false

Positive finite near clip, or false to restore captured behavior.

Returns

true when applied; false for invalid distance or lease ownership.

Ownership and lifecycle

Only one resource can own the global script camera. Neon rejects stale callbacks and releases ownership on stop, restart, disconnect, or an authoritative server camera RPC.

Where this comes from

RELATED NEON APIS

Continue exploring

Read the system guide →