guiGetProperties | Multi Theft Auto: Wiki Skip to content

guiGetProperties

Client-side
Server-side
Shared

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 gets a list of the CEGUI property names and values of a GUI element. To find out what the different properties mean, check out the CEGUI properties page.

Syntax

guiGetProperties ( )

Code Examples

client

The following example code will create a button and lists its properties in the console if the /btn command is entered.

addCommandHandler("btn",
function()
local btn = guiCreateButton(20, 200, 150, 30, "Test", false)
local props = guiGetProperties(btn)
for propName,propVal in pairs(props) do
outputConsole(propName .. " = " .. propVal)
end
end
)

See Also

GUI Functions