Skip to content

releaseFileCutscene

Client-side

Available in Neon, not standard MTA

Deletes the owned native cutscene and restores the camera, near clip, widescreen, and controls captured by its lease.

Syntax

bool releaseFileCutscene(int token [, bool preserveFade = false])

Arguments

tokenint

Current file-cutscene token.

preserveFadebooloptional · default false

Keep the current black fade while restoring gameplay state.

Returns

true when the current resource released its generation; false for a stale or foreign token.

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.

Important behavior
  • Resource shutdown, disconnect, and authoritative camera takeover run the same native cleanup automatically.

Where this comes from

RELATED NEON APIS

Continue exploring

Read the system guide →