<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.vc-mp.org/index.php?action=history&amp;feed=atom&amp;title=Scripting%2FSquirrel%2FClient_Events%2FServer%3A%3AServerData</id>
	<title>Scripting/Squirrel/Client Events/Server::ServerData - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.vc-mp.org/index.php?action=history&amp;feed=atom&amp;title=Scripting%2FSquirrel%2FClient_Events%2FServer%3A%3AServerData"/>
	<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Events/Server::ServerData&amp;action=history"/>
	<updated>2026-05-10T21:08:32Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Events/Server::ServerData&amp;diff=20055&amp;oldid=prev</id>
		<title>Kennedyarz: Created page with &quot;== Example ==  &lt;source lang=squirrel&gt; Testing&lt;- {     Test = null }  function Script::ScriptLoad() {         Testing.Test = GUIButton(VectorScreen(sX * 0.23, sY * 0.05), Vecto...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Events/Server::ServerData&amp;diff=20055&amp;oldid=prev"/>
		<updated>2017-06-16T03:25:15Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Example ==  &amp;lt;source lang=squirrel&amp;gt; Testing&amp;lt;- {     Test = null }  function Script::ScriptLoad() {         Testing.Test = GUIButton(VectorScreen(sX * 0.23, sY * 0.05), Vecto...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Example ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
Testing&amp;lt;-&lt;br /&gt;
{&lt;br /&gt;
    Test = null&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function Script::ScriptLoad()&lt;br /&gt;
{&lt;br /&gt;
        Testing.Test = GUIButton(VectorScreen(sX * 0.23, sY * 0.05), VectorScreen(sX * 0.11, sY * 0.03), Colour(22, 22, 22, 200) &amp;quot;Data&amp;quot;, GUI_FLAG_BORDER | GUI_FLAG_DRAGGABLE | GUI_FLAG_VISIBLE);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function GUI::ElementRelease(element, mouseX, mouseY) &lt;br /&gt;
{&lt;br /&gt;
	if(element == Testing.Test)&lt;br /&gt;
	{&lt;br /&gt;
	local Data = Stream();&lt;br /&gt;
    	Data.WriteString(&amp;quot;Testing.Test&amp;quot;);&lt;br /&gt;
    	Server.SendData(Data);&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
//----------------------- S E R V E R  S I D E --------------------------//&lt;br /&gt;
function onClientScriptData(player)&lt;br /&gt;
{&lt;br /&gt;
	local string = Stream.ReadString(), int = Stream.ReadInt();&lt;br /&gt;
        if (string == &amp;quot;Test.Testing&amp;quot;)&lt;br /&gt;
        {&lt;br /&gt;
        Message(&amp;quot;Hello&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
Is responsible for sending a implemented function from the client side side to the server side&lt;/div&gt;</summary>
		<author><name>Kennedyarz</name></author>
	</entry>
</feed>