setScriptGfxDrawOrder
SET_SCRIPT_GFX_DRAW_ORDER0x61BB1D9B3A95D802The GTA V native SET_SCRIPT_GFX_DRAW_ORDER of the GRAPHICS namespace, as LS:MP client scripts call it: the global function setScriptGfxDrawOrder, in JavaScript and in Lua.
setScriptGfxDrawOrder(drawOrder: number): voidsetScriptGfxDrawOrder(drawOrder: integer)Usage
JavaScript
setScriptGfxDrawOrder(drawOrder);Lua
setScriptGfxDrawOrder(drawOrder)Parameters
| Parameter | Type | JavaScript | Lua |
|---|---|---|---|
drawOrder | int | number | integer |
Returns
Nothing. In JavaScript the call evaluates to undefined.
Notes
From the community native database. Names are LS:MP’s; samples may be written for C++ or another framework.
Sets the draw order for script draw commands.
Examples from decompiled scripts:
setScriptGfxDrawOrder(7);
drawRect(0.5, 0.5, 3.0, 3.0, v_4, v_5, v_6, a_0._f172, 0);
setScriptGfxDrawOrder(1);
drawRect(0.5, 0.5, 1.5, 1.5, 0, 0, 0, 255, 0);Reference
- Namespace
- Graphics GRAPHICS
- In the game
void SET_SCRIPT_GFX_DRAW_ORDER(int drawOrder)- Hash
0x61BB1D9B3A95D802- Formerly
_SET_2D_LAYER_SET_UI_LAYER