Skip to content

isScriptCameraLeaseActive

Client-side

Reports whether the calling resource still owns the specified camera generation.

Syntax

bool isScriptCameraLeaseActive(int token)

Arguments

tokenint

Generation token returned by acquireScriptCamera.

Returns

true only for the current generation and owner.

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 →