<?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=A7M8D</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=A7M8D"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/A7M8D"/>
	<updated>2026-06-12T11:13:47Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DgsGridListGetItemData&amp;diff=77213</id>
		<title>DgsGridListGetItemData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsGridListGetItemData&amp;diff=77213"/>
		<updated>2023-07-27T07:14:20Z</updated>

		<summary type="html">&lt;p&gt;A7M8D: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
&lt;br /&gt;
With this function you can retrieve the [[string]] data associated with an item in a dgs grid list. This is not the text that is displayed on the item, but an internal string that you can use to hold extra information about the item.&amp;lt;br/&amp;gt;&lt;br /&gt;
{{Note|This function can work before you set the item's text using  [[dgsGridListSetItemData]] ! Different from  [[guiGridListGetItemData]] .}}&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
var dgsGridListGetItemData ( element gridList, int rowIndex, int columnIndex )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''gridList:''' the grid list containing the item you're interested in&lt;br /&gt;
*'''rowIndex:''' the row index of the item&lt;br /&gt;
*'''columnIndex:''' the column index of the item&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns the item data of the specified item if successful, ''false'' if one of the arguments was invalid.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example displays a random item data from the gridlist.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
DGS = exports.dgs&lt;br /&gt;
function clientsideResourceStart ()&lt;br /&gt;
    local numberList = DGS:dgsCreateGridList ( 0.80, 0.10, 0.15, 0.60, true )&lt;br /&gt;
    local column = DGS:dgsGridListAddColumn ( numberList, &amp;quot;Column Title&amp;quot;, 0.85 )&lt;br /&gt;
    if ( column ) then&lt;br /&gt;
        local row = DGS:dgsGridListAddRow ( numberList )&lt;br /&gt;
        local myItem = DGS:dgsGridListSetItemText ( numberList, row, column, tostring( math.random(0, 10) ^ 100 ) )&lt;br /&gt;
        DGS:dgsGridListSetItemData ( numberList, row, column, &amp;quot;Test&amp;quot; )&lt;br /&gt;
        local myItemData = DGS:dgsGridListGetItemData ( numberList, row, column )&lt;br /&gt;
        outputChatBox ( &amp;quot;My gridlist item data: &amp;quot; .. myItemData )&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onClientResourceStart&amp;quot;, resourceRoot, clientsideResourceStart )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSFUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>A7M8D</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DgsGridListGetItemFont&amp;diff=77212</id>
		<title>DgsGridListGetItemFont</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsGridListGetItemFont&amp;diff=77212"/>
		<updated>2023-07-27T07:13:12Z</updated>

		<summary type="html">&lt;p&gt;A7M8D: Created page with &amp;quot;{{Client function}}  With this function you can retrieve the font of an item in a dgs grid list.&amp;lt;br/&amp;gt;   ==Syntax==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; var dgsGridListGetItemFont ( element gridList, int rowIndex, int columnIndex ) &amp;lt;/syntaxhighlight&amp;gt;   ===Required Arguments===  *'''gridList:''' the grid list containing the item you're interested in *'''rowIndex:''' the row index of the item *'''columnIndex:''' the column index of the item  ===Returns=== Returns the font of the s...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
&lt;br /&gt;
With this function you can retrieve the font of an item in a dgs grid list.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
var dgsGridListGetItemFont ( element gridList, int rowIndex, int columnIndex )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''gridList:''' the grid list containing the item you're interested in&lt;br /&gt;
*'''rowIndex:''' the row index of the item&lt;br /&gt;
*'''columnIndex:''' the column index of the item&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns the font of the specified item if successful, ''false'' if one of the arguments was invalid.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example gets a random item from the gridlist.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
DGS = exports.dgs&lt;br /&gt;
function clientsideResourceStart ()&lt;br /&gt;
    local numberList = DGS:dgsCreateGridList ( 0.80, 0.10, 0.15, 0.60, true )&lt;br /&gt;
    local column = DGS:dgsGridListAddColumn ( numberList, &amp;quot;Column Title&amp;quot;, 0.85 )&lt;br /&gt;
    if ( column ) then&lt;br /&gt;
        local row = DGS:dgsGridListAddRow ( numberList )&lt;br /&gt;
        local myItem = DGS:dgsGridListSetItemText ( numberList, row, column, tostring( math.random(0, 10) ^ 100 ) )&lt;br /&gt;
        DGS:dgsGridListSetItemData ( numberList, row, column, &amp;quot;Test&amp;quot; )&lt;br /&gt;
        local myItemFont = DGS:dgsGridListGetItemData ( numberList, row, column ) -- item Font&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onClientResourceStart&amp;quot;, resourceRoot, clientsideResourceStart )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSFUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>A7M8D</name></author>
	</entry>
</feed>