Skip to content

setScriptCameraFixed

Client-side

Available in Neon, not standard MTA

Activates GTA's fixed script camera and native point-at control.

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. 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 →