Graphics::set2dLayer: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
Line 8: Line 8:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
// todo
mp.game.graphics.set2dLayer(1);
mp.game.graphics.drawRect();
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Graphics_s_function_c}}
{{Graphics_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Revision as of 22:16, 27 July 2018

Called before drawing stuff.

Examples:
GRAPHICS::_61BB1D9B3A95D802(7);
GRAPHICS::DRAW_RECT(0.5, 0.5, 3.0, 3.0, v_4, v_5, v_6, a_0._f172, 0);

GRAPHICS::_61BB1D9B3A95D802(1);
GRAPHICS::DRAW_RECT(0.5, 0.5, 1.5, 1.5, 0, 0, 0, 255, 0);

Appears to be the layer it's drawn on

Syntax

mp.game.graphics.set2dLayer(layer);

Required Arguments

  • layer: int

Return value

  • Undefined

Example

mp.game.graphics.set2dLayer(1);
mp.game.graphics.drawRect();

See also