Skip to content

setScriptCameraFixed

Client-side

Place the camera at one position and make it look at another, using an immediate cut or GTA's camera transition.

Syntax

bool setScriptCameraFixed(int token, Vector3 position, Vector3 target [, float upOffset = 0, bool jumpCut = true])

Arguments

tokenint

Current lease token.

positionVector3

Finite camera position.

targetVector3

Finite look-at target.

upOffsetfloatoptional · default 0

Native vertical point-at offset.

jumpCutbooloptional · default true

Use an immediate cut rather than a transition.

Returns

true when the current lease accepted the fixed camera; 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 →