Hooks
Hooks provided by the Cutscenes module for managing cutscene playback and display.
Overview
The Cutscenes module provides a flexible framework for creating and playing scripted cinematic sequences with synchronized camera movement across all clients. It supports table-defined scenes, player skip controls, administrative commands for cutscene management, and comprehensive hook integration for customizing cutscene behavior and extending cinematic functionality.
CutsceneEnded
đ Purpose
Called when a cutscene has completely finished playing.
â° When Called
After the fade-out animation completes and all cutscene elements are removed.
âī¸ Parameters
| Parameter | Type | Description |
|---|---|---|
id |
string | The identifier of the cutscene that ended |
âŠī¸ Returns
nil
đ Realm
Client
CutsceneSceneEnded
đ Purpose
Called when a specific scene within a cutscene ends.
â° When Called
After a scene's duration expires and before the next scene starts (or cutscene ends).
âī¸ Parameters
| Parameter | Type | Description |
|---|---|---|
id |
string | The identifier of the cutscene |
scene |
table | The scene data that just ended |
âŠī¸ Returns
nil
đ Realm
Client
CutsceneSceneStarted
đ Purpose
Called when a specific scene within a cutscene starts.
â° When Called
When a new scene begins playing within the cutscene sequence.
âī¸ Parameters
| Parameter | Type | Description |
|---|---|---|
id |
string | The identifier of the cutscene |
scene |
table | The scene data that just started |
âŠī¸ Returns
nil
đ Realm
Client
CutsceneStarted
đ Purpose
Called when a cutscene begins playing.
â° When Called
When the cutscene playback is initiated, before any scenes are displayed.
âī¸ Parameters
| Parameter | Type | Description |
|---|---|---|
id |
string | The identifier of the cutscene that started |
ply |
Player, optional | The player who started the cutscene (server-side only) |
âŠī¸ Returns
nil
đ Realm
Client (id only) or Server (ply, id)
CutsceneSubtitleStarted
đ Purpose
Called when a subtitle within a cutscene scene starts displaying.
â° When Called
When a subtitle begins showing, including sound playback if configured.
âī¸ Parameters
| Parameter | Type | Description |
|---|---|---|
id |
string | The identifier of the cutscene |
subtitle |
table | The subtitle data containing text, color, font, and sound |
âŠī¸ Returns
nil
đ Realm
Client