Graphics::set2dLayer

From RAGE Multiplayer Wiki
Jump to navigation Jump to search

Prodcedure

Must be called before drawing a rectangle, text, etc. Lowest number is below everything else. Highest number is above everything else.

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