DxGUI/dxSetAlwaysOnTop

From Multi Theft Auto: Wiki
Revision as of 18:59, 1 October 2013 by Valens (talk | contribs) (Created page with "This function brings a dxGUI element on top of others. ==Syntax== <syntaxhighlight lang="lua"> dxSetAlwaysOnTop( element dxElement, bool postGUI ) </syntaxhighlight> ===Required Arguments=== *'''dxEleme...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This function brings a dxGUI element on top of others.

Syntax

dxSetAlwaysOnTop( element dxElement, bool postGUI )

Required Arguments

  • dxElement: the dxGUI element that you want to move to the front.
  • postGUI: the dxGUI element state. If this is true than the element will be on top

Example

Example 1: This brings on top the window.

window = exports.dxGUI_v1:dxCreateWindow(0,0,250,300,"Hello!",white,"default-bold","Sath Metro [Green]")
exports.dxGUI_v1:dxSetAlwaysOnTop(window, true)