Skip to content

fadeScriptCamera

Client-side

Runs GTA's native fade under the current camera lease.

Syntax

bool fadeScriptCamera(int token, bool fadeIn, float durationSeconds [, int red = 0, int green = 0, int blue = 0])

Arguments

tokenint

Current lease token.

fadeInbool

true to reveal, false to fade to color.

durationSecondsfloat

Non-negative fade duration.

red, green, blueintoptional · default 0, 0, 0

Fade color channels from 0 through 255.

Returns

true when the native fade was accepted; 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 →