guiBringToFront | Multi Theft Auto: Wiki Skip to content

guiBringToFront

Client-side
Server-side
Shared

Pair: guiMoveToBack

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 ( ​gui-element guiElement )
Required arguments
  • guiElement: The GUI element that you want to move to the front.

Returns

Returns true if the function was successful, false otherwise.

  • bool: result

Code Examples

client

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