guiBringToFront | Multi Theft Auto: Wiki Skip to content

guiBringToFront

Client-side
Server-side
Shared

Manual Review Required

Please finish this page using the corresponding Old Wiki article. Go to Contribution guidelines for more information.


This function brings a GUI element on top of others.

Note

If property "AlwaysOnTop" sets to "True", this function will return false .

OOP Syntax Help! I don't understand this!

Syntax

bool guiBringToFront ( element guiElement )
Required Arguments
  • guiElement: the GUI element that you want to move to the front.

Returns

  • bool: value

Returns true if the function was successful, false otherwise.

Code Examples

shared

This example creates a gui window and brings it on top.

local window = guiCreateWindow ( 0.4, 0.4, 0.3, 0.3, "My dummy window", true )
guiBringToFront ( window )

See Also

GUI Functions