<?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=Senpai</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=Senpai"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Senpai"/>
	<updated>2026-04-22T14:13:39Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DgsCreateGridList&amp;diff=51465</id>
		<title>DgsCreateGridList</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsCreateGridList&amp;diff=51465"/>
		<updated>2017-07-01T18:00:55Z</updated>

		<summary type="html">&lt;p&gt;Senpai: Created page with &amp;quot;==Syntax==  Not completed &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; element dgsDxCreateGridList( float x, float y, float width, float height, bool relative,[ element parent = nil] ) &amp;lt;/synt...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Syntax== &lt;br /&gt;
Not completed&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element dgsDxCreateGridList( float x, float y, float width, float height, bool relative,[ element parent = nil] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
[[Image:gui-gridlist.png|frame|Example Gridlist.]]&lt;br /&gt;
*'''x:''' A float of the 2D x position of the window on a player's screen. This is affected by the ''relative'' argument.&lt;br /&gt;
*'''y:''' A float of the 2D y position of the window on a player's screen. This is affected by the ''relative'' argument.&lt;br /&gt;
*'''width:''' A float of the width of the window. This is affected by the ''relative'' argument.&lt;br /&gt;
*'''height:''' A float of the height of the window. This is affected by the ''relative'' argument.&lt;br /&gt;
*'''relative:''' This is whether sizes and positioning are relative. If this is true, then all x, y, width and height floats must be between 0 and 1, representing sizes relative to the parent.&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}}&lt;br /&gt;
Not completed&lt;br /&gt;
*'''parent:''' This is the parent that the DGS button is attached to.  If the ''relative'' argument is true, sizes and positioning will be made relative to this parent. If the ''relative'' argument is false, positioning will be the number of offset pixels from the parent's origin. If no parent is passed, the parent will become the screen - causing positioning and sizing according to screen positioning.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns an element of the created gridlist if it was successfully created, false otherwise.&lt;br /&gt;
==Example== &lt;br /&gt;
'''Example 1:''' This example creates a player list on the right of the screen and fills it&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
DGS = exports.dgs&lt;br /&gt;
function createPlayerList ()&lt;br /&gt;
	--Create the grid list element&lt;br /&gt;
	local playerList = DGS:dgsDxCreateGridList ( 0.80, 0.10, 0.15, 0.60, true )&lt;br /&gt;
	--Create a players column in the list&lt;br /&gt;
	local column = DGS:dgsDxGridListAddColumn( playerList, &amp;quot;Player&amp;quot;, 0.85 )&lt;br /&gt;
	if ( column ) then --If the column has been created, fill it with players&lt;br /&gt;
		for id, player in ipairs(getElementsByType(&amp;quot;player&amp;quot;)) do&lt;br /&gt;
			local row = DGS:dgsDxGridListAddRow ( playerList )&lt;br /&gt;
			DGS:dgsDxGridListSetItemText ( playerList, row, column, getPlayerName ( player ), false, false )&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Senpai</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:DGSFUNCTIONS&amp;diff=51464</id>
		<title>Template:DGSFUNCTIONS</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:DGSFUNCTIONS&amp;diff=51464"/>
		<updated>2017-07-01T18:00:13Z</updated>

		<summary type="html">&lt;p&gt;Senpai: /* Grid List */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[Dgs/DgsGetPosition|dgsGetPosition]]&lt;br /&gt;
*[[Dgs/DgsSetPosition|dgsSetPosition]]&lt;br /&gt;
*[[Dgs/DgsSetParent|dgsSetParent]]&lt;br /&gt;
*[[Dgs/DgsGetParent|dgsGetParent]]&lt;br /&gt;
*dgsGetChild&lt;br /&gt;
*dgsGetChildren&lt;br /&gt;
*dgsGetSize&lt;br /&gt;
*dgsSetSize&lt;br /&gt;
*dgsGetType&lt;br /&gt;
*dgsSetBottom&lt;br /&gt;
*dgsDxGUIGetProperty&lt;br /&gt;
*dgsDxGUISetProperty&lt;br /&gt;
*dgsDxGUIGetVisible&lt;br /&gt;
*dgsDxGUISetVisible&lt;br /&gt;
*dgsDxGUIGetEnabled&lt;br /&gt;
*dgsDxGUISetEnabled&lt;br /&gt;
*dgsDxGUIGetSide&lt;br /&gt;
*dgsDxGUISetSide&lt;br /&gt;
*dgsDxGUIGetAlpha&lt;br /&gt;
*dgsDxGUISetAlpha&lt;br /&gt;
*dgsDxGUIGetFont&lt;br /&gt;
*dgsDxGUISetFont&lt;br /&gt;
*dgsDxGUIGetText&lt;br /&gt;
*dgsDxGUISetText&lt;br /&gt;
*dgsDxGUICreateFont&lt;br /&gt;
*dgsDxGUIBringToFront&lt;br /&gt;
*dgsDxGetMouseEnterGUI&lt;br /&gt;
&lt;br /&gt;
==Window==&lt;br /&gt;
*[[Dgs/DgsDxCreateWindow|dgsDxCreateWindow]]&lt;br /&gt;
*[[Dgs/DgsDxWindowSetSizable|dgsDxWindowSetSizable]]&lt;br /&gt;
*[[Dgs/DgsDxWindowSetMovable|dgsDxWindowSetMovable]]&lt;br /&gt;
*[[Dgs/DgsDxGUICloseWindow|dgsDxGUICloseWindow]]&lt;br /&gt;
&lt;br /&gt;
==Scroll Pane==&lt;br /&gt;
*[[Dgs/DgsDxCreateScrollPane|dgsDxCreateScrollPane]]&lt;br /&gt;
*[[Dgs/DgsDxScrollPaneGetScrollBar|dgsDxScrollPaneGetScrollBar]]&lt;br /&gt;
&lt;br /&gt;
==Button==&lt;br /&gt;
*[[Dgs/DgsDxCreateButton|dgsDxCreateButton]]&lt;br /&gt;
&lt;br /&gt;
==Label==&lt;br /&gt;
*[[Dgs/DgsDxCreateLabel|dgsDxCreateLabel]]&lt;br /&gt;
*[[Dgs/DgsDxLabelSetColor|dgsDxLabelSetColor]]&lt;br /&gt;
*[[Dgs/DgsDxLabelGetColor|dgsDxLabelGetColor]]&lt;br /&gt;
*[[Dgs/DgsDxLabelSetHorizontalAlign|dgsDxLabelSetHorizontalAlign]]&lt;br /&gt;
*[[Dgs/DgsDxLabelSetVerticalAlign|dgsDxLabelSetVerticalAlign]]&lt;br /&gt;
*[[Dgs/DgsDxLabelGetHorizontalAlign|dgsDxLabelGetHorizontalAlign]]&lt;br /&gt;
*[[Dgs/DgsDxLabelGetVerticalAlign|dgsDxLabelGetVerticalAlign]]&lt;br /&gt;
&lt;br /&gt;
==CMD==&lt;br /&gt;
*dgsDxCreateCmd&lt;br /&gt;
*dgsDxCmdSetMode&lt;br /&gt;
*dgsDxEventCmdSetPreName&lt;br /&gt;
*outputCmdMessage&lt;br /&gt;
*dgsGetCmdEdit&lt;br /&gt;
*dgsDxCmdAddEventToWhiteList&lt;br /&gt;
*dgsDxCmdRemoveEventFromWhiteList&lt;br /&gt;
*dgsDxCmdRemoveAllEvents&lt;br /&gt;
*dgsDxCmdIsInWhiteList&lt;br /&gt;
*dgsAddCommandHandler&lt;br /&gt;
*dgsRemoveCommandHandler&lt;br /&gt;
&lt;br /&gt;
==Edit==&lt;br /&gt;
*[[Dgs/dgsDxCreateEdit|dgsDxCreateEdit]]&lt;br /&gt;
*[[DgsDxEditMoveCaret|dgsDxEditMoveCaret]]&lt;br /&gt;
*[[DgsDxEditGetCaretPosition|dgsDxEditGetCaretPosition]]&lt;br /&gt;
*[[DgsDxEditSetCaretStyle|dgsDxEditSetCaretStyle]]&lt;br /&gt;
*[[DgsDxEditSetWhiteList|dgsDxEditSetWhiteList]]&lt;br /&gt;
*[[DgsDxEditGetMaxLength|dgsDxEditGetMaxLength]]&lt;br /&gt;
*[[DgsDxEditSetMaxLength|dgsDxEditSetMaxLength]]&lt;br /&gt;
&lt;br /&gt;
==Image==&lt;br /&gt;
*dgsDxCreateImage&lt;br /&gt;
*dgsDxImageLoadImage&lt;br /&gt;
&lt;br /&gt;
==Tab Panel==&lt;br /&gt;
*dgsDxCreateTabPanel&lt;br /&gt;
*dgsDxCreateTab&lt;br /&gt;
*dgsDxTabPanelGetTabFromID&lt;br /&gt;
*dgsDxTabPanelMoveTab&lt;br /&gt;
*dgsDxTabPanelGetTabID&lt;br /&gt;
*dgsDxDeleteTab&lt;br /&gt;
&lt;br /&gt;
==Scroll Bar==&lt;br /&gt;
*dgsDxCreateScrollBar&lt;br /&gt;
*dgsDxScrollBarSetScrollBarPosition&lt;br /&gt;
*dgsDxScrollBarGetScrollBarPosition&lt;br /&gt;
*dgsDxScrollBarSetColor&lt;br /&gt;
&lt;br /&gt;
==Progress Bar==&lt;br /&gt;
*[[Dgs/DgsDxCreateProgressBar|dgsDxCreateProgressBar]]&lt;br /&gt;
*[[Dgs/DgsDxProgressBarGetProgress|dgsDxProgressBarGetProgress]]&lt;br /&gt;
*[[Dgs/DgsDxProgressBarSetProgress|dgsDxProgressBarSetProgress]]&lt;br /&gt;
*[[Dgs/DgsDxProgressBarGetMode|dgsDxProgressBarGetMode]]&lt;br /&gt;
*[[Dgs/DgsDxProgressBarSetMode|dgsDxProgressBarSetMode]]&lt;br /&gt;
*[[Dgs/DgsDxProgressBarGetUpDownDistance|dgsDxProgressBarGetUpDownDistance]]&lt;br /&gt;
*[[Dgs/DgsDxProgressBarSetUpDownDistance|dgsDxProgressBarSetUpDownDistance]]&lt;br /&gt;
*[[Dgs/DgsDxProgressBarGetLeftRightDistance|dgsDxProgressBarGetLeftRightDistance]]&lt;br /&gt;
*[[Dgs/DgsDxProgressBarSetLeftRightDistance|dgsDxProgressBarSetLeftRightDistance]]&lt;br /&gt;
&lt;br /&gt;
==Grid List==&lt;br /&gt;
*[[dgsDxCreateGridList]]&lt;br /&gt;
*dgsDxGridListGetScrollBar&lt;br /&gt;
*dgsDxGridListSetColumnRelative&lt;br /&gt;
*dgsDxGridListGetColumnRelative&lt;br /&gt;
*dgsDxGridListAddColumn&lt;br /&gt;
*dgsDxGridListGetColumnCount&lt;br /&gt;
*dgsDxGridListRemoveColumn&lt;br /&gt;
*dgsDxGridListGetColumnAllLength&lt;br /&gt;
*dgsDxGridListGetColumnLength&lt;br /&gt;
*dgsDxGridListGetColumnTitle&lt;br /&gt;
*dgsDxGridListSetColumnTitle&lt;br /&gt;
*dgsDxGridListAddRow&lt;br /&gt;
*dgsDxGridListRemoveRow&lt;br /&gt;
*dgsDxGridListClearRow&lt;br /&gt;
*dgsDxGridListGetRowCount&lt;br /&gt;
*dgsDxGridListSetItemText&lt;br /&gt;
*dgsDxGridListGetItemText&lt;br /&gt;
*dgsDxGridListGetSelectedItem&lt;br /&gt;
*dgsDxGridListSetSelectedItem&lt;br /&gt;
*dgsDxGridListSetItemColor&lt;br /&gt;
*dgsDxGridListGetItemColor&lt;br /&gt;
*dgsDxGridListGetItemBackGroundImage&lt;br /&gt;
*dgsDxGridListSetItemBackGroundImage&lt;br /&gt;
*dgsDxGridListSetRowColor&lt;br /&gt;
*dgsDxGridListGetRowColor&lt;/div&gt;</summary>
		<author><name>Senpai</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:DGSFUNCTIONS&amp;diff=51463</id>
		<title>Template:DGSFUNCTIONS</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:DGSFUNCTIONS&amp;diff=51463"/>
		<updated>2017-07-01T17:59:27Z</updated>

		<summary type="html">&lt;p&gt;Senpai: /* Grid List */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[Dgs/DgsGetPosition|dgsGetPosition]]&lt;br /&gt;
*[[Dgs/DgsSetPosition|dgsSetPosition]]&lt;br /&gt;
*[[Dgs/DgsSetParent|dgsSetParent]]&lt;br /&gt;
*[[Dgs/DgsGetParent|dgsGetParent]]&lt;br /&gt;
*dgsGetChild&lt;br /&gt;
*dgsGetChildren&lt;br /&gt;
*dgsGetSize&lt;br /&gt;
*dgsSetSize&lt;br /&gt;
*dgsGetType&lt;br /&gt;
*dgsSetBottom&lt;br /&gt;
*dgsDxGUIGetProperty&lt;br /&gt;
*dgsDxGUISetProperty&lt;br /&gt;
*dgsDxGUIGetVisible&lt;br /&gt;
*dgsDxGUISetVisible&lt;br /&gt;
*dgsDxGUIGetEnabled&lt;br /&gt;
*dgsDxGUISetEnabled&lt;br /&gt;
*dgsDxGUIGetSide&lt;br /&gt;
*dgsDxGUISetSide&lt;br /&gt;
*dgsDxGUIGetAlpha&lt;br /&gt;
*dgsDxGUISetAlpha&lt;br /&gt;
*dgsDxGUIGetFont&lt;br /&gt;
*dgsDxGUISetFont&lt;br /&gt;
*dgsDxGUIGetText&lt;br /&gt;
*dgsDxGUISetText&lt;br /&gt;
*dgsDxGUICreateFont&lt;br /&gt;
*dgsDxGUIBringToFront&lt;br /&gt;
*dgsDxGetMouseEnterGUI&lt;br /&gt;
&lt;br /&gt;
==Window==&lt;br /&gt;
*[[Dgs/DgsDxCreateWindow|dgsDxCreateWindow]]&lt;br /&gt;
*[[Dgs/DgsDxWindowSetSizable|dgsDxWindowSetSizable]]&lt;br /&gt;
*[[Dgs/DgsDxWindowSetMovable|dgsDxWindowSetMovable]]&lt;br /&gt;
*[[Dgs/DgsDxGUICloseWindow|dgsDxGUICloseWindow]]&lt;br /&gt;
&lt;br /&gt;
==Scroll Pane==&lt;br /&gt;
*[[Dgs/DgsDxCreateScrollPane|dgsDxCreateScrollPane]]&lt;br /&gt;
*[[Dgs/DgsDxScrollPaneGetScrollBar|dgsDxScrollPaneGetScrollBar]]&lt;br /&gt;
&lt;br /&gt;
==Button==&lt;br /&gt;
*[[Dgs/DgsDxCreateButton|dgsDxCreateButton]]&lt;br /&gt;
&lt;br /&gt;
==Label==&lt;br /&gt;
*[[Dgs/DgsDxCreateLabel|dgsDxCreateLabel]]&lt;br /&gt;
*[[Dgs/DgsDxLabelSetColor|dgsDxLabelSetColor]]&lt;br /&gt;
*[[Dgs/DgsDxLabelGetColor|dgsDxLabelGetColor]]&lt;br /&gt;
*[[Dgs/DgsDxLabelSetHorizontalAlign|dgsDxLabelSetHorizontalAlign]]&lt;br /&gt;
*[[Dgs/DgsDxLabelSetVerticalAlign|dgsDxLabelSetVerticalAlign]]&lt;br /&gt;
*[[Dgs/DgsDxLabelGetHorizontalAlign|dgsDxLabelGetHorizontalAlign]]&lt;br /&gt;
*[[Dgs/DgsDxLabelGetVerticalAlign|dgsDxLabelGetVerticalAlign]]&lt;br /&gt;
&lt;br /&gt;
==CMD==&lt;br /&gt;
*dgsDxCreateCmd&lt;br /&gt;
*dgsDxCmdSetMode&lt;br /&gt;
*dgsDxEventCmdSetPreName&lt;br /&gt;
*outputCmdMessage&lt;br /&gt;
*dgsGetCmdEdit&lt;br /&gt;
*dgsDxCmdAddEventToWhiteList&lt;br /&gt;
*dgsDxCmdRemoveEventFromWhiteList&lt;br /&gt;
*dgsDxCmdRemoveAllEvents&lt;br /&gt;
*dgsDxCmdIsInWhiteList&lt;br /&gt;
*dgsAddCommandHandler&lt;br /&gt;
*dgsRemoveCommandHandler&lt;br /&gt;
&lt;br /&gt;
==Edit==&lt;br /&gt;
*[[Dgs/dgsDxCreateEdit|dgsDxCreateEdit]]&lt;br /&gt;
*[[DgsDxEditMoveCaret|dgsDxEditMoveCaret]]&lt;br /&gt;
*[[DgsDxEditGetCaretPosition|dgsDxEditGetCaretPosition]]&lt;br /&gt;
*[[DgsDxEditSetCaretStyle|dgsDxEditSetCaretStyle]]&lt;br /&gt;
*[[DgsDxEditSetWhiteList|dgsDxEditSetWhiteList]]&lt;br /&gt;
*[[DgsDxEditGetMaxLength|dgsDxEditGetMaxLength]]&lt;br /&gt;
*[[DgsDxEditSetMaxLength|dgsDxEditSetMaxLength]]&lt;br /&gt;
&lt;br /&gt;
==Image==&lt;br /&gt;
*dgsDxCreateImage&lt;br /&gt;
*dgsDxImageLoadImage&lt;br /&gt;
&lt;br /&gt;
==Tab Panel==&lt;br /&gt;
*dgsDxCreateTabPanel&lt;br /&gt;
*dgsDxCreateTab&lt;br /&gt;
*dgsDxTabPanelGetTabFromID&lt;br /&gt;
*dgsDxTabPanelMoveTab&lt;br /&gt;
*dgsDxTabPanelGetTabID&lt;br /&gt;
*dgsDxDeleteTab&lt;br /&gt;
&lt;br /&gt;
==Scroll Bar==&lt;br /&gt;
*dgsDxCreateScrollBar&lt;br /&gt;
*dgsDxScrollBarSetScrollBarPosition&lt;br /&gt;
*dgsDxScrollBarGetScrollBarPosition&lt;br /&gt;
*dgsDxScrollBarSetColor&lt;br /&gt;
&lt;br /&gt;
==Progress Bar==&lt;br /&gt;
*[[Dgs/DgsDxCreateProgressBar|dgsDxCreateProgressBar]]&lt;br /&gt;
*[[Dgs/DgsDxProgressBarGetProgress|dgsDxProgressBarGetProgress]]&lt;br /&gt;
*[[Dgs/DgsDxProgressBarSetProgress|dgsDxProgressBarSetProgress]]&lt;br /&gt;
*[[Dgs/DgsDxProgressBarGetMode|dgsDxProgressBarGetMode]]&lt;br /&gt;
*[[Dgs/DgsDxProgressBarSetMode|dgsDxProgressBarSetMode]]&lt;br /&gt;
*[[Dgs/DgsDxProgressBarGetUpDownDistance|dgsDxProgressBarGetUpDownDistance]]&lt;br /&gt;
*[[Dgs/DgsDxProgressBarSetUpDownDistance|dgsDxProgressBarSetUpDownDistance]]&lt;br /&gt;
*[[Dgs/DgsDxProgressBarGetLeftRightDistance|dgsDxProgressBarGetLeftRightDistance]]&lt;br /&gt;
*[[Dgs/DgsDxProgressBarSetLeftRightDistance|dgsDxProgressBarSetLeftRightDistance]]&lt;br /&gt;
&lt;br /&gt;
==Grid List==&lt;br /&gt;
*[dgsDxCreateGridList]&lt;br /&gt;
*dgsDxGridListGetScrollBar&lt;br /&gt;
*dgsDxGridListSetColumnRelative&lt;br /&gt;
*dgsDxGridListGetColumnRelative&lt;br /&gt;
*dgsDxGridListAddColumn&lt;br /&gt;
*dgsDxGridListGetColumnCount&lt;br /&gt;
*dgsDxGridListRemoveColumn&lt;br /&gt;
*dgsDxGridListGetColumnAllLength&lt;br /&gt;
*dgsDxGridListGetColumnLength&lt;br /&gt;
*dgsDxGridListGetColumnTitle&lt;br /&gt;
*dgsDxGridListSetColumnTitle&lt;br /&gt;
*dgsDxGridListAddRow&lt;br /&gt;
*dgsDxGridListRemoveRow&lt;br /&gt;
*dgsDxGridListClearRow&lt;br /&gt;
*dgsDxGridListGetRowCount&lt;br /&gt;
*dgsDxGridListSetItemText&lt;br /&gt;
*dgsDxGridListGetItemText&lt;br /&gt;
*dgsDxGridListGetSelectedItem&lt;br /&gt;
*dgsDxGridListSetSelectedItem&lt;br /&gt;
*dgsDxGridListSetItemColor&lt;br /&gt;
*dgsDxGridListGetItemColor&lt;br /&gt;
*dgsDxGridListGetItemBackGroundImage&lt;br /&gt;
*dgsDxGridListSetItemBackGroundImage&lt;br /&gt;
*dgsDxGridListSetRowColor&lt;br /&gt;
*dgsDxGridListGetRowColor&lt;/div&gt;</summary>
		<author><name>Senpai</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:DGSFUNCTIONS&amp;diff=51462</id>
		<title>Template:DGSFUNCTIONS</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:DGSFUNCTIONS&amp;diff=51462"/>
		<updated>2017-07-01T17:58:56Z</updated>

		<summary type="html">&lt;p&gt;Senpai: /* Grid List */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[Dgs/DgsGetPosition|dgsGetPosition]]&lt;br /&gt;
*[[Dgs/DgsSetPosition|dgsSetPosition]]&lt;br /&gt;
*[[Dgs/DgsSetParent|dgsSetParent]]&lt;br /&gt;
*[[Dgs/DgsGetParent|dgsGetParent]]&lt;br /&gt;
*dgsGetChild&lt;br /&gt;
*dgsGetChildren&lt;br /&gt;
*dgsGetSize&lt;br /&gt;
*dgsSetSize&lt;br /&gt;
*dgsGetType&lt;br /&gt;
*dgsSetBottom&lt;br /&gt;
*dgsDxGUIGetProperty&lt;br /&gt;
*dgsDxGUISetProperty&lt;br /&gt;
*dgsDxGUIGetVisible&lt;br /&gt;
*dgsDxGUISetVisible&lt;br /&gt;
*dgsDxGUIGetEnabled&lt;br /&gt;
*dgsDxGUISetEnabled&lt;br /&gt;
*dgsDxGUIGetSide&lt;br /&gt;
*dgsDxGUISetSide&lt;br /&gt;
*dgsDxGUIGetAlpha&lt;br /&gt;
*dgsDxGUISetAlpha&lt;br /&gt;
*dgsDxGUIGetFont&lt;br /&gt;
*dgsDxGUISetFont&lt;br /&gt;
*dgsDxGUIGetText&lt;br /&gt;
*dgsDxGUISetText&lt;br /&gt;
*dgsDxGUICreateFont&lt;br /&gt;
*dgsDxGUIBringToFront&lt;br /&gt;
*dgsDxGetMouseEnterGUI&lt;br /&gt;
&lt;br /&gt;
==Window==&lt;br /&gt;
*[[Dgs/DgsDxCreateWindow|dgsDxCreateWindow]]&lt;br /&gt;
*[[Dgs/DgsDxWindowSetSizable|dgsDxWindowSetSizable]]&lt;br /&gt;
*[[Dgs/DgsDxWindowSetMovable|dgsDxWindowSetMovable]]&lt;br /&gt;
*[[Dgs/DgsDxGUICloseWindow|dgsDxGUICloseWindow]]&lt;br /&gt;
&lt;br /&gt;
==Scroll Pane==&lt;br /&gt;
*[[Dgs/DgsDxCreateScrollPane|dgsDxCreateScrollPane]]&lt;br /&gt;
*[[Dgs/DgsDxScrollPaneGetScrollBar|dgsDxScrollPaneGetScrollBar]]&lt;br /&gt;
&lt;br /&gt;
==Button==&lt;br /&gt;
*[[Dgs/DgsDxCreateButton|dgsDxCreateButton]]&lt;br /&gt;
&lt;br /&gt;
==Label==&lt;br /&gt;
*[[Dgs/DgsDxCreateLabel|dgsDxCreateLabel]]&lt;br /&gt;
*[[Dgs/DgsDxLabelSetColor|dgsDxLabelSetColor]]&lt;br /&gt;
*[[Dgs/DgsDxLabelGetColor|dgsDxLabelGetColor]]&lt;br /&gt;
*[[Dgs/DgsDxLabelSetHorizontalAlign|dgsDxLabelSetHorizontalAlign]]&lt;br /&gt;
*[[Dgs/DgsDxLabelSetVerticalAlign|dgsDxLabelSetVerticalAlign]]&lt;br /&gt;
*[[Dgs/DgsDxLabelGetHorizontalAlign|dgsDxLabelGetHorizontalAlign]]&lt;br /&gt;
*[[Dgs/DgsDxLabelGetVerticalAlign|dgsDxLabelGetVerticalAlign]]&lt;br /&gt;
&lt;br /&gt;
==CMD==&lt;br /&gt;
*dgsDxCreateCmd&lt;br /&gt;
*dgsDxCmdSetMode&lt;br /&gt;
*dgsDxEventCmdSetPreName&lt;br /&gt;
*outputCmdMessage&lt;br /&gt;
*dgsGetCmdEdit&lt;br /&gt;
*dgsDxCmdAddEventToWhiteList&lt;br /&gt;
*dgsDxCmdRemoveEventFromWhiteList&lt;br /&gt;
*dgsDxCmdRemoveAllEvents&lt;br /&gt;
*dgsDxCmdIsInWhiteList&lt;br /&gt;
*dgsAddCommandHandler&lt;br /&gt;
*dgsRemoveCommandHandler&lt;br /&gt;
&lt;br /&gt;
==Edit==&lt;br /&gt;
*[[Dgs/dgsDxCreateEdit|dgsDxCreateEdit]]&lt;br /&gt;
*[[DgsDxEditMoveCaret|dgsDxEditMoveCaret]]&lt;br /&gt;
*[[DgsDxEditGetCaretPosition|dgsDxEditGetCaretPosition]]&lt;br /&gt;
*[[DgsDxEditSetCaretStyle|dgsDxEditSetCaretStyle]]&lt;br /&gt;
*[[DgsDxEditSetWhiteList|dgsDxEditSetWhiteList]]&lt;br /&gt;
*[[DgsDxEditGetMaxLength|dgsDxEditGetMaxLength]]&lt;br /&gt;
*[[DgsDxEditSetMaxLength|dgsDxEditSetMaxLength]]&lt;br /&gt;
&lt;br /&gt;
==Image==&lt;br /&gt;
*dgsDxCreateImage&lt;br /&gt;
*dgsDxImageLoadImage&lt;br /&gt;
&lt;br /&gt;
==Tab Panel==&lt;br /&gt;
*dgsDxCreateTabPanel&lt;br /&gt;
*dgsDxCreateTab&lt;br /&gt;
*dgsDxTabPanelGetTabFromID&lt;br /&gt;
*dgsDxTabPanelMoveTab&lt;br /&gt;
*dgsDxTabPanelGetTabID&lt;br /&gt;
*dgsDxDeleteTab&lt;br /&gt;
&lt;br /&gt;
==Scroll Bar==&lt;br /&gt;
*dgsDxCreateScrollBar&lt;br /&gt;
*dgsDxScrollBarSetScrollBarPosition&lt;br /&gt;
*dgsDxScrollBarGetScrollBarPosition&lt;br /&gt;
*dgsDxScrollBarSetColor&lt;br /&gt;
&lt;br /&gt;
==Progress Bar==&lt;br /&gt;
*[[Dgs/DgsDxCreateProgressBar|dgsDxCreateProgressBar]]&lt;br /&gt;
*[[Dgs/DgsDxProgressBarGetProgress|dgsDxProgressBarGetProgress]]&lt;br /&gt;
*[[Dgs/DgsDxProgressBarSetProgress|dgsDxProgressBarSetProgress]]&lt;br /&gt;
*[[Dgs/DgsDxProgressBarGetMode|dgsDxProgressBarGetMode]]&lt;br /&gt;
*[[Dgs/DgsDxProgressBarSetMode|dgsDxProgressBarSetMode]]&lt;br /&gt;
*[[Dgs/DgsDxProgressBarGetUpDownDistance|dgsDxProgressBarGetUpDownDistance]]&lt;br /&gt;
*[[Dgs/DgsDxProgressBarSetUpDownDistance|dgsDxProgressBarSetUpDownDistance]]&lt;br /&gt;
*[[Dgs/DgsDxProgressBarGetLeftRightDistance|dgsDxProgressBarGetLeftRightDistance]]&lt;br /&gt;
*[[Dgs/DgsDxProgressBarSetLeftRightDistance|dgsDxProgressBarSetLeftRightDistance]]&lt;br /&gt;
&lt;br /&gt;
==Grid List==&lt;br /&gt;
*[[dgsDxCreateGridList]]&lt;br /&gt;
*dgsDxGridListGetScrollBar&lt;br /&gt;
*dgsDxGridListSetColumnRelative&lt;br /&gt;
*dgsDxGridListGetColumnRelative&lt;br /&gt;
*dgsDxGridListAddColumn&lt;br /&gt;
*dgsDxGridListGetColumnCount&lt;br /&gt;
*dgsDxGridListRemoveColumn&lt;br /&gt;
*dgsDxGridListGetColumnAllLength&lt;br /&gt;
*dgsDxGridListGetColumnLength&lt;br /&gt;
*dgsDxGridListGetColumnTitle&lt;br /&gt;
*dgsDxGridListSetColumnTitle&lt;br /&gt;
*dgsDxGridListAddRow&lt;br /&gt;
*dgsDxGridListRemoveRow&lt;br /&gt;
*dgsDxGridListClearRow&lt;br /&gt;
*dgsDxGridListGetRowCount&lt;br /&gt;
*dgsDxGridListSetItemText&lt;br /&gt;
*dgsDxGridListGetItemText&lt;br /&gt;
*dgsDxGridListGetSelectedItem&lt;br /&gt;
*dgsDxGridListSetSelectedItem&lt;br /&gt;
*dgsDxGridListSetItemColor&lt;br /&gt;
*dgsDxGridListGetItemColor&lt;br /&gt;
*dgsDxGridListGetItemBackGroundImage&lt;br /&gt;
*dgsDxGridListSetItemBackGroundImage&lt;br /&gt;
*dgsDxGridListSetRowColor&lt;br /&gt;
*dgsDxGridListGetRowColor&lt;/div&gt;</summary>
		<author><name>Senpai</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Dgs/DgsDxCreateGridList&amp;diff=51461</id>
		<title>Dgs/DgsDxCreateGridList</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Dgs/DgsDxCreateGridList&amp;diff=51461"/>
		<updated>2017-07-01T17:56:03Z</updated>

		<summary type="html">&lt;p&gt;Senpai: /* Returns */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Syntax== &lt;br /&gt;
Not completed&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element dgsDxCreateGridList( float x, float y, float width, float height, bool relative,[ element parent = nil] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
[[Image:gui-gridlist.png|frame|Example Gridlist.]]&lt;br /&gt;
*'''x:''' A float of the 2D x position of the window on a player's screen. This is affected by the ''relative'' argument.&lt;br /&gt;
*'''y:''' A float of the 2D y position of the window on a player's screen. This is affected by the ''relative'' argument.&lt;br /&gt;
*'''width:''' A float of the width of the window. This is affected by the ''relative'' argument.&lt;br /&gt;
*'''height:''' A float of the height of the window. This is affected by the ''relative'' argument.&lt;br /&gt;
*'''relative:''' This is whether sizes and positioning are relative. If this is true, then all x, y, width and height floats must be between 0 and 1, representing sizes relative to the parent.&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}}&lt;br /&gt;
Not completed&lt;br /&gt;
*'''parent:''' This is the parent that the DGS button is attached to.  If the ''relative'' argument is true, sizes and positioning will be made relative to this parent. If the ''relative'' argument is false, positioning will be the number of offset pixels from the parent's origin. If no parent is passed, the parent will become the screen - causing positioning and sizing according to screen positioning.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns an element of the created gridlist if it was successfully created, false otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
'''Example 1:''' This example creates a player list on the right of the screen and fills it&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
DGS = exports.dgs&lt;br /&gt;
function createPlayerList ()&lt;br /&gt;
	--Create the grid list element&lt;br /&gt;
	local playerList = DGS:dgsDxCreateGridList ( 0.80, 0.10, 0.15, 0.60, true )&lt;br /&gt;
	--Create a players column in the list&lt;br /&gt;
	local column = DGS:dgsDxGridListAddColumn( playerList, &amp;quot;Player&amp;quot;, 0.85 )&lt;br /&gt;
	if ( column ) then --If the column has been created, fill it with players&lt;br /&gt;
		for id, player in ipairs(getElementsByType(&amp;quot;player&amp;quot;)) do&lt;br /&gt;
			local row = DGS:dgsDxGridListAddRow ( playerList )&lt;br /&gt;
			DGS:dgsDxGridListSetItemText ( playerList, row, column, getPlayerName ( player ), false, false )&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Senpai</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Dgs/DgsDxCreateGridList&amp;diff=51460</id>
		<title>Dgs/DgsDxCreateGridList</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Dgs/DgsDxCreateGridList&amp;diff=51460"/>
		<updated>2017-07-01T17:50:21Z</updated>

		<summary type="html">&lt;p&gt;Senpai: /* Syntax */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Syntax== &lt;br /&gt;
Not completed&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element dgsDxCreateGridList( float x, float y, float width, float height, bool relative,[ element parent = nil] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
[[Image:gui-gridlist.png|frame|Example Gridlist.]]&lt;br /&gt;
*'''x:''' A float of the 2D x position of the window on a player's screen. This is affected by the ''relative'' argument.&lt;br /&gt;
*'''y:''' A float of the 2D y position of the window on a player's screen. This is affected by the ''relative'' argument.&lt;br /&gt;
*'''width:''' A float of the width of the window. This is affected by the ''relative'' argument.&lt;br /&gt;
*'''height:''' A float of the height of the window. This is affected by the ''relative'' argument.&lt;br /&gt;
*'''relative:''' This is whether sizes and positioning are relative. If this is true, then all x, y, width and height floats must be between 0 and 1, representing sizes relative to the parent.&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}}&lt;br /&gt;
Not completed&lt;br /&gt;
*'''parent:''' This is the parent that the DGS button is attached to.  If the ''relative'' argument is true, sizes and positioning will be made relative to this parent. If the ''relative'' argument is false, positioning will be the number of offset pixels from the parent's origin. If no parent is passed, the parent will become the screen - causing positioning and sizing according to screen positioning.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns an element of the created gridlist if it was successfully created, false otherwise.&lt;/div&gt;</summary>
		<author><name>Senpai</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Dgs/DgsDxCreateGridList&amp;diff=51459</id>
		<title>Dgs/DgsDxCreateGridList</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Dgs/DgsDxCreateGridList&amp;diff=51459"/>
		<updated>2017-07-01T17:47:42Z</updated>

		<summary type="html">&lt;p&gt;Senpai: /* Syntax */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Syntax== &lt;br /&gt;
Not completed&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element dgsDxCreateGridList( float x, float y, float width, float height, bool relative,[ element parent = nil] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}}&lt;br /&gt;
Not completed&lt;br /&gt;
*'''parent:''' This is the parent that the DGS button is attached to.  If the ''relative'' argument is true, sizes and positioning will be made relative to this parent. If the ''relative'' argument is false, positioning will be the number of offset pixels from the parent's origin. If no parent is passed, the parent will become the screen - causing positioning and sizing according to screen positioning.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns an element of the created gridlist if it was successfully created, false otherwise.&lt;/div&gt;</summary>
		<author><name>Senpai</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Dgs/DgsDxCreateGridList&amp;diff=51458</id>
		<title>Dgs/DgsDxCreateGridList</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Dgs/DgsDxCreateGridList&amp;diff=51458"/>
		<updated>2017-07-01T17:47:05Z</updated>

		<summary type="html">&lt;p&gt;Senpai: Created page with &amp;quot;==Syntax==  Not completed &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; element dgsDxCreateGridList( float x, float y, float width, float height, bool relative[element parent = nil] ) &amp;lt;/syntax...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Syntax== &lt;br /&gt;
Not completed&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element dgsDxCreateGridList( float x, float y, float width, float height, bool relative[element parent = nil] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}}&lt;br /&gt;
Not completed&lt;br /&gt;
*'''parent:''' This is the parent that the DGS button is attached to.  If the ''relative'' argument is true, sizes and positioning will be made relative to this parent. If the ''relative'' argument is false, positioning will be the number of offset pixels from the parent's origin. If no parent is passed, the parent will become the screen - causing positioning and sizing according to screen positioning.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns an element of the created gridlist if it was successfully created, false otherwise.&lt;/div&gt;</summary>
		<author><name>Senpai</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DgsCreateEdit&amp;diff=51457</id>
		<title>DgsCreateEdit</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsCreateEdit&amp;diff=51457"/>
		<updated>2017-07-01T17:33:38Z</updated>

		<summary type="html">&lt;p&gt;Senpai: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
[[Image:Gui-edit.png|frame|Example GUI edit field.]]&lt;br /&gt;
&amp;lt;table&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td valign=top height=80&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This function is for creating a new DGS edit box.  This is a text box in which the user can input text. Edit boxes only allow a single line of text. If you want to allow multiple lines of text create a memo box using [[guiCreateMemo]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;/table&amp;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;
element dgsDxCreateEdit ( float x, float y, float width, float height, string text, bool relative, [element parent = nil, int textcolor = FF000000, float scalex = 1, float scaley = 1,element imagebg = nil, element colorbg = FFC8C8C8, bool selectmode = false] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''x:''' A float of the 2D x position of the DGS edit box on a player's screen.  This is affected by the ''relative'' argument.&lt;br /&gt;
*'''y:''' A float of the 2D y position of the DGS edit box on a player's screen. This is affected by the ''relative'' argument.&lt;br /&gt;
*'''width:''' A float of the width of the DGS edit box. This is affected by the ''relative'' argument.&lt;br /&gt;
*'''height:''' A float of the height of the DGS edit box. This is affected by the ''relative'' argument.&lt;br /&gt;
*'''text:''' A string of the text that will be displayed by default in the edit box.&lt;br /&gt;
*'''relative:''' This is whether sizes and positioning are relative.  If this is ''true'', then all x,y,width,height floats must be between 0 and 1, representing measures relative to the parent.&lt;br /&gt;
*'''textcolor:''' An int of the color of the text.&lt;br /&gt;
*'''scalex:''' A float of the multiplier of the width of the text.&lt;br /&gt;
*'''scaley:''' A float of the multiplier of the height of the text.&lt;br /&gt;
*'''imagebg:''' A texture element of the background of the DGS edit box.&lt;br /&gt;
*'''colorbg:''' An int of the color of the background of the DGS edit box.&lt;br /&gt;
*'''selectmode :''' A bool of whether the select background color is above the text or under the text.&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}} &lt;br /&gt;
*'''parent:''' This is the parent that the DGS edit box is attached to.  If the ''relative'' argument is true, sizes and positioning will be made relative to this parent. If the ''relative'' argument is false, positioning will be the number of offset pixels from the parent's origin. If no parent is passed, the parent will become the screen - causing positioning and sizing according to screen positioning.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a dgs-dxedit element of the created edit box if it was successfully created, false otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example creates an edit box alongside an &amp;quot;Output!&amp;quot; button.  When the button is clicked, it will output the message in the edit box into the Chat Box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
DGS = exports.dgs&lt;br /&gt;
--create our button&lt;br /&gt;
button = DGS:dgsDxCreateButton( 0.7, 0.1, 0.2, 0.1, &amp;quot;OK&amp;quot;, true )&lt;br /&gt;
--Create an edit box and define it as &amp;quot;editBox&amp;quot;.&lt;br /&gt;
editBox = DGS:dgsDxCreateEdit( 0.3, 0.1, 0.4, 0.1, &amp;quot;&amp;quot;, true )&lt;br /&gt;
&lt;br /&gt;
--setup our function to output the message to the chatbox&lt;br /&gt;
function outputEditBox ()&lt;br /&gt;
        local text = DGS:dgsDxGUIGetText ( editBox )--get the text from the edit box&lt;br /&gt;
        outputChatBox ( text ) --output that text&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onClientGUIClick&amp;quot;, button, outputEditBox )&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This example creates an edit box and sets the input focus so the player does not have to click before typing:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
DGS = exports.dgs&lt;br /&gt;
local editBox = DGS:dgsDxCreateEdit( 0.3, 0.1, 0.4, 0.1, &amp;quot;&amp;quot;, true )&lt;br /&gt;
DGS:dgsDxGUIBringToFront( editBox )&lt;br /&gt;
DGS:dgsDxEditSetCaretPosition( editBox, 1 )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Edit by: Senpai&lt;br /&gt;
This example masks the password:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
DGS = exports.dgs&lt;br /&gt;
local editBox = DGS:dgsDxCreateEdit( 0.3, 0.1, 0.4, 0.1, &amp;quot;&amp;quot;, true )&lt;br /&gt;
DGS:dgsDxGUISetProperty(editBox,&amp;quot;masked&amp;quot;,true) --if its true then it will be masked&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>Senpai</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DgsCreateEdit&amp;diff=51456</id>
		<title>DgsCreateEdit</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsCreateEdit&amp;diff=51456"/>
		<updated>2017-07-01T17:32:47Z</updated>

		<summary type="html">&lt;p&gt;Senpai: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
[[Image:Gui-edit.png|frame|Example GUI edit field.]]&lt;br /&gt;
&amp;lt;table&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td valign=top height=80&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This function is for creating a new DGS edit box.  This is a text box in which the user can input text. Edit boxes only allow a single line of text. If you want to allow multiple lines of text create a memo box using [[guiCreateMemo]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;/table&amp;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;
element dgsDxCreateEdit ( float x, float y, float width, float height, string text, bool relative, [element parent = nil, int textcolor = FF000000, float scalex = 1, float scaley = 1,element imagebg = nil, element colorbg = FFC8C8C8, bool selectmode = false] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''x:''' A float of the 2D x position of the DGS edit box on a player's screen.  This is affected by the ''relative'' argument.&lt;br /&gt;
*'''y:''' A float of the 2D y position of the DGS edit box on a player's screen. This is affected by the ''relative'' argument.&lt;br /&gt;
*'''width:''' A float of the width of the DGS edit box. This is affected by the ''relative'' argument.&lt;br /&gt;
*'''height:''' A float of the height of the DGS edit box. This is affected by the ''relative'' argument.&lt;br /&gt;
*'''text:''' A string of the text that will be displayed by default in the edit box.&lt;br /&gt;
*'''relative:''' This is whether sizes and positioning are relative.  If this is ''true'', then all x,y,width,height floats must be between 0 and 1, representing measures relative to the parent.&lt;br /&gt;
*'''textcolor:''' An int of the color of the text.&lt;br /&gt;
*'''scalex:''' A float of the multiplier of the width of the text.&lt;br /&gt;
*'''scaley:''' A float of the multiplier of the height of the text.&lt;br /&gt;
*'''imagebg:''' A texture element of the background of the DGS edit box.&lt;br /&gt;
*'''colorbg:''' An int of the color of the background of the DGS edit box.&lt;br /&gt;
*'''selectmode :''' A bool of whether the select background color is above the text or under the text.&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}} &lt;br /&gt;
*'''parent:''' This is the parent that the DGS edit box is attached to.  If the ''relative'' argument is true, sizes and positioning will be made relative to this parent. If the ''relative'' argument is false, positioning will be the number of offset pixels from the parent's origin. If no parent is passed, the parent will become the screen - causing positioning and sizing according to screen positioning.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a dgs-dxedit element of the created edit box if it was successfully created, false otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example creates an edit box alongside an &amp;quot;Output!&amp;quot; button.  When the button is clicked, it will output the message in the edit box into the Chat Box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
DGS = exports.dgs&lt;br /&gt;
--create our button&lt;br /&gt;
button = DGS:dgsDxCreateButton( 0.7, 0.1, 0.2, 0.1, &amp;quot;OK&amp;quot;, true )&lt;br /&gt;
--Create an edit box and define it as &amp;quot;editBox&amp;quot;.&lt;br /&gt;
editBox = DGS:dgsDxCreateEdit( 0.3, 0.1, 0.4, 0.1, &amp;quot;&amp;quot;, true )&lt;br /&gt;
&lt;br /&gt;
--setup our function to output the message to the chatbox&lt;br /&gt;
function outputEditBox ()&lt;br /&gt;
        local text = DGS:dgsDxGUIGetText ( editBox )--get the text from the edit box&lt;br /&gt;
        outputChatBox ( text ) --output that text&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onClientGUIClick&amp;quot;, button, outputEditBox )&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This example creates an edit box and sets the input focus so the player does not have to click before typing:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
DGS = exports.dgs&lt;br /&gt;
local editBox = DGS:dgsDxCreateEdit( 0.3, 0.1, 0.4, 0.1, &amp;quot;&amp;quot;, true )&lt;br /&gt;
DGS:dgsDxGUIBringToFront( editBox )&lt;br /&gt;
DGS:dgsDxEditSetCaretPosition( editBox, 1 )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This example masks the password:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
DGS = exports.dgs&lt;br /&gt;
local editBox = DGS:dgsDxCreateEdit( 0.3, 0.1, 0.4, 0.1, &amp;quot;&amp;quot;, true )&lt;br /&gt;
DGS:dgsDxGUISetProperty(edutBox,&amp;quot;masked&amp;quot;,true) --if its true then it will be masked&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>Senpai</name></author>
	</entry>
</feed>