guiGridListSetColumnWidth | Multi Theft Auto: Wiki Skip to content

guiGridListSetColumnWidth

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 allows you to set the width of an existing column in a gridlist.

Syntax

guiGridListSetColumnWidth ( )

Code Examples

client

This example creates a gridlist with one column that is too small to display. After the column has been successfully created, we give it a new width so you can see column.

local gridlist = guiCreateGridList ( 332, 195, 286, 249, false )
local column = guiGridListAddColumn ( gridlist, "My column", 0 )
if column then
guiGridListSetColumnWidth ( gridlist, column, 0.5, true)
end

See Also

GUI Functions