<?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=ImHade</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=ImHade"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/ImHade"/>
	<updated>2026-04-12T03:22:19Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DgsWindowGetMovable&amp;diff=63779</id>
		<title>DgsWindowGetMovable</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsWindowGetMovable&amp;diff=63779"/>
		<updated>2019-08-16T11:25:40Z</updated>

		<summary type="html">&lt;p&gt;ImHade: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function allows you to check if a window is movable.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element dgsWindowGetMovable( element dgsWindow)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''dgsWindow:''' The window you want to check if it is movable.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if succeed, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
DGS = exports.dgs&lt;br /&gt;
&lt;br /&gt;
-- Create a DGS window.&lt;br /&gt;
window = DGS:dgsCreateWindow ( 0.50, 0.50, 0.25, 0.25, &amp;quot;Test&amp;quot;, true ) &lt;br /&gt;
DGS:dgsWindowSetMovable(window, true)&lt;br /&gt;
movable = DGS:dgsWindowGetMovable ( window )&lt;br /&gt;
if (movable) then&lt;br /&gt;
   outputChatBox(“The window is movable”)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSFUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>ImHade</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DgsWindowGetMovable&amp;diff=63778</id>
		<title>DgsWindowGetMovable</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsWindowGetMovable&amp;diff=63778"/>
		<updated>2019-08-16T11:24:50Z</updated>

		<summary type="html">&lt;p&gt;ImHade: Created page with &amp;quot;{{Client function}} __NOTOC__ This function allows you to check if a window is movable.  ==Syntax==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; element dgsWindowGetMovable( element dgsWindo...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function allows you to check if a window is movable.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element dgsWindowGetMovable( element dgsWindow)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''dgsWindow:''' The window you want to check if it is movable.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if succeed, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
DGS = exports.dgs&lt;br /&gt;
&lt;br /&gt;
-- Create a DGS window.&lt;br /&gt;
window = DGS:dgsCreateWindow ( 0.50, 0.50, 0.25, 0.25, &amp;quot;Test&amp;quot;, true ) &lt;br /&gt;
dgsWindowSetMovable(window, true)&lt;br /&gt;
movable = DGS:dgsGetMovable ( window )&lt;br /&gt;
if (movable) then&lt;br /&gt;
   outputChatBox(“The window is movable”)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSFUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>ImHade</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DgsWindowGetSizable&amp;diff=63776</id>
		<title>DgsWindowGetSizable</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsWindowGetSizable&amp;diff=63776"/>
		<updated>2019-08-16T11:20:23Z</updated>

		<summary type="html">&lt;p&gt;ImHade: Created page with &amp;quot;{{Client function}} __NOTOC__ This function allows you to check if a window is sizable.  ==Syntax==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; element dgsWindowGetSizable( element dgsWindo...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function allows you to check if a window is sizable.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element dgsWindowGetSizable( element dgsWindow)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''dgsWindow:''' The window you want to check if it is sizable.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if succeed, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
DGS = exports.dgs&lt;br /&gt;
&lt;br /&gt;
-- Create a DGS window.&lt;br /&gt;
window = DGS:dgsCreateWindow ( 0.50, 0.50, 0.25, 0.25, &amp;quot;Test&amp;quot;, true ) &lt;br /&gt;
dgsWindowSetSizable(window, true)&lt;br /&gt;
sizable = DGS:dgsIsSizable ( window )&lt;br /&gt;
if (sizable) then&lt;br /&gt;
   outputChatBox(“The window is sizable”)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSFUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>ImHade</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DgsMemoSetVerticalScrollPosition&amp;diff=63775</id>
		<title>DgsMemoSetVerticalScrollPosition</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsMemoSetVerticalScrollPosition&amp;diff=63775"/>
		<updated>2019-08-16T11:09:03Z</updated>

		<summary type="html">&lt;p&gt;ImHade: Created page with &amp;quot;{{client function}} This function is used to set the vertical scroll position from a memo  ==Syntax== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; bool dgsMemoSetVerticalScrollPosition( eleme...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{client function}}&lt;br /&gt;
This function is used to set the vertical scroll position from a memo&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool dgsMemoSetVerticalScrollPosition( element dgsMemo, float fPosition )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[Element/DGS/Memo|dgsMemo]]:setVerticalScrollPosition|verticalScrollPosition|dgsMemoGetVerticalScrollPosition}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''dgsMemo''': The memo you want to set the vertical scroll position from&lt;br /&gt;
*'''fPosition''': A float representing the vertical scroll position (0-100)&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the vertical scroll position was set, or ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example sets the position of the vertical scroll and outputs it to the chatbox.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local DGS = exports.dgs&lt;br /&gt;
local memo = DGS:dgsCreateMemo(0.80, 0.10, 0.15, 0.60,[[	1&lt;br /&gt;
	2&lt;br /&gt;
	3&lt;br /&gt;
	4&lt;br /&gt;
	5&lt;br /&gt;
	6&lt;br /&gt;
	7&lt;br /&gt;
	8&lt;br /&gt;
	9&lt;br /&gt;
	10&lt;br /&gt;
	11&lt;br /&gt;
	12&lt;br /&gt;
	13&lt;br /&gt;
	14&lt;br /&gt;
	15&lt;br /&gt;
	16&lt;br /&gt;
	17&lt;br /&gt;
	18&lt;br /&gt;
	19&lt;br /&gt;
	20&lt;br /&gt;
	21&lt;br /&gt;
	22&lt;br /&gt;
	23&lt;br /&gt;
	24&lt;br /&gt;
	25&lt;br /&gt;
	26&lt;br /&gt;
	27]], true) -- Create the memo&lt;br /&gt;
 &lt;br /&gt;
if (memo) then -- if the grid list exist then&lt;br /&gt;
    DGS:dgsMemoSetVerticalScrollPosition (memo,50) -- in the middle&lt;br /&gt;
    local postion = DGS:dgsGridListGetVerticalScrollPosition(memo) -- get the vertical scroll position&lt;br /&gt;
    outputChatBox ( &amp;quot;Current position of the vertical scroll:&amp;quot; ..tostring(position).. &amp;quot;%&amp;quot; ) -- output to the chatbox&lt;br /&gt;
else &lt;br /&gt;
    outputChatBox (&amp;quot;Memo not found!&amp;quot;) -- if the memo was not found&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSFUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>ImHade</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DgsMemoSetHorizontalScrollPosition&amp;diff=63754</id>
		<title>DgsMemoSetHorizontalScrollPosition</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsMemoSetHorizontalScrollPosition&amp;diff=63754"/>
		<updated>2019-08-16T10:42:53Z</updated>

		<summary type="html">&lt;p&gt;ImHade: Created page with &amp;quot;{{client function}} This function is used to set the horizontal scroll position from a memo  ==Syntax== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; bool dgsMemoSetHorizontalScrollPosition (...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{client function}}&lt;br /&gt;
This function is used to set the horizontal scroll position from a memo&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool dgsMemoSetHorizontalScrollPosition ( element dgsMemo, float fPosition )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[Element/DGS/Memo|dgsMemo]]:setHorizontalScrollPosition|horizontalScrollPosition|dgsMemoGetHorizontalScrollPosition}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''dgsMemo''':The memo you want to set the horizontal scroll position from&lt;br /&gt;
*'''fPosition''': A float representing the horizontal scroll position (0-100)&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the horizontal scroll position was set, or ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example sets the position of the horizontal scroll and outputs it to the chatbox.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local DGS = exports.dgs&lt;br /&gt;
local memo = DGS:dgsCreateMemo(0.80, 0.10, 0.15, 0.60,[[1&lt;br /&gt;
	2&lt;br /&gt;
	3&lt;br /&gt;
	4&lt;br /&gt;
	5&lt;br /&gt;
	6&lt;br /&gt;
	7&lt;br /&gt;
	8&lt;br /&gt;
	9&lt;br /&gt;
	10&lt;br /&gt;
	11&lt;br /&gt;
	12&lt;br /&gt;
	13&lt;br /&gt;
	14&lt;br /&gt;
	15&lt;br /&gt;
	16&lt;br /&gt;
	17&lt;br /&gt;
	18&lt;br /&gt;
	19&lt;br /&gt;
	20&lt;br /&gt;
	21&lt;br /&gt;
	22&lt;br /&gt;
	23&lt;br /&gt;
	24&lt;br /&gt;
	25&lt;br /&gt;
	26&lt;br /&gt;
	27]], true) -- Create the memo&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
if (memo) then -- if the grid list exist then&lt;br /&gt;
    DGS:dgsMemoSetHorizontalScrollPosition (memo,50) -- in the middle&lt;br /&gt;
    local postion = DGS:dgsMemoGetHorizontalScrollPosition(memo) -- get the horizontal scroll position&lt;br /&gt;
    outputChatBox ( &amp;quot;Current position of the horizontal scroll:&amp;quot; ..tostring(position).. &amp;quot;%&amp;quot; ) -- output to the chatbox&lt;br /&gt;
else &lt;br /&gt;
    outputChatBox (&amp;quot;Memo not found!&amp;quot;) -- if the memo was not found&lt;br /&gt;
end&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>ImHade</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DgsGridListGetVerticalScrollPosition&amp;diff=63753</id>
		<title>DgsGridListGetVerticalScrollPosition</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsGridListGetVerticalScrollPosition&amp;diff=63753"/>
		<updated>2019-08-16T10:33:08Z</updated>

		<summary type="html">&lt;p&gt;ImHade: Created page with &amp;quot;{{client function}} This function is used to get the vertical scroll position from a grid list  ==Syntax== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; float dgsGridListGetVerticalScrollPosit...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{client function}}&lt;br /&gt;
This function is used to get the vertical scroll position from a grid list&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
float dgsGridListGetVerticalScrollPosition( element dgsGridlist )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[Element/DGS/Gridlist/dgsGridList]]:getVerticalScrollPosition|verticalScrollPosition|dgsGridListSetVerticalScrollPosition}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''dgsGridlist''': The grid list you want to get the vertical scroll position from&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a float indicating the vertical scroll position, or ''false'' otherwise&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example gets the position of the vertical scroll and outputs it to the chatbox.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local DGS = exports.dgs&lt;br /&gt;
local gridList = DGS:dgsCreateGridList(0.80, 0.10, 0.15, 0.60, true) -- Create the grid list&lt;br /&gt;
local column = DGS:dgsGridListAddColumn(gridList, &amp;quot;New column&amp;quot;, 1) -- Create a new column in the grid list&lt;br /&gt;
 &lt;br /&gt;
if (gridList) then -- if the grid list exist then&lt;br /&gt;
    local postion = DGS:dgsGridListGetVerticalScrollPosition(gridList) -- get the vertical scroll position&lt;br /&gt;
    outputChatBox ( &amp;quot;Current position of the vertical scroll:&amp;quot; ..tostring(position).. &amp;quot;%&amp;quot; ) -- output to the chatbox&lt;br /&gt;
else &lt;br /&gt;
    outputChatBox (&amp;quot;Grid list not found!&amp;quot;) -- if the grid list was not found&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSFUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>ImHade</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DgsGridListGetHorizontalScrollPosition&amp;diff=63752</id>
		<title>DgsGridListGetHorizontalScrollPosition</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsGridListGetHorizontalScrollPosition&amp;diff=63752"/>
		<updated>2019-08-16T10:28:42Z</updated>

		<summary type="html">&lt;p&gt;ImHade: Created page with &amp;quot;{{client function}} This function is used to get the horizontal scroll position from a grid list  ==Syntax== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; float dgsGridListGetHorizontalScrollP...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{client function}}&lt;br /&gt;
This function is used to get the horizontal scroll position from a grid list&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
float dgsGridListGetHorizontalScrollPosition( element dgsGridlist )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[Element/DGS/Gridlist|dgsGridList]]:getHorizontalScrollPosition|horizontalScrollPosition|dgsGridListSetHorizontalScrollPosition}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''dgsGridlist''': The grid list you want to get the horizontal scroll position from&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a float indicating the horizontal scroll position, or ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example gets the position of the horizontal scroll and outputs it to the chatbox.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local DGS = exports.dgs&lt;br /&gt;
local gridList = DGS:dgsCreateGridList(0.80, 0.10, 0.15, 0.60, true) -- Create the grid list&lt;br /&gt;
local column = DGS:dgsGridListAddColumn(gridList, &amp;quot;New column&amp;quot;, 1) -- Create a new column in the grid list&lt;br /&gt;
&lt;br /&gt;
if (gridList) then -- if the grid list exist then&lt;br /&gt;
    local postion = DGS:dgsGridListGetHorizontalScrollPosition(gridList) -- get the horizontal scroll position&lt;br /&gt;
    outputChatBox ( &amp;quot;Current position of the horizontal scroll:&amp;quot; ..tostring(position).. &amp;quot;%&amp;quot; ) -- output to the chatbox&lt;br /&gt;
else &lt;br /&gt;
    outputChatBox (&amp;quot;Grid list not found!&amp;quot;) -- if the grid list was not found&lt;br /&gt;
end &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSFUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>ImHade</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DgsGridListSetHorizontalScrollPosition&amp;diff=63748</id>
		<title>DgsGridListSetHorizontalScrollPosition</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsGridListSetHorizontalScrollPosition&amp;diff=63748"/>
		<updated>2019-08-16T08:25:16Z</updated>

		<summary type="html">&lt;p&gt;ImHade: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{client function}}&lt;br /&gt;
This function is used to set the horizontal scroll position from a grid list&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool dgsGridListSetHorizontalScrollPosition ( element dgsGridList, float Position )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[Element/DGS/Gridlist|dgsGridList]]:setHorizontalScrollPosition|horizontalScrollPosition|dgsGridListGetHorizontalScrollPosition}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''dgsGridlist''': The grid list you want to set the horizontal scroll position from&lt;br /&gt;
*'''Position''': A float representing the horizontal scroll position (0-100)&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the horizontal scroll position was set, or ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example sets the position of the horizontal scroll and outputs it to the chatbox.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
dgs = exports.dgs&lt;br /&gt;
local gridList = dgs:dgsCreateGridList(0.80, 0.10, 0.15, 0.60, true) -- Create the grid list&lt;br /&gt;
local column = dgs:dgsGridListAddColumn(gridList, &amp;quot;New column&amp;quot;, 1) -- Create a new column in the grid list&lt;br /&gt;
 &lt;br /&gt;
if (gridList) then -- if the grid list exist then&lt;br /&gt;
    dgs:dgsGridListSetHorizontalScrollPosition (gridList,50) -- in the middle&lt;br /&gt;
    local postion = dgs:dgsGridListGetHorizontalScrollPosition(gridList) -- get the horizontal scroll position&lt;br /&gt;
    outputChatBox ( &amp;quot;Current position of the horizontal scroll:&amp;quot; ..tostring(position).. &amp;quot;%&amp;quot; ) -- output to the chatbox&lt;br /&gt;
else &lt;br /&gt;
    outputChatBox (&amp;quot;Grid list not found!&amp;quot;) -- if the grid list was not found&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSFUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>ImHade</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DgsGridListSetHorizontalScrollPosition&amp;diff=63747</id>
		<title>DgsGridListSetHorizontalScrollPosition</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsGridListSetHorizontalScrollPosition&amp;diff=63747"/>
		<updated>2019-08-16T08:24:44Z</updated>

		<summary type="html">&lt;p&gt;ImHade: Created page with &amp;quot;{{client function}} This function is used to set the horizontal scroll position from a grid list  ==Syntax== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; bool dgsGridListSetHorizontalScrollPo...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{client function}}&lt;br /&gt;
This function is used to set the horizontal scroll position from a grid list&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool dgsGridListSetHorizontalScrollPosition ( element dgsGridList, float Position )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[Element/DGS/Gridlist|DgsGridList]]:setHorizontalScrollPosition|horizontalScrollPosition|dgsGridListGetHorizontalScrollPosition}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''dgsGridlist''': The grid list you want to set the horizontal scroll position from&lt;br /&gt;
*'''Position''': A float representing the horizontal scroll position (0-100)&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the horizontal scroll position was set, or ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example sets the position of the horizontal scroll and outputs it to the chatbox.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
dgs = exports.dgs&lt;br /&gt;
local gridList = dgs:dgsCreateGridList(0.80, 0.10, 0.15, 0.60, true) -- Create the grid list&lt;br /&gt;
local column = dgs:dgsGridListAddColumn(gridList, &amp;quot;New column&amp;quot;, 1) -- Create a new column in the grid list&lt;br /&gt;
 &lt;br /&gt;
if (gridList) then -- if the grid list exist then&lt;br /&gt;
    dgs:dgsGridListSetHorizontalScrollPosition (gridList,50) -- in the middle&lt;br /&gt;
    local postion = dgs:dgsGridListGetHorizontalScrollPosition(gridList) -- get the horizontal scroll position&lt;br /&gt;
    outputChatBox ( &amp;quot;Current position of the horizontal scroll:&amp;quot; ..tostring(position).. &amp;quot;%&amp;quot; ) -- output to the chatbox&lt;br /&gt;
else &lt;br /&gt;
    outputChatBox (&amp;quot;Grid list not found!&amp;quot;) -- if the grid list was not found&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{DGSFUNCTIONS}}&lt;/div&gt;</summary>
		<author><name>ImHade</name></author>
	</entry>
</feed>