<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Blackmen</id>
	<title>Multi Theft Auto: Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Blackmen"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Blackmen"/>
	<updated>2026-04-07T23:52:58Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiGridListAddRow&amp;diff=20386</id>
		<title>GuiGridListAddRow</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiGridListAddRow&amp;diff=20386"/>
		<updated>2009-07-07T15:02:30Z</updated>

		<summary type="html">&lt;p&gt;Blackmen: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
Adds a row to a grid list.&lt;br /&gt;
&lt;br /&gt;
ATTENTION: With out guiGridListSetItemText there is no row added to the grid. &lt;br /&gt;
Look at the example, first you give the row a name with '''[[row =]]''' guiGridListAddRow ( playerList ), and then you use guiGridListSetItemText. &lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
int guiGridListAddRow ( element gridList )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''gridList:''' The grid list you want to add a row to&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns the row id if it has been created, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example creates a player list on the right side of the screen and fills it with the names of the connected players.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function clientsideResourceStart ()&lt;br /&gt;
        local playerList = guiCreateGridList ( 0.80, 0.10, 0.15, 0.60, true ) -- Create the grid list&lt;br /&gt;
        local column = guiGridListAddColumn( playerList, &amp;quot;Player&amp;quot;, 0.85 ) -- Create a 'players' column in the list&lt;br /&gt;
        if ( column ) then -- If the column was successfully created&lt;br /&gt;
                for id, playeritem in ipairs(getElementsByType(&amp;quot;player&amp;quot;)) do &lt;br /&gt;
                --Loop through all the players, adding them to the table&lt;br /&gt;
                        local row = guiGridListAddRow ( playerList )&lt;br /&gt;
                        guiGridListSetItemText ( playerList, row, column, getPlayerName ( playeritem ), false, false )&lt;br /&gt;
                end&lt;br /&gt;
        end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onClientResourceStart&amp;quot;, getRootElement(), clientsideResourceStart )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{GUI functions}}&lt;/div&gt;</summary>
		<author><name>Blackmen</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiGridListAddRow&amp;diff=20385</id>
		<title>GuiGridListAddRow</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiGridListAddRow&amp;diff=20385"/>
		<updated>2009-07-07T15:01:37Z</updated>

		<summary type="html">&lt;p&gt;Blackmen: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
Adds a row to a grid list.&lt;br /&gt;
&lt;br /&gt;
ATTENTION: With out guiGridListSetItemText there is no row added to the grid. &lt;br /&gt;
Look at the example, first you give the row a name with '''row =''' guiGridListAddRow ( playerList ), and then you use guiGridListSetItemText. &lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
int guiGridListAddRow ( element gridList )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''gridList:''' The grid list you want to add a row to&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns the row id if it has been created, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example creates a player list on the right side of the screen and fills it with the names of the connected players.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function clientsideResourceStart ()&lt;br /&gt;
        local playerList = guiCreateGridList ( 0.80, 0.10, 0.15, 0.60, true ) -- Create the grid list&lt;br /&gt;
        local column = guiGridListAddColumn( playerList, &amp;quot;Player&amp;quot;, 0.85 ) -- Create a 'players' column in the list&lt;br /&gt;
        if ( column ) then -- If the column was successfully created&lt;br /&gt;
                for id, playeritem in ipairs(getElementsByType(&amp;quot;player&amp;quot;)) do &lt;br /&gt;
                --Loop through all the players, adding them to the table&lt;br /&gt;
                        local row = guiGridListAddRow ( playerList )&lt;br /&gt;
                        guiGridListSetItemText ( playerList, row, column, getPlayerName ( playeritem ), false, false )&lt;br /&gt;
                end&lt;br /&gt;
        end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onClientResourceStart&amp;quot;, getRootElement(), clientsideResourceStart )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{GUI functions}}&lt;/div&gt;</summary>
		<author><name>Blackmen</name></author>
	</entry>
</feed>