Skip to content

requestFileCutscene

Client-side

Load one of GTA:SA's original mission cutscenes by name. The returned handle lets Lua start it, detect completion, skip it, and restore gameplay afterward.

Syntax

int|false requestFileCutscene(string name [, int visibleArea])

Arguments

namestring

Stock cutscene name from GTA's audio-track table, from one through seven characters.

visibleAreaintoptional

Optional SCM-style visible world area from 0 through 255. It does not change the player's interior.

Returns

A non-zero generation token, or false when the name or visible area is invalid, another camera lease is active, or GTA already has a file cutscene active.

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
  • Loading is asynchronous. Wait for isFileCutsceneLoaded before starting playback.
  • When visibleArea is supplied, the lease captures GTA's current visible area before loading and restores it on explicit release, camera takeover, resource stop, or failed cleanup.
  • Managed loading repairs area 13 only on the current native cutscene-manager objects. Ordinary MTA objects keep their existing area behavior.

Example

local token = assert(requestFileCutscene("SWEET3A", 1))
-- Poll isFileCutsceneLoaded(token), then start after the server readiness barrier.

Where this comes from

RELATED SA:O APIS

Continue exploring

Read the system guide →