<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/DgsIsDragNDropData?action=history&amp;feed=atom</id>
	<title>DgsIsDragNDropData - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/DgsIsDragNDropData?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsIsDragNDropData&amp;action=history"/>
	<updated>2026-06-23T14:44:36Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DgsIsDragNDropData&amp;diff=74357&amp;oldid=prev</id>
		<title>Thisdp: Created page with &quot;__NOTOC__  {{Client function}} This function checks whether there is some data holding on cursor.  ==Syntax==  &lt;syntaxhighlight lang=&quot;lua&quot;&gt; bool dgsIsDragNDropData (  ) &lt;/syntaxhighlight&gt;   ===Required Arguments===  None  ===Returns=== Returns ''true'' if there is some data holding on cursor, ''false'' otherwise  ==Example== &lt;syntaxhighlight lang=&quot;lua&quot;&gt; loadstring(exports.dgs:dgsImportFunction())()-- load functions  local sender = dgsCreateButton(200,200,200,200,&quot;Sender&quot;...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DgsIsDragNDropData&amp;diff=74357&amp;oldid=prev"/>
		<updated>2022-03-23T17:29:00Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__NOTOC__  {{Client function}} This function checks whether there is some data holding on cursor.  ==Syntax==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; bool dgsIsDragNDropData (  ) &amp;lt;/syntaxhighlight&amp;gt;   ===Required Arguments===  None  ===Returns=== Returns &amp;#039;&amp;#039;true&amp;#039;&amp;#039; if there is some data holding on cursor, &amp;#039;&amp;#039;false&amp;#039;&amp;#039; otherwise  ==Example== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; loadstring(exports.dgs:dgsImportFunction())()-- load functions  local sender = dgsCreateButton(200,200,200,200,&amp;quot;Sender&amp;quot;...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
This function checks whether there is some data holding on cursor.&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 dgsIsDragNDropData (  )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
None&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if there is some data holding on cursor, ''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;
loadstring(exports.dgs:dgsImportFunction())()-- load functions&lt;br /&gt;
&lt;br /&gt;
local sender = dgsCreateButton(200,200,200,200,&amp;quot;Sender&amp;quot;,false)&lt;br /&gt;
local receiver = dgsCreateButton(500,500,200,200,&amp;quot;Receiver&amp;quot;,false)&lt;br /&gt;
&lt;br /&gt;
addEventHandler(&amp;quot;onDgsDrag&amp;quot;,sender,function(data)&lt;br /&gt;
	local theTimer = setTimer(function()&lt;br /&gt;
		outputChatBox(tostring(dgsIsDragNDropData()))&lt;br /&gt;
		local data = dgsRetrieveDragNDropData()&lt;br /&gt;
		outputChatBox(&amp;quot;Data Sending Timedout: &amp;quot;..inspect(data))&lt;br /&gt;
	end,2000,1)&lt;br /&gt;
	dgsSendDragNDropData({&amp;quot;From SenderA&amp;quot;,getTickCount(),theTimer})&lt;br /&gt;
end,false)&lt;br /&gt;
&lt;br /&gt;
addEventHandler(&amp;quot;onDgsDrop&amp;quot;,receiver,function(data)&lt;br /&gt;
	outputChatBox(&amp;quot;Receive Data: &amp;quot;..inspect(data))&lt;br /&gt;
	killTimer(data[3])&lt;br /&gt;
end,false)&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>Thisdp</name></author>
	</entry>
</feed>