<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.vc-mp.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Kennedyarz</id>
	<title>Vice City Multiplayer - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.vc-mp.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Kennedyarz"/>
	<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/wiki/Special:Contributions/Kennedyarz"/>
	<updated>2026-06-05T17:31:05Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Events/GUI::InputReturn&amp;diff=20059</id>
		<title>Scripting/Squirrel/Client Events/GUI::InputReturn</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Events/GUI::InputReturn&amp;diff=20059"/>
		<updated>2017-06-17T11:10:51Z</updated>

		<summary type="html">&lt;p&gt;Kennedyarz: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;player - The instance.&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
* player&lt;br /&gt;
&lt;br /&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;
    Box = null&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function Script::ScriptLoad()&lt;br /&gt;
{&lt;br /&gt;
    Testing.Box = GUIEditbox( );&lt;br /&gt;
    Testing.Box.Pos = VectorScreen( sX*0.080, sY*0.200 );&lt;br /&gt;
    Testing.Box.Size = VectorScreen( sX * 0.25, sY * 0.05 );&lt;br /&gt;
    Testing.Box.Alpha = 210;&lt;br /&gt;
    Testing.Box.AddFlags( GUI_FLAG_ANIMATION | GUI_FLAG_INHERIT_ALPHA | GUI_FLAG_BORDER);&lt;br /&gt;
    Testing.Box.SendToTop();&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function GUI::InputReturn(editbox)&lt;br /&gt;
{&lt;br /&gt;
     switch( editbox )&lt;br /&gt;
     {&lt;br /&gt;
     case Testing.Box:&lt;br /&gt;
     if( Testing.Box.Text.len() &amp;gt; 3 )&lt;br /&gt;
     {&lt;br /&gt;
	local Data = Stream();&lt;br /&gt;
	Data.WriteString(Testing.Box.Text);&lt;br /&gt;
	Data.WriteInt(1);&lt;br /&gt;
	Server.SendData(Data);&lt;br /&gt;
     }&lt;br /&gt;
     break;&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;
	switch( int )&lt;br /&gt;
	{&lt;br /&gt;
	   case 1:&lt;br /&gt;
	   if( string.len() &amp;gt; 2 )&lt;br /&gt;
	   {&lt;br /&gt;
              Message(player.Name+&amp;quot;: &amp;quot;+string)&lt;br /&gt;
	   }&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;
When you type the text in the Box then press the &amp;quot;ENTER&amp;quot; key it is send a string next to the server side. The text is received as &amp;quot;+ string +&amp;quot;&lt;/div&gt;</summary>
		<author><name>Kennedyarz</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Events/GUI::InputReturn&amp;diff=20058</id>
		<title>Scripting/Squirrel/Client Events/GUI::InputReturn</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Events/GUI::InputReturn&amp;diff=20058"/>
		<updated>2017-06-17T11:08:47Z</updated>

		<summary type="html">&lt;p&gt;Kennedyarz: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;player - The instance.&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
* player&lt;br /&gt;
&lt;br /&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;
    Box = null&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function Script::ScriptLoad()&lt;br /&gt;
{&lt;br /&gt;
    Testing.Box = GUIEditbox( );&lt;br /&gt;
    Testing.Box.Pos = VectorScreen( sX*0.080, sY*0.200 );&lt;br /&gt;
    Testing.Box.Size = VectorScreen( sX * 0.25, sY * 0.05 );&lt;br /&gt;
    Testing.Box.Alpha = 210;&lt;br /&gt;
    Testing.Box.AddFlags( GUI_FLAG_ANIMATION | GUI_FLAG_INHERIT_ALPHA | GUI_FLAG_BORDER);&lt;br /&gt;
    Testing.Box.SendToTop();&lt;br /&gt;
    Testing.window.AddChild(Testing.Box);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function GUI::InputReturn(editbox)&lt;br /&gt;
{&lt;br /&gt;
     switch( editbox )&lt;br /&gt;
     {&lt;br /&gt;
     case Testing.Box:&lt;br /&gt;
     if( Testing.Box.Text.len() &amp;gt; 3 )&lt;br /&gt;
     {&lt;br /&gt;
	local Data = Stream();&lt;br /&gt;
	Data.WriteString(Testing.Box.Text);&lt;br /&gt;
	Data.WriteInt(1);&lt;br /&gt;
	Server.SendData(Data);&lt;br /&gt;
     }&lt;br /&gt;
     break;&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;
	switch( int )&lt;br /&gt;
	{&lt;br /&gt;
	   case 1:&lt;br /&gt;
	   if( string.len() &amp;gt; 2 )&lt;br /&gt;
	   {&lt;br /&gt;
              Message(player.Name+&amp;quot;: &amp;quot;+string)&lt;br /&gt;
	   }&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;
When you type the text in the Box then press the &amp;quot;ENTER&amp;quot; key it is send a string next to the server side. The text is received as &amp;quot;+ string +&amp;quot;&lt;/div&gt;</summary>
		<author><name>Kennedyarz</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Events/Server::ServerData&amp;diff=20055</id>
		<title>Scripting/Squirrel/Client Events/Server::ServerData</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"/>
		<updated>2017-06-16T03:25:15Z</updated>

		<summary type="html">&lt;p&gt;Kennedyarz: 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;hr /&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>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Events/GUI::InputReturn&amp;diff=20054</id>
		<title>Scripting/Squirrel/Client Events/GUI::InputReturn</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Events/GUI::InputReturn&amp;diff=20054"/>
		<updated>2017-06-16T03:14:42Z</updated>

		<summary type="html">&lt;p&gt;Kennedyarz: Created page with &amp;quot; == Syntax ==  &amp;lt;pre&amp;gt;player - The instance.&amp;lt;/pre&amp;gt;  == Arguments ==  * player  == Example ==  &amp;lt;source lang=squirrel&amp;gt; Testing&amp;lt;- {     Box = null }  function Script::ScriptLoad()...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;player - The instance.&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
* player&lt;br /&gt;
&lt;br /&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;
    Box = null&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function Script::ScriptLoad()&lt;br /&gt;
{&lt;br /&gt;
    Testing.Box = GUIEditbox( );&lt;br /&gt;
    Testing.Box.Pos = VectorScreen( sX*0.080, sY*0.200 );&lt;br /&gt;
    Testing.Box.Size = VectorScreen( sX * 0.25, sY * 0.05 );&lt;br /&gt;
    Testing.Box.Alpha = 210;&lt;br /&gt;
    Testing.Box.AddFlags( GUI_FLAG_ANIMATION | GUI_FLAG_INHERIT_ALPHA | GUI_FLAG_BORDER);&lt;br /&gt;
    Testing.Box.SendToTop();&lt;br /&gt;
    Testing.window.AddChild(Bank.Box);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function GUI::InputReturn(editbox)&lt;br /&gt;
{&lt;br /&gt;
     switch( editbox )&lt;br /&gt;
     {&lt;br /&gt;
     case Testing.Box:&lt;br /&gt;
     if( Testing.Box.Text.len() &amp;gt; 3 )&lt;br /&gt;
     {&lt;br /&gt;
	local Data = Stream();&lt;br /&gt;
	Data.WriteString(Testing.Box.Text);&lt;br /&gt;
	Data.WriteInt(1);&lt;br /&gt;
	Server.SendData(Data);&lt;br /&gt;
     }&lt;br /&gt;
     break;&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;
	switch( int )&lt;br /&gt;
	{&lt;br /&gt;
	   case 1:&lt;br /&gt;
	   if( string.len() &amp;gt; 2 )&lt;br /&gt;
	   {&lt;br /&gt;
              Message(player.Name+&amp;quot;: &amp;quot;+string)&lt;br /&gt;
	   }&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;
When you type the text in the Box then press the &amp;quot;ENTER&amp;quot; key it is send a string next to the server side. The text is received as &amp;quot;+ string +&amp;quot;&lt;/div&gt;</summary>
		<author><name>Kennedyarz</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Events/GUI::ElementHoverOut&amp;diff=20053</id>
		<title>Scripting/Squirrel/Client Events/GUI::ElementHoverOut</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Events/GUI::ElementHoverOut&amp;diff=20053"/>
		<updated>2017-06-16T02:59:13Z</updated>

		<summary type="html">&lt;p&gt;Kennedyarz: Created page with &amp;quot;== Syntax ==  &amp;lt;pre&amp;gt;player - The instance.&amp;lt;/pre&amp;gt;  == Arguments ==  * player  == Example ==  &amp;lt;source lang=squirrel&amp;gt; Testing&amp;lt;- { Button = null }  function Script::ScriptLoad() {...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;player - The instance.&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
* player&lt;br /&gt;
&lt;br /&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;
Button = null&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function Script::ScriptLoad()&lt;br /&gt;
{&lt;br /&gt;
Testing.Button &amp;lt;- GUIButton(VectorScreen(400,380), VectorScreen(200, 22), Colour(75,75,75), &amp;quot;Press Here&amp;quot;, GUI_FLAG_BORDER | GUI_FLAG_VISIBLE);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function GUI::ElementHoverOut(element)&lt;br /&gt;
{&lt;br /&gt;
   switch( element )&lt;br /&gt;
   {&lt;br /&gt;
        case Testing.Button:&lt;br /&gt;
	Testing.Button.Size.X-=4;&lt;br /&gt;
	Testing.Button.Size.Y-=4;&lt;br /&gt;
        break;&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;
Performs the action that you implement on your client side for when the mouse is in the element (Buttons, Labers, etc.)&lt;/div&gt;</summary>
		<author><name>Kennedyarz</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Events/GUI::ElementHoverOver&amp;diff=20052</id>
		<title>Scripting/Squirrel/Client Events/GUI::ElementHoverOver</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Events/GUI::ElementHoverOver&amp;diff=20052"/>
		<updated>2017-06-16T02:56:32Z</updated>

		<summary type="html">&lt;p&gt;Kennedyarz: Created page with &amp;quot;.  == Syntax ==  &amp;lt;pre&amp;gt;player - The instance.&amp;lt;/pre&amp;gt;  == Arguments ==  * player  == Example ==  &amp;lt;source lang=squirrel&amp;gt; Testing&amp;lt;- { Button = null }  function Script::ScriptLoad()...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;player - The instance.&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
* player&lt;br /&gt;
&lt;br /&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;
Button = null&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function Script::ScriptLoad()&lt;br /&gt;
{&lt;br /&gt;
Testing.Button &amp;lt;- GUIButton(VectorScreen(400,380), VectorScreen(200, 22), Colour(75,75,75), &amp;quot;Press Here&amp;quot;, GUI_FLAG_BORDER | GUI_FLAG_VISIBLE);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function GUI::ElementHoverOver(element)&lt;br /&gt;
{&lt;br /&gt;
   switch( element )&lt;br /&gt;
   {&lt;br /&gt;
        case Testing.Button:&lt;br /&gt;
	Testing.Button.Size.X+=4;&lt;br /&gt;
	Testing.Button.Size.Y+=4;&lt;br /&gt;
        break;&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;
Performs the action that you implement on your client side for when the mouse is in the element (Buttons, Labers, etc.)&lt;/div&gt;</summary>
		<author><name>Kennedyarz</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Events/GUI::WindowClose&amp;diff=20049</id>
		<title>Scripting/Squirrel/Client Events/GUI::WindowClose</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Events/GUI::WindowClose&amp;diff=20049"/>
		<updated>2017-06-01T22:41:58Z</updated>

		<summary type="html">&lt;p&gt;Kennedyarz: Created page with &amp;quot;.  == Syntax ==  &amp;lt;pre&amp;gt;player - The instance.&amp;lt;/pre&amp;gt;  == Arguments ==  * player * GUIButton  == Example ==  &amp;lt;source lang=squirrel&amp;gt; Test&amp;lt;- { window = null }  function Script::Scr...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;player - The instance.&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
* player&lt;br /&gt;
* GUIButton&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
Test&amp;lt;-&lt;br /&gt;
{&lt;br /&gt;
window = null&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function Script::ScriptLoad()&lt;br /&gt;
{&lt;br /&gt;
 Test.window = GUIWindow(VectorScreen(sX * 0.20, sY * 0.65), VectorScreen(sX * 0.60, sY * 0.30), Colour(20, 20, 20, 400), &amp;quot;Welcome to This server&amp;quot;, GUI_FLAG_TEXT_TAGS);  &lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function GUI::WindowClose(window)&lt;br /&gt;
	{&lt;br /&gt;
	if ( window == Test.window) SetMouseEnabled(false);&lt;br /&gt;
	}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kennedyarz</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Events/GUI::ElementDrag&amp;diff=20048</id>
		<title>Scripting/Squirrel/Client Events/GUI::ElementDrag</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Events/GUI::ElementDrag&amp;diff=20048"/>
		<updated>2017-06-01T22:38:01Z</updated>

		<summary type="html">&lt;p&gt;Kennedyarz: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;player - The instance.&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
* player&lt;br /&gt;
* GUIButton&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
Test&amp;lt;-&lt;br /&gt;
{&lt;br /&gt;
Hello = null&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function Script::ScriptLoad()&lt;br /&gt;
{&lt;br /&gt;
Test.Hello = GUIButton(VectorScreen(400,380), VectorScreen(200, 22), Colour(75,75,75), &amp;quot;Press Here&amp;quot;, GUI_FLAG_BORDER | GUI_FLAG_VISIBLE);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function GUI::ElementDrag(element, mouseX, mouseY)&lt;br /&gt;
{&lt;br /&gt;
if (element == Test.Hello)&lt;br /&gt;
   {&lt;br /&gt;
   Console.Print(&amp;quot;Hello. welcome to VCMP&amp;quot;)&lt;br /&gt;
   }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kennedyarz</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Events/GUI::ElementDrag&amp;diff=20047</id>
		<title>Scripting/Squirrel/Client Events/GUI::ElementDrag</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Events/GUI::ElementDrag&amp;diff=20047"/>
		<updated>2017-06-01T22:37:49Z</updated>

		<summary type="html">&lt;p&gt;Kennedyarz: Created page with &amp;quot;.  == Syntax ==  &amp;lt;pre&amp;gt;player - The instance.&amp;lt;/pre&amp;gt;  == Arguments ==  * player * GUIButton  == Example ==  &amp;lt;source lang=squirrel&amp;gt; Test&amp;lt;- { Hello = null }  function Script::Scri...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;player - The instance.&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
* player&lt;br /&gt;
* GUIButton&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
Test&amp;lt;-&lt;br /&gt;
{&lt;br /&gt;
Hello = null&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function Script::ScriptLoad()&lt;br /&gt;
{&lt;br /&gt;
Test.Hello = GUIButton(VectorScreen(400,380), VectorScreen(200, 22), Colour(75,75,75), &amp;quot;Press Here&amp;quot;, GUI_FLAG_BORDER | GUI_FLAG_VISIBLE);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function GUI::ElementClick(element, mouseX, mouseY)&lt;br /&gt;
{&lt;br /&gt;
if (element == Test.Hello)&lt;br /&gt;
   {&lt;br /&gt;
   Console.Print(&amp;quot;Hello. welcome to VCMP&amp;quot;)&lt;br /&gt;
   }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kennedyarz</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Events/GUI::ElementRelease&amp;diff=20046</id>
		<title>Scripting/Squirrel/Client Events/GUI::ElementRelease</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Events/GUI::ElementRelease&amp;diff=20046"/>
		<updated>2017-06-01T22:35:38Z</updated>

		<summary type="html">&lt;p&gt;Kennedyarz: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;player - The instance.&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
* player&lt;br /&gt;
* GUIButton&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
Test&amp;lt;-&lt;br /&gt;
{&lt;br /&gt;
Hello = null&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function Script::ScriptLoad()&lt;br /&gt;
{&lt;br /&gt;
Test.Hello = GUIButton(VectorScreen(400,380), VectorScreen(200, 22), Colour(75,75,75), &amp;quot;Press Here&amp;quot;, GUI_FLAG_BORDER | GUI_FLAG_VISIBLE);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function GUI::ElementClick(element, mouseX, mouseY)&lt;br /&gt;
{&lt;br /&gt;
if (element == Test.Hello)&lt;br /&gt;
   {&lt;br /&gt;
   Console.Print(&amp;quot;Hello. welcome to VCMP&amp;quot;)&lt;br /&gt;
   }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
The event [http://wiki.vc-mp.org/wiki/Scripting/Squirrel/Client_Events/GUI::ElementRelease Script::ScriptLoad] and function [http://wiki.vc-mp.org/wiki/Scripting/Squirrel/Client_Functions/Console::Print Console::Print] were used in in this example. More info about them in the corresponding pages.&lt;/div&gt;</summary>
		<author><name>Kennedyarz</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Events/GUI::ElementRelease&amp;diff=20045</id>
		<title>Scripting/Squirrel/Client Events/GUI::ElementRelease</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Events/GUI::ElementRelease&amp;diff=20045"/>
		<updated>2017-06-01T22:34:47Z</updated>

		<summary type="html">&lt;p&gt;Kennedyarz: Created page with &amp;quot;.  == Syntax ==  &amp;lt;pre&amp;gt;player - The instance.&amp;lt;/pre&amp;gt;  == Arguments ==  * player * GUIButton  == Example ==  Test&amp;lt;- { Hello = null }  &amp;lt;source lang=squirrel&amp;gt;function Script::Scrip...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;player - The instance.&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
* player&lt;br /&gt;
* GUIButton&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
Test&amp;lt;-&lt;br /&gt;
{&lt;br /&gt;
Hello = null&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;function Script::ScriptLoad()&lt;br /&gt;
{&lt;br /&gt;
Test.Hello = GUIButton(VectorScreen(400,380), VectorScreen(200, 22), Colour(75,75,75), &amp;quot;Press Here&amp;quot;, GUI_FLAG_BORDER | GUI_FLAG_VISIBLE);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function GUI::ElementClick(element, mouseX, mouseY)&lt;br /&gt;
{&lt;br /&gt;
if (element == Test.Hello)&lt;br /&gt;
   {&lt;br /&gt;
   Console.Print(&amp;quot;Hello. welcome to VCMP&amp;quot;)&lt;br /&gt;
   }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
The event [http://wiki.vc-mp.org/wiki/Scripting/Squirrel/Client_Events/GUI::ElementRelease Script::ScriptLoad] and function [http://wiki.vc-mp.org/wiki/Scripting/Squirrel/Client_Functions/Console::Print Console::Print] were used in in this example. More info about them in the corresponding pages.&lt;/div&gt;</summary>
		<author><name>Kennedyarz</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Events/Player::PlayerShoot&amp;diff=20044</id>
		<title>Scripting/Squirrel/Client Events/Player::PlayerShoot</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Events/Player::PlayerShoot&amp;diff=20044"/>
		<updated>2017-06-01T22:31:06Z</updated>

		<summary type="html">&lt;p&gt;Kennedyarz: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Appears when the player fires&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;player - The instance.&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
None.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
Appears when the player fires&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;squirrel&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
function Player::PlayerShoot(player, weapon, hitEntity, hitPosition)&lt;br /&gt;
&lt;br /&gt;
{&lt;br /&gt;
&lt;br /&gt;
Console.Print( player.ID + &amp;quot; Attacking. weapon &amp;quot;+weapon+&amp;quot;&amp;quot; );&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
This server-client&lt;/div&gt;</summary>
		<author><name>Kennedyarz</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Events/Player::PlayerShoot&amp;diff=20043</id>
		<title>Scripting/Squirrel/Client Events/Player::PlayerShoot</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Events/Player::PlayerShoot&amp;diff=20043"/>
		<updated>2017-06-01T22:30:24Z</updated>

		<summary type="html">&lt;p&gt;Kennedyarz: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Appears when the player fires&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;player - The instance.&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
None.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
Appears when the player fires&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;squirrel&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
function Player::PlayerShoot(player, weapon, hitEntity, hitPosition){&lt;br /&gt;
{&lt;br /&gt;
Console.Print( player.ID + &amp;quot; Attacking. weapon &amp;quot;+weapon+&amp;quot;&amp;quot; );&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
This server-client&lt;/div&gt;</summary>
		<author><name>Kennedyarz</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Events/Player::PlayerShoot&amp;diff=20042</id>
		<title>Scripting/Squirrel/Client Events/Player::PlayerShoot</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Events/Player::PlayerShoot&amp;diff=20042"/>
		<updated>2017-06-01T22:29:46Z</updated>

		<summary type="html">&lt;p&gt;Kennedyarz: Created page with &amp;quot;Appears when the player fires  == Syntax ==  &amp;lt;pre&amp;gt;player - The instance.&amp;lt;/pre&amp;gt;  == Arguments ==  None.  == Example == Appears when the player fires  &amp;lt;code lang=&amp;quot;squirrel&amp;quot;&amp;gt; fun...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Appears when the player fires&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;player - The instance.&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
None.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
Appears when the player fires&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;squirrel&amp;quot;&amp;gt;&lt;br /&gt;
function Player::PlayerShoot(player, weapon, hitEntity, hitPosition){&lt;br /&gt;
{&lt;br /&gt;
Console.Print( player.ID + &amp;quot; Attacking. weapon &amp;quot;+weapon+&amp;quot;&amp;quot; );&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
This server-client&lt;/div&gt;</summary>
		<author><name>Kennedyarz</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Events/Script::ScriptProcess&amp;diff=20041</id>
		<title>Scripting/Squirrel/Client Events/Script::ScriptProcess</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Events/Script::ScriptProcess&amp;diff=20041"/>
		<updated>2017-05-08T22:09:28Z</updated>

		<summary type="html">&lt;p&gt;Kennedyarz: Created page with &amp;quot;This event is called when a player dies.  == Syntax ==  &amp;lt;pre&amp;gt;player - The instance.&amp;lt;/pre&amp;gt;  == Arguments ==  None.  == Example == This message is in 3D in a map position  &amp;lt;code...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This event is called when a player dies.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;player - The instance.&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
None.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
This message is in 3D in a map position&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;squirrel&amp;quot;&amp;gt;&lt;br /&gt;
dx3DTextdrawPos &amp;lt;- GUI.WorldPosToScreen( Vector( 497.132, -85.3217, 10.0307 ) );&lt;br /&gt;
dxText &amp;lt;- null;&lt;br /&gt;
function Script::ScriptProcess()&lt;br /&gt;
{&lt;br /&gt;
::dx3DTextdrawPos = GUI.WorldPosToScreen( Vector( 497.132, -85.3217, 10.0307 ) );&lt;br /&gt;
::dxText = GUILabel( VectorScreen( dx3DTextdrawPos.X, dx3DTextdrawPos.Y ), Colour( 255, 255, 0, 255 ), &amp;quot;Hello wolrd&amp;quot; );&lt;br /&gt;
::dxText.FontSize = 20;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kennedyarz</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Timer.Start&amp;diff=20032</id>
		<title>Scripting/Squirrel/Functions/Timer.Start</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Timer.Start&amp;diff=20032"/>
		<updated>2017-04-04T03:40:11Z</updated>

		<summary type="html">&lt;p&gt;Kennedyarz: Created page with &amp;quot;Timer.Start();&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Timer.Start();&lt;/div&gt;</summary>
		<author><name>Kennedyarz</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Timer.Stop&amp;diff=20031</id>
		<title>Scripting/Squirrel/Functions/Timer.Stop</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Timer.Stop&amp;diff=20031"/>
		<updated>2017-04-04T03:39:04Z</updated>

		<summary type="html">&lt;p&gt;Kennedyarz: Created page with &amp;quot;Timer.Stop();&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Timer.Stop();&lt;/div&gt;</summary>
		<author><name>Kennedyarz</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Functions/GUI::SetMouseEnabled&amp;diff=20029</id>
		<title>Scripting/Squirrel/Client Functions/GUI::SetMouseEnabled</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Functions/GUI::SetMouseEnabled&amp;diff=20029"/>
		<updated>2017-03-16T13:41:27Z</updated>

		<summary type="html">&lt;p&gt;Kennedyarz: Created page with &amp;quot;::GUI.SetMouseEnabled(false);&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;::GUI.SetMouseEnabled(false);&lt;/div&gt;</summary>
		<author><name>Kennedyarz</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Functions/GUI::GetMouseEnabled&amp;diff=20028</id>
		<title>Scripting/Squirrel/Client Functions/GUI::GetMouseEnabled</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Functions/GUI::GetMouseEnabled&amp;diff=20028"/>
		<updated>2017-03-16T13:40:57Z</updated>

		<summary type="html">&lt;p&gt;Kennedyarz: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
----&lt;br /&gt;
::GUI.SetMouseEnabled(true);&lt;/div&gt;</summary>
		<author><name>Kennedyarz</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Events/GUI::ElementClick&amp;diff=20027</id>
		<title>Scripting/Squirrel/Client Events/GUI::ElementClick</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Events/GUI::ElementClick&amp;diff=20027"/>
		<updated>2017-03-14T19:33:20Z</updated>

		<summary type="html">&lt;p&gt;Kennedyarz: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;player - The instance.&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
* player&lt;br /&gt;
* GUIButton&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;squirrel&amp;quot;&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;function Script::ScriptLoad()&#039;&#039;&#039;&lt;br /&gt;
{&lt;br /&gt;
::Hello &amp;lt;- GUIButton(VectorScreen(400,380), VectorScreen(200, 22), Colour(75,75,75), &amp;quot;Press Here&amp;quot;, GUI_FLAG_BORDER | GUI_FLAG_VISIBLE);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;function GUI::ElementClick(element, mouseX, mouseY)&#039;&#039;&#039;&lt;br /&gt;
{&lt;br /&gt;
if (element == Hello)&lt;br /&gt;
{&lt;br /&gt;
Console.Print(&amp;quot;Hello. welcome to VCMP&amp;quot;)&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
The event [http://wiki.vc-mp.org/wiki/Scripting/Squirrel/Client_Events/GUI::ElementClick Script::ScriptLoad] and function [http://wiki.vc-mp.org/wiki/Scripting/Squirrel/Client_Functions/Console::Print Console::Print] were used in in this example. More info about them in the corresponding pages.&lt;/div&gt;</summary>
		<author><name>Kennedyarz</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Events/GUI::ElementClick&amp;diff=20026</id>
		<title>Scripting/Squirrel/Client Events/GUI::ElementClick</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Events/GUI::ElementClick&amp;diff=20026"/>
		<updated>2017-03-14T19:32:36Z</updated>

		<summary type="html">&lt;p&gt;Kennedyarz: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;player - The instance.&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
* player&lt;br /&gt;
* GUIButton&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;squirrel&amp;quot;&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;function Script::ScriptLoad()&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
{&lt;br /&gt;
::Hello &amp;lt;- GUIButton(VectorScreen(400,380), VectorScreen(200, 22), Colour(75,75,75), &amp;quot;Press Here&amp;quot;, GUI_FLAG_BORDER | GUI_FLAG_VISIBLE);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;function GUI::ElementClick(element, mouseX, mouseY)&#039;&#039;&#039;&lt;br /&gt;
{&lt;br /&gt;
if (element == Hello)&lt;br /&gt;
{&lt;br /&gt;
Console.Print(&amp;quot;Hello. welcome to VCMP&amp;quot;)&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
The event [http://wiki.vc-mp.org/wiki/Scripting/Squirrel/Client_Events/GUI::ElementClick Script::ScriptLoad] and function [http://wiki.vc-mp.org/wiki/Scripting/Squirrel/Client_Functions/Console::Print Console::Print] were used in in this example. More info about them in the corresponding pages.&lt;/div&gt;</summary>
		<author><name>Kennedyarz</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Events/GUI::ElementClick&amp;diff=20025</id>
		<title>Scripting/Squirrel/Client Events/GUI::ElementClick</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Events/GUI::ElementClick&amp;diff=20025"/>
		<updated>2017-03-14T19:31:25Z</updated>

		<summary type="html">&lt;p&gt;Kennedyarz: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;player - The instance.&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
* player&lt;br /&gt;
* GUIButton&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;squirrel&amp;quot;&amp;gt;&lt;br /&gt;
function Script::ScriptLoad()&lt;br /&gt;
{&lt;br /&gt;
::Hello &amp;lt;- GUIButton(VectorScreen(400,380), VectorScreen(200, 22), Colour(75,75,75), &amp;quot;Press Here&amp;quot;, GUI_FLAG_BORDER | GUI_FLAG_VISIBLE);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function GUI::ElementClick(element, mouseX, mouseY)&lt;br /&gt;
{&lt;br /&gt;
if (element == Hello)&lt;br /&gt;
{&lt;br /&gt;
Console.Print(&amp;quot;Hello. welcome to VCMP&amp;quot;)&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
The event [http://wiki.vc-mp.org/wiki/Scripting/Squirrel/Client_Events/GUI::ElementClick Script::ScriptLoad] and function [http://wiki.vc-mp.org/wiki/Scripting/Squirrel/Client_Functions/Console::Print Console::Print] were used in in this example. More info about them in the corresponding pages.&lt;/div&gt;</summary>
		<author><name>Kennedyarz</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Events/GUI::ElementClick&amp;diff=20024</id>
		<title>Scripting/Squirrel/Client Events/GUI::ElementClick</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Events/GUI::ElementClick&amp;diff=20024"/>
		<updated>2017-03-14T19:29:26Z</updated>

		<summary type="html">&lt;p&gt;Kennedyarz: Created page with &amp;quot;.  == Syntax ==  &amp;lt;pre&amp;gt;player - The instance.&amp;lt;/pre&amp;gt;  == Arguments ==  * player * GUIButton  == Example == Press Button  &amp;lt;code lang=&amp;quot;squirrel&amp;quot;&amp;gt;  function Script::ScriptLoad() {...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;player - The instance.&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
* player&lt;br /&gt;
* GUIButton&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
Press Button&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code lang=&amp;quot;squirrel&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
function Script::ScriptLoad()&lt;br /&gt;
{&lt;br /&gt;
::Hello &amp;lt;- GUIButton(VectorScreen(400,380), VectorScreen(200, 22), Colour(75,75,75), &amp;quot;Press Here&amp;quot;, GUI_FLAG_BORDER | GUI_FLAG_VISIBLE);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function GUI::ElementClick(element, mouseX, mouseY)&lt;br /&gt;
{&lt;br /&gt;
if (element == Hello)&lt;br /&gt;
{&lt;br /&gt;
Console.Print(&amp;quot;Hello. welcome to VCMP&amp;quot;)&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
The event [http://wiki.vc-mp.org/wiki/Scripting/Squirrel/Client_Events/GUI::ElementClick Script::ScriptLoad] and function [http://wiki.vc-mp.org/wiki/Scripting/Squirrel/Client_Functions/Console::Print Console::Print] were used in in this example. More info about them in the corresponding pages.&lt;/div&gt;</summary>
		<author><name>Kennedyarz</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=OnClientScriptData&amp;diff=20023</id>
		<title>OnClientScriptData</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=OnClientScriptData&amp;diff=20023"/>
		<updated>2017-03-14T13:49:13Z</updated>

		<summary type="html">&lt;p&gt;Kennedyarz: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;function onClientScriptData(player)&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;player&#039;&#039;&#039; - Player who is spawning.&lt;br /&gt;
* &#039;&#039;&#039;GuiButton&#039;&#039;&#039; - GUI Button.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;squirrel&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
function Script::ScriptLoad()&lt;br /&gt;
{&lt;br /&gt;
::Python &amp;lt;- GUIButton(VectorScreen(400,200), VectorScreen(200, 22), Colour(75,75,75), &amp;quot;Python (6) Cost(6)&amp;quot;, GUI_FLAG_BORDER | GUI_FLAG_VISIBLE);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function GUI::ElementClick(element, mouseX, mouseY)&lt;br /&gt;
{&lt;br /&gt;
if (element == Python)&lt;br /&gt;
{&lt;br /&gt;
local Datos = Stream();&lt;br /&gt;
Datos.WriteString(&amp;quot;python&amp;quot;);&lt;br /&gt;
Server.SendData(Datos);&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function onClientScriptData(player)&lt;br /&gt;
{&lt;br /&gt;
if(string==&amp;quot;python&amp;quot;)&lt;br /&gt;
{&lt;br /&gt;
player.GiveWeapon(18,100000);&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
&lt;br /&gt;
{{Scripting/Squirrel/Events/Player_Events}}&lt;br /&gt;
[[Category:Scripting/Squirrel/Events/Player_Events]]&lt;/div&gt;</summary>
		<author><name>Kennedyarz</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=OnClientScriptData&amp;diff=20022</id>
		<title>OnClientScriptData</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=OnClientScriptData&amp;diff=20022"/>
		<updated>2017-03-14T13:42:45Z</updated>

		<summary type="html">&lt;p&gt;Kennedyarz: Replaced content with &amp;quot;function onClientScriptData(player) { }&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;function onClientScriptData(player)&lt;br /&gt;
{&lt;br /&gt;
}&lt;/div&gt;</summary>
		<author><name>Kennedyarz</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=OnClientScriptData&amp;diff=20021</id>
		<title>OnClientScriptData</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=OnClientScriptData&amp;diff=20021"/>
		<updated>2017-03-14T13:42:01Z</updated>

		<summary type="html">&lt;p&gt;Kennedyarz: Created page with &amp;quot;function onClientScriptData(player)   Example:   ::Python &amp;lt;- GUIButton(VectorScreen(400,200), VectorScreen(200, 22), Colour(75,75,75), &amp;quot;Python (6) Cost(6)&amp;quot;, GUI_FLAG_BORDER |...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;function onClientScriptData(player)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Example:  &lt;br /&gt;
::Python &amp;lt;- GUIButton(VectorScreen(400,200), VectorScreen(200, 22), Colour(75,75,75), &amp;quot;Python (6) Cost(6)&amp;quot;, GUI_FLAG_BORDER | GUI_FLAG_VISIBLE);&lt;br /&gt;
&lt;br /&gt;
function GUI::ElementClick(element, mouseX, mouseY)&lt;br /&gt;
{&lt;br /&gt;
if (element == Python)&lt;br /&gt;
{&lt;br /&gt;
local Datos = Stream();&lt;br /&gt;
Datos.WriteString(&amp;quot;python&amp;quot;);&lt;br /&gt;
Server.SendData(Datos);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function onClientScriptData(player)&lt;br /&gt;
{&lt;br /&gt;
local string = Stream.ReadString();&lt;br /&gt;
if(string==&amp;quot;python&amp;quot;)&lt;br /&gt;
{&lt;br /&gt;
player.GiveWeapon(18,1000);&lt;br /&gt;
MessagePlayer(&amp;quot;You Have Now Python&amp;quot;,player)&lt;br /&gt;
}&lt;br /&gt;
}&lt;/div&gt;</summary>
		<author><name>Kennedyarz</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Functions/GUI::GetMouseEnabled&amp;diff=20011</id>
		<title>Scripting/Squirrel/Client Functions/GUI::GetMouseEnabled</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Functions/GUI::GetMouseEnabled&amp;diff=20011"/>
		<updated>2017-03-02T19:43:46Z</updated>

		<summary type="html">&lt;p&gt;Kennedyarz: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
----&lt;br /&gt;
::GUI.SetMouseEnabled(true);&lt;br /&gt;
::GUI.SetMouseEnabled(false);&lt;/div&gt;</summary>
		<author><name>Kennedyarz</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Functions/GUI::GetMouseEnabled&amp;diff=20010</id>
		<title>Scripting/Squirrel/Client Functions/GUI::GetMouseEnabled</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Functions/GUI::GetMouseEnabled&amp;diff=20010"/>
		<updated>2017-03-02T19:42:53Z</updated>

		<summary type="html">&lt;p&gt;Kennedyarz: Created page with &amp;quot; ---- ::GUI.SetMouseEnabled(true);   ::GUI.SetMouseEnabled(false);&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
----&lt;br /&gt;
::GUI.SetMouseEnabled(true);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::GUI.SetMouseEnabled(false);&lt;/div&gt;</summary>
		<author><name>Kennedyarz</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/CreateRadioStream&amp;diff=19522</id>
		<title>Scripting/Squirrel/Functions/CreateRadioStream</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/CreateRadioStream&amp;diff=19522"/>
		<updated>2017-01-22T13:48:25Z</updated>

		<summary type="html">&lt;p&gt;Kennedyarz: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function will add a online radio to vehicle&#039;s radio.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
1&lt;br /&gt;
&amp;lt;pre&amp;gt;CreateRadioStream( radioName, radioURL, CanSelect )&amp;lt;/pre&amp;gt;&lt;br /&gt;
2&lt;br /&gt;
&amp;lt;pre&amp;gt;CreateRadioStream( streamID, radioName, radioURL, CanSelect )&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
1&lt;br /&gt;
* &#039;&#039;string&#039;&#039; &#039;&#039;&#039;radioName&#039;&#039;&#039; - The radio name.&lt;br /&gt;
* &#039;&#039;string&#039;&#039; &#039;&#039;&#039;radioURL&#039;&#039;&#039; - The online radio URL.&lt;br /&gt;
* &#039;&#039;bool&#039;&#039; &#039;&#039;&#039;CanSelect&#039;&#039;&#039; - Show the radio stream on vehicle&#039;s radio list.&lt;br /&gt;
2&lt;br /&gt;
* &#039;&#039;int&#039;&#039; &#039;&#039;&#039;streamID&#039;&#039;&#039; - The radio id.&lt;br /&gt;
* &#039;&#039;string&#039;&#039; &#039;&#039;&#039;radioName&#039;&#039;&#039; - The radio name.&lt;br /&gt;
* &#039;&#039;string&#039;&#039; &#039;&#039;&#039;radioURL&#039;&#039;&#039; - The online radio URL.&lt;br /&gt;
* &#039;&#039;bool&#039;&#039; &#039;&#039;&#039;CanSelect&#039;&#039;&#039; - Show the radio stream on vehicle&#039;s radio list.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
The following is an example  for radio stream. Link not provided.&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
function onPlayerCommand( player, cmd, text );&lt;br /&gt;
{&lt;br /&gt;
	if ( cmd == &amp;quot;radio&amp;quot; )&lt;br /&gt;
	{&lt;br /&gt;
		player.Vehicle.Radio = CreateRadioStream( 15, &amp;quot;Vuelta&amp;quot;, &amp;quot;http://redradioypc.com:8048/stream&amp;quot;, true );&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
Call [[onPlayerCommand]] were used in this example. More info about them in the corresponding pages.&lt;br /&gt;
&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
&lt;br /&gt;
{{Scripting/Squirrel/Functions/Game Functions}}&lt;/div&gt;</summary>
		<author><name>Kennedyarz</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Functions/GUI::ScreenPosToWorld&amp;diff=19515</id>
		<title>Scripting/Squirrel/Client Functions/GUI::ScreenPosToWorld</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Functions/GUI::ScreenPosToWorld&amp;diff=19515"/>
		<updated>2016-12-30T22:52:18Z</updated>

		<summary type="html">&lt;p&gt;Kennedyarz: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[http://forum.vc-mp.org/?topic=2752.0 GUI::ScreenPosToWorld]&lt;/div&gt;</summary>
		<author><name>Kennedyarz</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Functions/GUI::ScreenPosToWorld&amp;diff=19514</id>
		<title>Scripting/Squirrel/Client Functions/GUI::ScreenPosToWorld</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Functions/GUI::ScreenPosToWorld&amp;diff=19514"/>
		<updated>2016-12-30T22:50:12Z</updated>

		<summary type="html">&lt;p&gt;Kennedyarz: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;VectorScreen.rawnewmember(&amp;quot;Round&amp;quot;, ::floor, null, true);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
VectorScreen.rawnewmember(&amp;quot;Width&amp;quot;, GUI.GetScreenSize().X, null, true);&lt;br /&gt;
VectorScreen.rawnewmember(&amp;quot;Height&amp;quot;, GUI.GetScreenSize().Y, null, true);&lt;br /&gt;
&lt;br /&gt;
VectorScreen.rawnewmember(&amp;quot;Relative&amp;quot;, function(x, y) {&lt;br /&gt;
    return VectorScreen(Round(x * Width), Round(y * Height));&lt;br /&gt;
}, null, true);&lt;/div&gt;</summary>
		<author><name>Kennedyarz</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Functions/GUI::ScreenPosToWorld&amp;diff=19513</id>
		<title>Scripting/Squirrel/Client Functions/GUI::ScreenPosToWorld</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Functions/GUI::ScreenPosToWorld&amp;diff=19513"/>
		<updated>2016-12-30T22:49:29Z</updated>

		<summary type="html">&lt;p&gt;Kennedyarz: VectorScreen.rawnewmember(&amp;quot;Round&amp;quot;, ::floor, null, true);  VectorScreen.rawnewmember(&amp;quot;Width&amp;quot;, GUI.GetScreenSize().X, null, true); VectorScreen.rawnewmember(&amp;quot;Height&amp;quot;, GUI.GetScreenSize().Y, null, true);  VectorScreen.rawnewmember(&amp;quot;Relative&amp;quot;, function(x, y)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;VectorScreen.rawnewmember(&amp;quot;Round&amp;quot;, ::floor, null, true);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
VectorScreen.rawnewmember(&amp;quot;Round&amp;quot;, ::floor, null, true);&lt;br /&gt;
&lt;br /&gt;
VectorScreen.rawnewmember(&amp;quot;Width&amp;quot;, GUI.GetScreenSize().X, null, true);&lt;br /&gt;
VectorScreen.rawnewmember(&amp;quot;Height&amp;quot;, GUI.GetScreenSize().Y, null, true);&lt;br /&gt;
&lt;br /&gt;
VectorScreen.rawnewmember(&amp;quot;Relative&amp;quot;, function(x, y) {&lt;br /&gt;
    return VectorScreen(Round(x * Width), Round(y * Height));&lt;br /&gt;
}, null, true);&lt;/div&gt;</summary>
		<author><name>Kennedyarz</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Functions/GUI::ScreenPosToWorld&amp;diff=19512</id>
		<title>Scripting/Squirrel/Client Functions/GUI::ScreenPosToWorld</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Functions/GUI::ScreenPosToWorld&amp;diff=19512"/>
		<updated>2016-12-30T22:48:29Z</updated>

		<summary type="html">&lt;p&gt;Kennedyarz: Created page with &amp;quot;VectorScreen.rawnewmember(&amp;quot;Round&amp;quot;, ::floor, null, true);  VectorScreen.rawnewmember(&amp;quot;Width&amp;quot;, GUI.GetScreenSize().X, null, true); VectorScreen.rawnewmember(&amp;quot;Height&amp;quot;, GUI.GetScr...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;VectorScreen.rawnewmember(&amp;quot;Round&amp;quot;, ::floor, null, true);&lt;br /&gt;
&lt;br /&gt;
VectorScreen.rawnewmember(&amp;quot;Width&amp;quot;, GUI.GetScreenSize().X, null, true);&lt;br /&gt;
VectorScreen.rawnewmember(&amp;quot;Height&amp;quot;, GUI.GetScreenSize().Y, null, true);&lt;br /&gt;
&lt;br /&gt;
VectorScreen.rawnewmember(&amp;quot;Relative&amp;quot;, function(x, y) {&lt;br /&gt;
    return VectorScreen(Round(x * Width), Round(y * Height));&lt;br /&gt;
}, null, true);&lt;/div&gt;</summary>
		<author><name>Kennedyarz</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=OnPlayerPart&amp;diff=19298</id>
		<title>OnPlayerPart</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=OnPlayerPart&amp;diff=19298"/>
		<updated>2016-04-29T13:08:36Z</updated>

		<summary type="html">&lt;p&gt;Kennedyarz: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is called when a player disconnects from the server.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;function onPlayerPart( player, reason )&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;player&#039;&#039;&#039; - The pointer of the player&lt;br /&gt;
* &#039;&#039;&#039;reason&#039;&#039;&#039; - Reason ID for the part.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
In this example the server will send a message when a player leaves the server.&lt;br /&gt;
&amp;lt;source lang=&amp;quot;squirrel&amp;quot;&amp;gt;&lt;br /&gt;
function onPlayerPart( player, reason )&lt;br /&gt;
{&lt;br /&gt;
    switch (reason)&lt;br /&gt;
    {&lt;br /&gt;
        case 1:&lt;br /&gt;
        {&lt;br /&gt;
            Message(&amp;quot;[#FF77AF][PART] [#ac8000] &amp;quot;+player.Name+&amp;quot; [#ffffff]quit.&amp;quot;);&lt;br /&gt;
			EchoMessage( ICOL_GREEN  + &amp;quot; [PART] &amp;quot;+player.Name+&amp;quot; Quito El Juego.&amp;quot;);&lt;br /&gt;
            break;&lt;br /&gt;
        }&lt;br /&gt;
        case 1:&lt;br /&gt;
        {&lt;br /&gt;
            Message(&amp;quot;[#FF77AF][PART] [#ac8000] &amp;quot;+player.Name+&amp;quot; [#ffffff]Disconnected&amp;quot;);&lt;br /&gt;
			EchoMessage( ICOL_GREEN  + &amp;quot;[PART] &amp;quot;+player.Name+&amp;quot; Desconecto El juego&amp;quot;);&lt;br /&gt;
            break;&lt;br /&gt;
        }&lt;br /&gt;
        case 0:&lt;br /&gt;
        {&lt;br /&gt;
            Message(&amp;quot;[#FF77AF][PART] [#ac8000] &amp;quot;+player.Name+ &amp;quot; [#ffffff]timeout.&amp;quot;);&lt;br /&gt;
			EchoMessage( ICOL_GREEN  + &amp;quot; [PART] &amp;quot;+player.Name+ &amp;quot; Internet Fuera.&amp;quot;);&lt;br /&gt;
            break;&lt;br /&gt;
        }&lt;br /&gt;
        case 2:&lt;br /&gt;
        {&lt;br /&gt;
            Message(&amp;quot;[#FF77AF][PART] [#ac8000] &amp;quot;+player.Name+ &amp;quot; [#ffffff]Kicked for banned.&amp;quot;);&lt;br /&gt;
			EchoMessage( ICOL_GREEN  + &amp;quot; [PART] &amp;quot;+player.Name+ &amp;quot; Kickeado Por Prohibicion.&amp;quot;);&lt;br /&gt;
            break;&lt;br /&gt;
        }&lt;br /&gt;
        case 2:&lt;br /&gt;
        {&lt;br /&gt;
            Message(&amp;quot;[#FF77AF][PART] [#ac8000] &amp;quot;+player.Name+&amp;quot; [#FFFFFF]Kicked.&amp;quot;);&lt;br /&gt;
			EchoMessage( ICOL_GREEN  + &amp;quot; [PART] &amp;quot;+player.Name+&amp;quot; Kickeado.&amp;quot;);&lt;br /&gt;
            break;&lt;br /&gt;
        }&lt;br /&gt;
		case 2:&lt;br /&gt;
        {&lt;br /&gt;
            Message(&amp;quot;[#FF77AF][PART] [#ac8000] &amp;quot;+player.Name+&amp;quot; [#FFFFFF]banned.&amp;quot;);&lt;br /&gt;
			EchoMessage( ICOL_GREEN  + &amp;quot; [PART] &amp;quot;+player.Name+&amp;quot; Prohibido.&amp;quot;);&lt;br /&gt;
            break;&lt;br /&gt;
        }&lt;br /&gt;
		case 3:&lt;br /&gt;
        {&lt;br /&gt;
            Message(&amp;quot;[#FF77AF][PART] [#ac8000] &amp;quot;+player.Name+&amp;quot; [#FFFFFF]Error Crash.&amp;quot;);&lt;br /&gt;
			EchoMessage( ICOL_GREEN  + &amp;quot; [PART] &amp;quot;+player.Name+&amp;quot; Error del VC.&amp;quot;);&lt;br /&gt;
            break;&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
by: kennedyarz&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
The functions [[Scripting/Squirrel/Functions/Message|Message]] and [[Scripting/Squirrel/Functions/Player.Name|Player.Name]] were used in this example. More info about them in corresponding pages.&lt;br /&gt;
&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
&lt;br /&gt;
{{Scripting/Squirrel/Events/Player_Events}}&lt;/div&gt;</summary>
		<author><name>Kennedyarz</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Player.SetWeapon&amp;diff=19144</id>
		<title>Scripting/Squirrel/Functions/Player.SetWeapon</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Player.SetWeapon&amp;diff=19144"/>
		<updated>2016-03-21T21:19:49Z</updated>

		<summary type="html">&lt;p&gt;Kennedyarz: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&amp;lt;pre&amp;gt;player.SetWeapon( weaponID, Ammo );&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
{&lt;br /&gt;
 if( cmd == &amp;quot;wep&amp;quot; || cmd == &amp;quot;we&amp;quot; )&lt;br /&gt;
{&lt;br /&gt;
 if( !text ) return MessagePlayer( &amp;quot;[#FF0000]/wep &amp;lt;wep 1&amp;gt; &amp;lt;wep 2&amp;gt; &amp;lt;...&amp;gt;&amp;quot;, player );&lt;br /&gt;
 else&lt;br /&gt;
 {&lt;br /&gt;
  local params = split( text, &amp;quot; &amp;quot; ); // Take out the space array&lt;br /&gt;
  local weapons; // Create a new null variable which will be holding the list of weapons player took.&lt;br /&gt;
  for( local i = 0; i &amp;lt;= params.len() - 1; i++ ) // since the &#039;len&#039; returns value from 1 and array&#039;s starting value point is 0, we will use len() - 1 otherwise we&#039;ll receive an error.&lt;br /&gt;
  {&lt;br /&gt;
   if( !IsNum( params[i] ) &amp;amp;&amp;amp; GetWeaponID( params[i] ) &amp;amp;&amp;amp; GetWeaponID( params[i] ) &amp;gt; 0 &amp;amp;&amp;amp; GetWeaponID( params[i] ) &amp;lt;= 32 ) // if Name was specified. &lt;br /&gt;
   {&lt;br /&gt;
    player.SetWeapon( GetWeaponID( params[i] ), 99999 ); // Get the weapon ID from its Name&lt;br /&gt;
    weapons = weapons + &amp;quot; &amp;quot; + GetWeaponName( GetWeaponID( params[i] ) ); // Add the weapon name to given weapon list&lt;br /&gt;
   }&lt;br /&gt;
   else if( IsNum( params[i] ) &amp;amp;&amp;amp; params[i].tointeger() &amp;lt; 33 &amp;amp;&amp;amp; params[i].tointeger() &amp;gt; 0 ) // if ID was specified&lt;br /&gt;
   {&lt;br /&gt;
    player.SetWeapon( params[i].tointeger(), 99999 ); // Then just give player that weapon&lt;br /&gt;
    weapons = weapons + &amp;quot; &amp;quot; + GetWeaponName( params[i].tointeger() ); // Get the weapon name from the ID and add it.&lt;br /&gt;
   }&lt;br /&gt;
   else MessagePlayer( &amp;quot;[#FF0000]Invalid Weapon Name/ID!&amp;quot;, player ); // if the invalid ID/Name was given&lt;br /&gt;
  }&lt;br /&gt;
  &lt;br /&gt;
  if( weapons != null ) MessagePlayer( &amp;quot;[#00FF00]Received weapons: [#FFFFFF]&amp;quot; + weapons );&lt;br /&gt;
  else MessagePlayer( &amp;quot;[#FF0000]No weapons specified&amp;quot;, player );&lt;br /&gt;
 }&lt;br /&gt;
{&lt;br /&gt;
&lt;br /&gt;
by: kennedyarz&lt;/div&gt;</summary>
		<author><name>Kennedyarz</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/SetUseClasses&amp;diff=19143</id>
		<title>Scripting/Squirrel/Functions/SetUseClasses</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/SetUseClasses&amp;diff=19143"/>
		<updated>2016-03-21T20:57:02Z</updated>

		<summary type="html">&lt;p&gt;Kennedyarz: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function will enable/disable use of classes&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;pre&amp;gt;SetUseClasses( bool );&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==  Arguments ==&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;bool&#039;&#039; - true or false&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
function onScriptLoad()&lt;br /&gt;
{&lt;br /&gt;
    AddClass( 1, RGB( 75, 215, 241 ) ,0, Vector( -378.79, -537.962, 17.2832 ), 140.020, 22, 999 ,17, 100, 21, 245 );&lt;br /&gt;
    AddClass( 1, RGB( 140,250,300 ) ,11, Vector( -378.79, -537.962, 17.2832 ), 140.020, 25, 999 ,18, 999, 19, 999 );&lt;br /&gt;
    AddClass( 1, RGB( 91, 21, 255 ) ,15, Vector( -378.79, -537.962, 17.2832 ), 140.020, 22, 999 ,17, 100, 21, 245 );&lt;br /&gt;
    AddClass( 2, RGB( 221, 81, 9 ) ,83, Vector( -378.79, -537.962, 17.2832 ), 140.020, 22, 999 ,17, 100, 21, 245 );&lt;br /&gt;
    AddClass( 2, RGB( 255, 51, 153 ) ,84, Vector( -378.79, -537.962, 17.2832 ), 140.020, 22, 999 ,17, 100, 21, 245 );&lt;br /&gt;
AddClass( 3, RGB( 241, 25, 123 ) ,122, Vector( -398.79, -517.962, 17.2832 ), 140.020, 20, 999 ,19, 100, 21, 245 );&lt;br /&gt;
AddClass( 4, RGB( 245, 56, 243 ) ,51, Vector( -398.79, -517.962, 17.2832 ), 140.020, 20, 999 ,19, 100, 21, 245 );&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function onPlayerRequestClass( player, classID, team, skin )&lt;br /&gt;
{&lt;br /&gt;
switch( skin )&lt;br /&gt;
     {&lt;br /&gt;
     case 0:&lt;br /&gt;
     {&lt;br /&gt;
  &lt;br /&gt;
  Announce( &amp;quot;Tommy Vercetti&amp;quot;, player, 6 );&lt;br /&gt;
     }&lt;br /&gt;
     break;&lt;br /&gt;
     case 11:&lt;br /&gt;
     {&lt;br /&gt;
  &lt;br /&gt;
  Announce( &amp;quot;Civilian&amp;quot;, player, 6 );&lt;br /&gt;
     }&lt;br /&gt;
     break;&lt;br /&gt;
     case 15:&lt;br /&gt;
     {&lt;br /&gt;
  &lt;br /&gt;
  Announce( &amp;quot;DrugDealer&amp;quot;, player, 6 );&lt;br /&gt;
     }&lt;br /&gt;
     break;&lt;br /&gt;
     case 51:&lt;br /&gt;
     {&lt;br /&gt;
  &lt;br /&gt;
  Announce( &amp;quot;Punk&amp;quot;, player, 6 );&lt;br /&gt;
     }&lt;br /&gt;
     break;&lt;br /&gt;
     case 122:&lt;br /&gt;
     {&lt;br /&gt;
  &lt;br /&gt;
  Announce( &amp;quot;Robot&amp;quot;, player, 6 );&lt;br /&gt;
     }&lt;br /&gt;
     break;&lt;br /&gt;
     case 83:&lt;br /&gt;
     {&lt;br /&gt;
  &lt;br /&gt;
  Announce( &amp;quot;Team Cuban&amp;quot;, player, 6 );&lt;br /&gt;
     }&lt;br /&gt;
     break;&lt;br /&gt;
     case 84:&lt;br /&gt;
     {&lt;br /&gt;
  &lt;br /&gt;
  Announce( &amp;quot;Team Cuban&amp;quot;, player, 6 );&lt;br /&gt;
     }&lt;br /&gt;
     break;&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kennedyarz</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Talk:Scripting/Squirrel/Functions/UsingClasses&amp;diff=19142</id>
		<title>Talk:Scripting/Squirrel/Functions/UsingClasses</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Talk:Scripting/Squirrel/Functions/UsingClasses&amp;diff=19142"/>
		<updated>2016-03-21T20:53:43Z</updated>

		<summary type="html">&lt;p&gt;Kennedyarz: /* Funcion OnPlayerClass */ new section&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Funcion OnPlayerClass ==&lt;br /&gt;
&lt;br /&gt;
function onScriptLoad()&lt;br /&gt;
{&lt;br /&gt;
    AddClass( 1, RGB( 75, 215, 241 ) ,0, Vector( -378.79, -537.962, 17.2832 ), 140.020, 22, 999 ,17, 100, 21, 245 );&lt;br /&gt;
    AddClass( 2, RGB( 140,250,300 ) ,11, Vector( -378.79, -537.962, 17.2832 ), 140.020, 25, 999 ,18, 999, 19, 999 );&lt;br /&gt;
    AddClass( 3, RGB( 91, 21, 255 ) ,15, Vector( -378.79, -537.962, 17.2832 ), 140.020, 22, 999 ,17, 100, 21, 245 );&lt;br /&gt;
    AddClass( 3, RGB( 221, 81, 9 ) ,83, Vector( -378.79, -537.962, 17.2832 ), 140.020, 22, 999 ,17, 100, 21, 245 );&lt;br /&gt;
    AddClass( 4, RGB( 255, 51, 153 ) ,84, Vector( -378.79, -537.962, 17.2832 ), 140.020, 22, 999 ,17, 100, 21, 245 );&lt;br /&gt;
AddClass( 5, RGB( 241, 25, 123 ) ,122, Vector( -398.79, -517.962, 17.2832 ), 140.020, 20, 999 ,19, 100, 21, 245 );&lt;br /&gt;
AddClass( 6, RGB( 245, 56, 243 ) ,51, Vector( -398.79, -517.962, 17.2832 ), 140.020, 20, 999 ,19, 100, 21, 245 );&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
function onPlayerRequestClass( player, classID, team, skin )&lt;br /&gt;
{&lt;br /&gt;
switch( skin )&lt;br /&gt;
     {&lt;br /&gt;
     case 0:&lt;br /&gt;
     {&lt;br /&gt;
  &lt;br /&gt;
  Announce( &amp;quot;Tommy Vercetti&amp;quot;, player, 6 );&lt;br /&gt;
     }&lt;br /&gt;
     break;&lt;br /&gt;
     case 11:&lt;br /&gt;
     {&lt;br /&gt;
  &lt;br /&gt;
  Announce( &amp;quot;Civilian&amp;quot;, player, 6 );&lt;br /&gt;
     }&lt;br /&gt;
     break;&lt;br /&gt;
     case 15:&lt;br /&gt;
     {&lt;br /&gt;
  &lt;br /&gt;
  Announce( &amp;quot;DrugDealer&amp;quot;, player, 6 );&lt;br /&gt;
     }&lt;br /&gt;
     break;&lt;br /&gt;
     case 51:&lt;br /&gt;
     {&lt;br /&gt;
  &lt;br /&gt;
  Announce( &amp;quot;Punk&amp;quot;, player, 6 );&lt;br /&gt;
     }&lt;br /&gt;
     break;&lt;br /&gt;
     case 122:&lt;br /&gt;
     {&lt;br /&gt;
  &lt;br /&gt;
  Announce( &amp;quot;Robot&amp;quot;, player, 6 );&lt;br /&gt;
     }&lt;br /&gt;
     break;&lt;br /&gt;
     case 83:&lt;br /&gt;
     {&lt;br /&gt;
  &lt;br /&gt;
  Announce( &amp;quot;Cubano&amp;quot;, player, 6 );&lt;br /&gt;
     }&lt;br /&gt;
     break;&lt;br /&gt;
     case 84:&lt;br /&gt;
     {&lt;br /&gt;
  &lt;br /&gt;
  Announce( &amp;quot;haitino&amp;quot;, player, 6 );&lt;br /&gt;
     }&lt;br /&gt;
     break;&lt;br /&gt;
  }&lt;br /&gt;
}&lt;/div&gt;</summary>
		<author><name>Kennedyarz</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/KickPlayer&amp;diff=19141</id>
		<title>Scripting/Squirrel/Functions/KickPlayer</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/KickPlayer&amp;diff=19141"/>
		<updated>2016-03-21T20:46:50Z</updated>

		<summary type="html">&lt;p&gt;Kennedyarz: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function kicks the player out of the server, i.e, disconnects the client from the server.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&amp;lt;pre&amp;gt;KickPlayer( player )&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
* &#039;&#039;CPlayer&#039;&#039; &#039;&#039;&#039;player&#039;&#039;&#039; - the player instance, or, the one you want to kick.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
function onPlayerCommand( player, cmd, text );&lt;br /&gt;
{&lt;br /&gt;
if ( cmd == &amp;quot;kick&amp;quot; )&lt;br /&gt;
    {&lt;br /&gt;
        if ( player.Name == &amp;quot;kennedyarz&amp;quot; )&lt;br /&gt;
        {&lt;br /&gt;
            if ( text )&lt;br /&gt;
            {&lt;br /&gt;
           local plr = FindPlayer( text );&lt;br /&gt;
               if ( plr )&lt;br /&gt;
               {&lt;br /&gt;
               KickPlayer( plr );&lt;br /&gt;
               }&lt;br /&gt;
               else MessagePlayer( &amp;quot;[#ffffff]Invalid Player &amp;quot; , player );&lt;br /&gt;
            }&lt;br /&gt;
            else MessagePlayer( &amp;quot;[#ffffff]Type /kick &amp;lt;player&amp;gt; &amp;quot; , player );&lt;br /&gt;
        }&lt;br /&gt;
        else MessagePlayer( &amp;quot;[#F02F0F] Your are not admin. &amp;quot; , player )&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
by: kennedyarz&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
Call [[Scripting/Squirrel/Events/Player/onPlayerCommand|onPlayerCommand]] were used in this example. More info about them in the corresponding pages.&lt;/div&gt;</summary>
		<author><name>Kennedyarz</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/KickPlayer&amp;diff=19140</id>
		<title>Scripting/Squirrel/Functions/KickPlayer</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/KickPlayer&amp;diff=19140"/>
		<updated>2016-03-21T20:46:13Z</updated>

		<summary type="html">&lt;p&gt;Kennedyarz: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function kicks the player out of the server, i.e, disconnects the client from the server.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&amp;lt;pre&amp;gt;KickPlayer( player )&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
* &#039;&#039;CPlayer&#039;&#039; &#039;&#039;&#039;player&#039;&#039;&#039; - the player instance, or, the one you want to kick.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
function onPlayerCommand( player, cmd, text );&lt;br /&gt;
function onPlayerCommand( player, cmd, text )&lt;br /&gt;
{&lt;br /&gt;
if ( cmd == &amp;quot;kick&amp;quot; )&lt;br /&gt;
    {&lt;br /&gt;
        if ( player.Name == &amp;quot;kennedyarz&amp;quot; )&lt;br /&gt;
        {&lt;br /&gt;
            if ( text )&lt;br /&gt;
            {&lt;br /&gt;
           local plr = FindPlayer( text );&lt;br /&gt;
               if ( plr )&lt;br /&gt;
               {&lt;br /&gt;
               KickPlayer( plr );&lt;br /&gt;
               }&lt;br /&gt;
               else MessagePlayer( &amp;quot;[#ffffff]Invalid Player &amp;quot; , player );&lt;br /&gt;
            }&lt;br /&gt;
            else MessagePlayer( &amp;quot;[#ffffff]Type /kick &amp;lt;player&amp;gt; &amp;quot; , player );&lt;br /&gt;
        }&lt;br /&gt;
        else MessagePlayer( &amp;quot;[#F02F0F] Your are not admin. &amp;quot; , player )&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
by: kennedyarz&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
Call [[Scripting/Squirrel/Events/Player/onPlayerCommand|onPlayerCommand]] were used in this example. More info about them in the corresponding pages.&lt;/div&gt;</summary>
		<author><name>Kennedyarz</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/BanIP&amp;diff=19139</id>
		<title>Scripting/Squirrel/Functions/BanIP</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/BanIP&amp;diff=19139"/>
		<updated>2016-03-21T20:39:07Z</updated>

		<summary type="html">&lt;p&gt;Kennedyarz: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function will ban an IP from the server.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;BanIP( ip )&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;string&#039;&#039; &#039;&#039;&#039;ip&#039;&#039;&#039; - This is the IP address to be banned&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
function onPlayerCommand( player, cmd, text )&lt;br /&gt;
{&lt;br /&gt;
 if ( cmd == &amp;quot;ban&amp;quot; )&lt;br /&gt;
        {&lt;br /&gt;
      if ( !text ) MessagePlayer( &amp;quot;[Syntax] - /&amp;quot; + cmd + &amp;quot; &amp;lt;Nick/ID&amp;gt; &amp;lt;Reason&amp;gt;&amp;quot;, player );&lt;br /&gt;
else {&lt;br /&gt;
  local plr = FindPlayer( GetTok( text, &amp;quot; &amp;quot;, 1 ) );&lt;br /&gt;
     if ( !plr ) MessagePlayer( &amp;quot;[Error] - Unknown Player..&amp;quot;, player );&lt;br /&gt;
     else {&lt;br /&gt;
            local reason = GetTok( text, &amp;quot; &amp;quot;, 2 NumTok( text, &amp;quot; &amp;quot; ) );&lt;br /&gt;
            local ip = plr.IP;&lt;br /&gt;
            local sub = split( ip, &amp;quot;.&amp;quot; );&lt;br /&gt;
             if ( reason == null ) reason = &amp;quot;None&amp;quot;;&lt;br /&gt;
            ( &amp;quot;INSERT INTO SubBans ( Name, IP, Admin, Reason ) VALUES ( &#039;&amp;quot; + plr.Name + &amp;quot;&#039;, &#039;&amp;quot; + sub[0].tofloat() + &amp;quot;.&amp;quot; + sub[1].tofloat() + &amp;quot;&#039;, &#039;&amp;quot; + player.Name + &amp;quot;&#039;, &#039;&amp;quot; + reason + &amp;quot;&#039; )&amp;quot; );&lt;br /&gt;
            Message( &amp;quot;[#EE82EE]** Admin &amp;quot; + player.Name + &amp;quot; Banned &amp;quot; + plr.Name + &amp;quot; Reason: &amp;quot; + reason );&lt;br /&gt;
     BanPlayer( plr );&lt;br /&gt;
     }&lt;br /&gt;
     }&lt;br /&gt;
  }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
&lt;br /&gt;
{{Scripting/Squirrel/Functions/Administrative_Functions}}&lt;/div&gt;</summary>
		<author><name>Kennedyarz</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/BanIP&amp;diff=19138</id>
		<title>Scripting/Squirrel/Functions/BanIP</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/BanIP&amp;diff=19138"/>
		<updated>2016-03-21T20:38:01Z</updated>

		<summary type="html">&lt;p&gt;Kennedyarz: by kennedyarz&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function will ban an IP from the server.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;BanIP( ip )&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;string&#039;&#039; &#039;&#039;&#039;ip&#039;&#039;&#039; - This is the IP address to be banned&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
function onPlayerCommand( player, cmd, text )&lt;br /&gt;
{&lt;br /&gt;
    if ( cmd == &amp;quot;banip&amp;quot; )&lt;br /&gt;
    {&lt;br /&gt;
        BanIP( text );&lt;br /&gt;
        MessagePlayer( &amp;quot;You have banned IP: &amp;quot; + text, player );&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
&lt;br /&gt;
{&lt;br /&gt;
 if ( cmd == &amp;quot;ban&amp;quot; )&lt;br /&gt;
        {&lt;br /&gt;
      if ( !text ) MessagePlayer( &amp;quot;[Syntax] - /&amp;quot; + cmd + &amp;quot; &amp;lt;Nick/ID&amp;gt; &amp;lt;Reason&amp;gt;&amp;quot;, player );&lt;br /&gt;
else {&lt;br /&gt;
  local plr = FindPlayer( GetTok( text, &amp;quot; &amp;quot;, 1 ) );&lt;br /&gt;
     if ( !plr ) MessagePlayer( &amp;quot;[Error] - Unknown Player..&amp;quot;, player );&lt;br /&gt;
     else {&lt;br /&gt;
            local reason = GetTok( text, &amp;quot; &amp;quot;, 2 NumTok( text, &amp;quot; &amp;quot; ) );&lt;br /&gt;
            local ip = plr.IP;&lt;br /&gt;
            local sub = split( ip, &amp;quot;.&amp;quot; );&lt;br /&gt;
             if ( reason == null ) reason = &amp;quot;None&amp;quot;;&lt;br /&gt;
            ( &amp;quot;INSERT INTO SubBans ( Name, IP, Admin, Reason ) VALUES ( &#039;&amp;quot; + plr.Name + &amp;quot;&#039;, &#039;&amp;quot; + sub[0].tofloat() + &amp;quot;.&amp;quot; + sub[1].tofloat() + &amp;quot;&#039;, &#039;&amp;quot; + player.Name + &amp;quot;&#039;, &#039;&amp;quot; + reason + &amp;quot;&#039; )&amp;quot; );&lt;br /&gt;
            Message( &amp;quot;[#EE82EE]** Admin &amp;quot; + player.Name + &amp;quot; Banned &amp;quot; + plr.Name + &amp;quot; Reason: &amp;quot; + reason );&lt;br /&gt;
     BanPlayer( plr );&lt;br /&gt;
     }&lt;br /&gt;
     }&lt;br /&gt;
  }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
&lt;br /&gt;
{{Scripting/Squirrel/Functions/Administrative_Functions}}&lt;/div&gt;</summary>
		<author><name>Kennedyarz</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Talk:Scripting/Squirrel/Functions/BanIP&amp;diff=19137</id>
		<title>Talk:Scripting/Squirrel/Functions/BanIP</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Talk:Scripting/Squirrel/Functions/BanIP&amp;diff=19137"/>
		<updated>2016-03-21T20:36:25Z</updated>

		<summary type="html">&lt;p&gt;Kennedyarz: /* Funcion Ban ip */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Funcion Ban ip ==&lt;br /&gt;
&lt;br /&gt;
{&lt;br /&gt;
 if ( cmd == &amp;quot;ban&amp;quot; )&lt;br /&gt;
        {&lt;br /&gt;
      if ( !text ) MessagePlayer( &amp;quot;[Syntax] - /&amp;quot; + cmd + &amp;quot; &amp;lt;Nick/ID&amp;gt; &amp;lt;Reason&amp;gt;&amp;quot;, player );&lt;br /&gt;
else {&lt;br /&gt;
  local plr = FindPlayer( GetTok( text, &amp;quot; &amp;quot;, 1 ) );&lt;br /&gt;
     if ( !plr ) MessagePlayer( &amp;quot;[Error] - Unknown Player..&amp;quot;, player );&lt;br /&gt;
     else {&lt;br /&gt;
            local reason = GetTok( text, &amp;quot; &amp;quot;, 2 NumTok( text, &amp;quot; &amp;quot; ) );&lt;br /&gt;
            local ip = plr.IP;&lt;br /&gt;
            local sub = split( ip, &amp;quot;.&amp;quot; );&lt;br /&gt;
             if ( reason == null ) reason = &amp;quot;None&amp;quot;;&lt;br /&gt;
            ( &amp;quot;INSERT INTO SubBans ( Name, IP, Admin, Reason ) VALUES ( &#039;&amp;quot; + plr.Name + &amp;quot;&#039;, &#039;&amp;quot; + sub[0].tofloat() + &amp;quot;.&amp;quot; + sub[1].tofloat() + &amp;quot;&#039;, &#039;&amp;quot; + player.Name + &amp;quot;&#039;, &#039;&amp;quot; + reason + &amp;quot;&#039; )&amp;quot; );&lt;br /&gt;
            Message( &amp;quot;[#EE82EE]** Admin &amp;quot; + player.Name + &amp;quot; Banned &amp;quot; + plr.Name + &amp;quot; Reason: &amp;quot; + reason );&lt;br /&gt;
     BanPlayer( plr );&lt;br /&gt;
     }&lt;br /&gt;
     }&lt;br /&gt;
  }&lt;br /&gt;
 }&lt;/div&gt;</summary>
		<author><name>Kennedyarz</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Talk:Scripting/Squirrel/Functions/BanIP&amp;diff=19136</id>
		<title>Talk:Scripting/Squirrel/Functions/BanIP</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Talk:Scripting/Squirrel/Functions/BanIP&amp;diff=19136"/>
		<updated>2016-03-21T20:35:45Z</updated>

		<summary type="html">&lt;p&gt;Kennedyarz: /* Funcion Ban ip */ new section&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Funcion Ban ip ==&lt;br /&gt;
&lt;br /&gt;
{&lt;br /&gt;
 if ( cmd == &amp;quot;ban&amp;quot; )&lt;br /&gt;
        {&lt;br /&gt;
      if ( !text ) MessagePlayer( &amp;quot;[Syntax] - /&amp;quot; + cmd + &amp;quot; &amp;lt;Nick/ID&amp;gt; &amp;lt;Reason&amp;gt;&amp;quot;, player );&lt;br /&gt;
else {&lt;br /&gt;
  local plr = FindPlayer( GetTok( text, &amp;quot; &amp;quot;, 1 ) );&lt;br /&gt;
     if ( !plr ) MessagePlayer( &amp;quot;[Error] - Unknown Player..&amp;quot;, player );&lt;br /&gt;
     else {&lt;br /&gt;
            local reason = GetTok( text, &amp;quot; &amp;quot;, 2 NumTok( text, &amp;quot; &amp;quot; ) );&lt;br /&gt;
            local ip = plr.IP;&lt;br /&gt;
            local sub = split( ip, &amp;quot;.&amp;quot; );&lt;br /&gt;
             if ( reason == null ) reason = &amp;quot;None&amp;quot;;&lt;br /&gt;
            ( &amp;quot;INSERT INTO SubBans ( Name, IP, Admin, Reason ) VALUES ( &#039;&amp;quot; + plr.Name + &amp;quot;&#039;, &#039;&amp;quot; + sub[0].tofloat() + &amp;quot;.&amp;quot; + sub[1].tofloat() + &amp;quot;&#039;, &#039;&amp;quot; + player.Name + &amp;quot;&#039;, &#039;&amp;quot; + reason + &amp;quot;&#039; )&amp;quot; );&lt;br /&gt;
            Message( &amp;quot;[#EE82EE]** Admin &amp;quot; + player.Name + &amp;quot; Banned &amp;quot; + plr.Name + &amp;quot; Reason: &amp;quot; + reason );&lt;br /&gt;
     BanPlayer( plr );&lt;br /&gt;
     }&lt;br /&gt;
     }&lt;br /&gt;
  }&lt;br /&gt;
 }&lt;/div&gt;</summary>
		<author><name>Kennedyarz</name></author>
	</entry>
</feed>