Skip to content

setScriptCameraPersist

Client-side

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. San Andreas Online rejects stale callbacks and releases ownership on stop, restart, disconnect, or an authoritative server camera RPC.

Where this comes from

RELATED SA:O APIS

Continue exploring

Read the system guide →