Scaleform

The Scaleform library provides GTA V scaleform movie rendering utilities.

Side: Client

Functions

Load

Loads a scaleform movie by name.

local scaleform = Bridge.Scaleform.Load(scaleformName)
-- Returns: number (scaleform handle)
ParameterTypeDescription
scaleformNamestringScaleform movie name

Unload

Unloads a loaded scaleform.

Bridge.Scaleform.Unload(scaleform)
ParameterTypeDescription
scaleformnumberScaleform handle

RenderFullscreen

Renders a scaleform fullscreen.

Bridge.Scaleform.RenderFullscreen(scaleform)
ParameterTypeDescription
scaleformnumberScaleform handle

CallFunction

Calls a function on a scaleform movie.

Bridge.Scaleform.CallFunction(scaleform, functionName, ...)
ParameterTypeDescription
scaleformnumberScaleform handle
functionNamestringFunction name to call
…anyFunction arguments

SetupInstructionalButtons

Creates and configures an instructional buttons scaleform.

local scaleform = Bridge.Scaleform.SetupInstructionalButtons(buttons)
-- Returns: number (scaleform handle)
ParameterTypeDescription
buttonstableArray of button definitions { { control, text }, ... }

RenderInstructionalButtons

Renders an instructional buttons scaleform (call each frame).

Bridge.Scaleform.RenderInstructionalButtons(scaleform)
ParameterTypeDescription
scaleformnumberScaleform handle