guiWindowIsSizable | Multi Theft Auto: Wiki Skip to content

guiWindowIsSizable

Client-side
Server-side
Shared

Pair: guiWindowSetSizable

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 sizable.

Syntax

guiWindowIsSizable ( )

Code Examples

client
addEventHandler( "onClientResourceStart", resourceRoot,
function( )
local window = guiCreateWindow( 0.5, 0.5, 0.22, 0.22, "isSizable window", true )
guiWindowSetSizable( window, false ) -- make it unsizable
addCommandHandler( "isSizable",
function( )
local sizable = guiWindowIsSizable( window ) -- check the window sizable flag
outputChatBox( "Window is " .. ( sizable and "sizable" or "unsizable" ) ) -- show info about the window
end
)
end
)

See Also

GUI Functions