Studios
Abstractionhouse-3.jpg

Commands & Exports

FreeAbstractionQBCore · Qbox · ESX
PAGE 06 OF 09  ·  TROUBLESHOOTING → COMMANDS & EXPORTS → CLIENTdocs.glitchstudios.dev
Browse docs

Commands#

Command Who What
/cutsceneadmin Config.Cutscenes.Admin.Ace Opens the cutscene browser. It exists only while the cutscene tools are on and Config.Cutscenes.Admin.Enabled is true. The name is Config.Cutscenes.Admin.Command.

The library registers no other commands.

Exports#

Export Side What
getAbstraction() client and server Returns the GlitchAbst table.
GetCutsceneCatalog() client and server Every known cutscene entry as plain data.
GetCutsceneInfo(name) client and server One catalog entry, or nil.
PlayCutsceneFor(target, name, opts) server Returns ok, message, info. Needs the cutscene tools on.
StopCutsceneFor(target) server Ends a running scene. Returns false when none runs.
IsInCutscene(target) server True while the target has a scene.

opts for PlayCutsceneFor: watch (staff id whose screen plays it too), fillers ('off', 'random' or 'pick'), picks (server ids as '1,5,9' for 'pick') and by (who asked, receives the status).

Events#

Event Side Use
GlitchAbst:ready local, client and server Fires once with true when a framework is loaded, false otherwise.
glitch-abstraction:cutsceneStatus local, server The handler receives (target, by, state, why, name) while a cutscene runs.

The other glitch-abstraction:cutscene:* events are internal between the browser, client and server. They are token checked and ACE gated, and are not an API.