Skip to content

fadeFileCutscene

Client-side

Available in Neon, not standard MTA

Runs GTA's native fade while the file-cutscene lease is active.

Syntax

bool fadeFileCutscene(int token, bool fadeIn, float durationSeconds [, int red, int green, int blue])

Arguments

tokenint

Current file-cutscene token.

fadeInbool

true to reveal the scene, false to fade to a color.

durationSecondsfloat

Finite duration from 0 through 60 seconds.

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

Optional fade-out color channels from 0 through 255.

Returns

true when the fade was accepted; false for invalid ownership or duration.

Ownership and lifecycle

File cutscenes share GTA's exclusive camera lease. Release, resource shutdown, disconnect, or a camera takeover deletes the native cutscene before restoring gameplay state.

Where this comes from

RELATED NEON APIS

Continue exploring

Read the system guide →