Skip to content

setScriptCameraPersist

Client-side

Available in Neon, not standard MTA

Selects whether completed position and target tracks retain their endpoints.

Syntax

bool setScriptCameraPersist(int token, bool position, bool target)

Arguments

tokenint

Current lease token.

positionbool

Persist completed position track.

targetbool

Persist completed target track.

Returns

true for the current owner and generation; false otherwise.

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 →