GraphicsClient

ui3dscenePushPreset

UI3DSCENE_PUSH_PRESET0xF1CEA8A4198D8E9A

The GTA V native UI3DSCENE_PUSH_PRESET of the GRAPHICS namespace, as LS:MP client scripts call it: the global function ui3dscenePushPreset, in JavaScript and in Lua.

SignatureJavaScript
ui3dscenePushPreset(presetName: string): boolean
SignatureLua
ui3dscenePushPreset(presetName: string): boolean

Usage

JavaScript
const result = ui3dscenePushPreset(presetName);
Lua
local result = ui3dscenePushPreset(presetName)

Parameters

ParameterTypeJavaScriptLua
presetNamestringstringstring

Returns

BOOL JavaScript boolean, Lua boolean

Notes

From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.

All presets can be found in common\data\ui\uiscenes.meta

Reference

Namespace
Graphics GRAPHICS
In the game
BOOL UI3DSCENE_PUSH_PRESET(const char* presetName)
Hash
0xF1CEA8A4198D8E9A

Open in the interactive natives reference