onClientGUISize | Multi Theft Auto: Wiki Skip to content

onClientGUISize

Client-side
Server-side
Shared

This event is triggered when the local client resizes a GUI element.

Parameters

This event does not pass any parameters to the handler function.

Source

element: The source of this event is the GUI element that was resized.

Code Examples

client

This example will output the type of GUI element that the client has resized, to the chatbox.

addEventHandler("onClientGUISize",guiRoot,function()
outputChatBox("You have resized a "..getElementType(source)..".",255,255,0)
end)