guiGridListSetColumnTitle | Multi Theft Auto: Wiki Skip to content

guiGridListSetColumnTitle

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 is used to change the column title of a gridlist column.

Syntax

guiGridListSetColumnTitle ( )

Code Examples

client
local gridlist = guiCreateGridList ( 332, 195, 286, 249, false )
local column = guiGridListAddColumn(gridlist, "title", 0.5)
addCommandHandler("setTitle",
function(cmd, title)
if title then
if column then
guiGridListSetColumnTitle(gridlist ,column, title)
outputChatBox("Column name has been successfully changed to : "..title,0,255,0)
end
else
outputChatBox("[Usage] /setTitle [title]",255,0,0)
end
end
)

See Also

GUI Functions