Skip to content

trackScriptCamera

Client-side

Available in Neon, not standard MTA

Starts GTA's native look-at target vector track.

Syntax

bool trackScriptCamera(int token, Vector3 from, Vector3 to, int durationMs [, bool ease = true])

Arguments

tokenint

Current lease token.

fromVector3

Initial target.

toVector3

Final target.

durationMsint

Positive duration in milliseconds.

easebooloptional · default true

Use eased tracking.

Returns

true when the target track started; 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 →