RequestScaleformMovie
Docslocal retval = RequestScaleformMovie(scaleformName)Parameters
| Name | Type | Description |
|---|---|---|
scaleformName | char* | — |
Returns
intReturns an integer value.
local retval = RequestScaleformMovie(scaleformName)| Name | Type | Description |
|---|---|---|
scaleformName | char* | — |
intReturns an integer value.
-- ox_lib scaleform movie loading
local scaleform = lib.requestScaleformMovie("instructional_buttons")
-- Draw it:
DrawScaleformMovieFullscreen(scaleform, 255, 255, 255, 255, 0)
-- Or use the full scaleform class:
local sf = lib.scaleform:new("instructional_buttons")
sf:callMethod("CLEAR_ALL")
sf:callMethod("SET_DATA_SLOT", {0, "~INPUT_CONTEXT~", "Interact"})
sf:callMethod("DRAW_INSTRUCTIONAL_BUTTONS")
sf:startDrawing()lib.requestScaleformMovie wraps RequestScaleformMovie + HasScaleformMovieLoaded via lib.waitFor. lib.scaleform is a full OOP class with callMethod, draw, setRenderTarget, and startDrawing methods. Supports render targets for 3D scaleforms.
No snippets yet. Be the first to contribute!