guiWindowIsMovable | Multi Theft Auto: Wiki Skip to content

guiWindowIsMovable

Client-side
Server-side
Shared

Pair: guiWindowSetMovable

This page is incomplete! Help wanted!

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


This function checks if a GUI window is movable.

Syntax

guiWindowIsMovable ( )

Code Examples

client
addEventHandler( "onClientResourceStart", resourceRoot,
function( )
local window = guiCreateWindow( 0.5, 0.5, 0.22, 0.22, "isMovable window", true )
guiWindowSetMovable( window, false ) -- make it unmovable
addCommandHandler( "isMovable",
function( )
local movable = guiWindowIsMovable( window ) -- check the window movable flag
outputChatBox( "Window is " .. ( movable and "movable" or "unmovable" ) ) -- show info about the window
end
)
end
)

See Also

GUI Functions