<?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=Human.</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=Human."/>
	<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/wiki/Special:Contributions/Human."/>
	<updated>2026-04-28T23:47:38Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Functions/System::GetTimestamp&amp;diff=20146</id>
		<title>Scripting/Squirrel/Client Functions/System::GetTimestamp</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Functions/System::GetTimestamp&amp;diff=20146"/>
		<updated>2018-10-02T14:34:06Z</updated>

		<summary type="html">&lt;p&gt;Human.: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function returns the number of seconds since the UNIX epoch; equivalent to Squirrel&#039;s time function: [http://squirrel-lang.org/squirreldoc/stdlib/stdsystemlib.html#time]&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&amp;lt;pre&amp;gt;System.GetTimestamp()&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Return type ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;integer&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
/* Player::PlayerDeath is triggered whenever someone die, we are going to use this for the sake of example */&lt;br /&gt;
function Player::PlayerDeath( player ) &lt;br /&gt;
{&lt;br /&gt;
      /* Check whether the player that just died is local player/self by comparing ID */&lt;br /&gt;
      if ( player.ID == World.FindLocalPlayer( ).ID )&lt;br /&gt;
      {&lt;br /&gt;
            /* Get epoch time */&lt;br /&gt;
            local time = System.GetTimestamp( );&lt;br /&gt;
&lt;br /&gt;
            /* Show the epoch time of death to local player/self */ &lt;br /&gt;
            Console.Print( player.Name +&amp;quot; died at &amp;quot;+ time );&lt;br /&gt;
      }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
[[Scripting/Squirrel/Client_Events/Player::PlayerDeath|Player::PlayerDeath]], [[Scripting/Squirrel/Client_Functions/World::FindLocalPlayer|World::FindLocalPlayer]] and [[Scripting/Squirrel/Client_Functions/Console::Print|Console::Print]] &lt;br /&gt;
were used in this example, more info about them in the corresponding pages.&lt;/div&gt;</summary>
		<author><name>Human.</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Functions/GUI::GetMousePos&amp;diff=20145</id>
		<title>Scripting/Squirrel/Client Functions/GUI::GetMousePos</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Functions/GUI::GetMousePos&amp;diff=20145"/>
		<updated>2018-10-02T14:27:53Z</updated>

		<summary type="html">&lt;p&gt;Human.: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function returns mouse position of the player.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&amp;lt;pre&amp;gt;GUI.GetMousePos()&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Return type ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VectorScreen&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
/* Player::PlayerDeath is triggered whenever someone die, we are going to use this for the sake of example */&lt;br /&gt;
function Player::PlayerDeath( player ) &lt;br /&gt;
{&lt;br /&gt;
	/* Check whether the player that just died is local player/self by comparing ID */&lt;br /&gt;
	if ( player.ID == World.FindLocalPlayer( ).ID )&lt;br /&gt;
	{&lt;br /&gt;
		/* Get player&#039;s mouse position */&lt;br /&gt;
		local mousePos = GUI.GetMousePos( );&lt;br /&gt;
&lt;br /&gt;
		if ( mousePos ) {&lt;br /&gt;
		    /* Send message about mouse position to local player/self */&lt;br /&gt;
			Console.Print( &amp;quot;Mouse position - X: &amp;quot;+ mousePos.X +&amp;quot;, Y: &amp;quot;+ mousePos.Y );&lt;br /&gt;
		}&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
[[Scripting/Squirrel/Client_Events/Player::PlayerDeath|Player::PlayerDeath]], [[Scripting/Squirrel/Client_Functions/World::FindLocalPlayer|World::FindLocalPlayer]] and [[Scripting/Squirrel/Client_Functions/Console::Print|Console::Print]] &lt;br /&gt;
were used in this example, more info about them in the corresponding pages.&lt;/div&gt;</summary>
		<author><name>Human.</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Functions/System::GetDate&amp;diff=20144</id>
		<title>Scripting/Squirrel/Client Functions/System::GetDate</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Functions/System::GetDate&amp;diff=20144"/>
		<updated>2018-10-02T14:27:13Z</updated>

		<summary type="html">&lt;p&gt;Human.: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function returns a table containing a date/time splitted as in the table under &#039;&#039;&#039;Return type&#039;&#039;&#039;. It follows same syntax as the Squirrel standard library&#039;s date function: [http://squirrel-lang.org/squirreldoc/stdlib/stdsystemlib.html#date]&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&amp;lt;pre&amp;gt;System.GetDate([time], [format]])&amp;lt;/pre&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;time&#039;&#039;&#039; and &#039;&#039;&#039;format&#039;&#039;&#039; are optional.&lt;br /&gt;
&lt;br /&gt;
== Return type ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;table&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;div&amp;gt; &lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Name&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|sec&lt;br /&gt;
|Seconds after minute (0 - 59)&lt;br /&gt;
|-&lt;br /&gt;
|min&lt;br /&gt;
|Minutes after hour (0 - 59)&lt;br /&gt;
|-&lt;br /&gt;
|hour&lt;br /&gt;
|Hours since midnight (0 - 23)&lt;br /&gt;
|-&lt;br /&gt;
|day&lt;br /&gt;
|Day of month (1 - 31)&lt;br /&gt;
|-&lt;br /&gt;
|month&lt;br /&gt;
|Month (0 - 11; January = 0)&lt;br /&gt;
|-&lt;br /&gt;
|year&lt;br /&gt;
|Year (current year)&lt;br /&gt;
|-&lt;br /&gt;
|wday&lt;br /&gt;
|Day of week (0 - 6; Sunday = 0)&lt;br /&gt;
|-&lt;br /&gt;
|yday&lt;br /&gt;
|Day of year (0 - 365; January 1 = 0)&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
/* Player::PlayerDeath is triggered whenever someone die, we are going to use this for the sake of example */&lt;br /&gt;
function Player::PlayerDeath( player ) &lt;br /&gt;
{&lt;br /&gt;
      /* Check whether the player that just died is local player/self by comparing ID */&lt;br /&gt;
      if ( player.ID == World.FindLocalPlayer().ID )&lt;br /&gt;
      {&lt;br /&gt;
            local now = System.GetDate(); &lt;br /&gt;
&lt;br /&gt;
            // hour:minute:sec&lt;br /&gt;
            local ftTime = format( &amp;quot;%i:%i:%i&amp;quot;, now.hour, now.min, now.sec ); &lt;br /&gt;
&lt;br /&gt;
            /* Send message about the time of death to local player/self */ &lt;br /&gt;
            Console.Print( player.Name +&amp;quot; died at &amp;quot;+ ftTime );&lt;br /&gt;
      }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
[[Scripting/Squirrel/Client_Events/Player::PlayerDeath|Player::PlayerDeath]], [[Scripting/Squirrel/Client_Functions/World::FindLocalPlayer|World::FindLocalPlayer]] and [[Scripting/Squirrel/Client_Functions/Console::Print|Console::Print]] &lt;br /&gt;
were used in this example, more info about them in the corresponding pages.&lt;/div&gt;</summary>
		<author><name>Human.</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Functions/GUI::GetMousePos&amp;diff=20143</id>
		<title>Scripting/Squirrel/Client Functions/GUI::GetMousePos</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Functions/GUI::GetMousePos&amp;diff=20143"/>
		<updated>2018-10-02T14:26:27Z</updated>

		<summary type="html">&lt;p&gt;Human.: Created page with &amp;quot;This function returns mouse position of the player.  == Syntax == &amp;lt;pre&amp;gt;GUI.GetMousePos()&amp;lt;/pre&amp;gt;  == Return type ==  &amp;#039;&amp;#039;&amp;#039;VectorScreen&amp;#039;&amp;#039;&amp;#039;  == Example == &amp;lt;source lang=squirrel&amp;gt; /*...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function returns mouse position of the player.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&amp;lt;pre&amp;gt;GUI.GetMousePos()&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Return type ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;VectorScreen&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
/* Player::PlayerDeath is triggered whenever someone die, we are going to use this for the sake of example */&lt;br /&gt;
function Player::PlayerDeath( player ) &lt;br /&gt;
{&lt;br /&gt;
	/* Check whether the player that just died is local player/self by comparing ID */&lt;br /&gt;
	if ( player.ID == World.FindLocalPlayer( ).ID )&lt;br /&gt;
	{&lt;br /&gt;
		/* Get player&#039;s mouse position */&lt;br /&gt;
		local mousePos = GUI.GetMousePos( );&lt;br /&gt;
&lt;br /&gt;
		if ( mousePos ) {&lt;br /&gt;
		    /* Send message to player about his mouse position */&lt;br /&gt;
			Console.Print( &amp;quot;Mouse position - X: &amp;quot;+ mousePos.X +&amp;quot;, Y: &amp;quot;+ mousePos.Y );&lt;br /&gt;
		}&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
[[Scripting/Squirrel/Client_Events/Player::PlayerDeath|Player::PlayerDeath]], [[Scripting/Squirrel/Client_Functions/World::FindLocalPlayer|World::FindLocalPlayer]] and [[Scripting/Squirrel/Client_Functions/Console::Print|Console::Print]] &lt;br /&gt;
were used in this example, more info about them in the corresponding pages.&lt;/div&gt;</summary>
		<author><name>Human.</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Player.GetAmmoAtSlot&amp;diff=20142</id>
		<title>Scripting/Squirrel/Functions/Player.GetAmmoAtSlot</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Player.GetAmmoAtSlot&amp;diff=20142"/>
		<updated>2018-10-02T14:09:57Z</updated>

		<summary type="html">&lt;p&gt;Human.: Created page with &amp;quot;This function is used to get the ammo of the weapon that player is carrying at the entered slot ID.  == Syntax ==  &amp;lt;pre&amp;gt;Player.GetAmmoAtSlot( slot );&amp;lt;/pre&amp;gt;  == Arguments ==  *...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function is used to get the ammo of the weapon that player is carrying at the entered slot ID.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Player.GetAmmoAtSlot( slot );&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;int&#039;&#039; &#039;&#039;&#039;slot&#039;&#039;&#039; - The weapon slot ID.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
/* Comments about what each slot stores.&lt;br /&gt;
Slot 0: Hats, unarmed, Brass, etc...&lt;br /&gt;
Slot 1: Katana, chainsaw, hammer, etc...&lt;br /&gt;
Slot 2: Grenades, molotov, tear gas, etc...&lt;br /&gt;
Slot 3: Colt45, Python, etc...&lt;br /&gt;
Slot 4: Stubby, Spaz, Shotgun, etc...&lt;br /&gt;
Slot 5: Uzi, MP5, Ingram, etc...&lt;br /&gt;
Slot 6: M4, Ruger, etc...&lt;br /&gt;
Slot 7: M60, RPG, Minigun, etc...&lt;br /&gt;
Slot 8: Laser sniper, sniper, etc...&lt;br /&gt;
*/&lt;br /&gt;
&lt;br /&gt;
function onPlayerCommand( player, cmd, text )&lt;br /&gt;
{&lt;br /&gt;
	if ( cmd == &amp;quot;myweps&amp;quot; || cmd == &amp;quot;mywep&amp;quot; )&lt;br /&gt;
	{&lt;br /&gt;
		local wepID, wepAmmo;&lt;br /&gt;
&lt;br /&gt;
		for (local i = 0; i &amp;lt;= 8; i++)// Loops from slot 0 to 8.&lt;br /&gt;
		{&lt;br /&gt;
			wepID = player.GetWeaponAtSlot(i); // Will return the weapon&#039;s ID&lt;br /&gt;
			wepAmmo = player.GetAmmoAtSlot(i); // Will return the weapon&#039;s ammo&lt;br /&gt;
&lt;br /&gt;
			// Displays the weapon&#039;s name and ammo of each slot( 0 - 8 )&lt;br /&gt;
			MessagePlayer( &amp;quot;Weapon at slot &amp;quot; + i + &amp;quot;: &amp;quot;+ GetWeaponName(wepID) +&amp;quot; (ammo: &amp;quot;+ wepAmmo +&amp;quot;)&amp;quot;, player ); &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;
[[onPlayerCommand]], [[Scripting/Squirrel/Functions/GetWeaponName|GetWeaponName]], [[Scripting/Squirrel/Functions/MessagePlayer|MessagePlayer]] and [[Scripting/Squirrel/Functions/Player.GetWeaponAtSlot|Player.GetWeaponAtSlot]] 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/Player_Functions}}&lt;br /&gt;
&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
&lt;br /&gt;
{{Scripting/Squirrel/Functions/Player_Functions}}&lt;br /&gt;
[[Category:Scripting/Squirrel/Functions/Player_Functions]]&lt;/div&gt;</summary>
		<author><name>Human.</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Functions/System::GetDate&amp;diff=20141</id>
		<title>Scripting/Squirrel/Client Functions/System::GetDate</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Functions/System::GetDate&amp;diff=20141"/>
		<updated>2018-09-28T16:58:44Z</updated>

		<summary type="html">&lt;p&gt;Human.: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function returns a table containing a date/time splitted as in the table under &#039;&#039;&#039;Return type&#039;&#039;&#039;. It follows same syntax as the Squirrel standard library&#039;s date function: [http://squirrel-lang.org/squirreldoc/stdlib/stdsystemlib.html#date]&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&amp;lt;pre&amp;gt;System.GetDate([time], [format]])&amp;lt;/pre&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;time&#039;&#039;&#039; and &#039;&#039;&#039;format&#039;&#039;&#039; are optional.&lt;br /&gt;
&lt;br /&gt;
== Return type ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;table&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;div&amp;gt; &lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Name&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|sec&lt;br /&gt;
|Seconds after minute (0 - 59)&lt;br /&gt;
|-&lt;br /&gt;
|min&lt;br /&gt;
|Minutes after hour (0 - 59)&lt;br /&gt;
|-&lt;br /&gt;
|hour&lt;br /&gt;
|Hours since midnight (0 - 23)&lt;br /&gt;
|-&lt;br /&gt;
|day&lt;br /&gt;
|Day of month (1 - 31)&lt;br /&gt;
|-&lt;br /&gt;
|month&lt;br /&gt;
|Month (0 - 11; January = 0)&lt;br /&gt;
|-&lt;br /&gt;
|year&lt;br /&gt;
|Year (current year)&lt;br /&gt;
|-&lt;br /&gt;
|wday&lt;br /&gt;
|Day of week (0 - 6; Sunday = 0)&lt;br /&gt;
|-&lt;br /&gt;
|yday&lt;br /&gt;
|Day of year (0 - 365; January 1 = 0)&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
/* Player::PlayerDeath is triggered whenever someone die */&lt;br /&gt;
function Player::PlayerDeath( player ) &lt;br /&gt;
{&lt;br /&gt;
      /* Check whether the player that just died is local player/self */&lt;br /&gt;
      if ( player.ID == World.FindLocalPlayer().ID )&lt;br /&gt;
      {&lt;br /&gt;
            local now = System.GetDate(); &lt;br /&gt;
&lt;br /&gt;
            // hour:minute:sec&lt;br /&gt;
            local ftTime = format( &amp;quot;%i:%i:%i&amp;quot;, now.hour, now.min, now.sec ); &lt;br /&gt;
&lt;br /&gt;
            /* Show the time of player&#039;s death to local player/self. This is just for example */ &lt;br /&gt;
            Console.Print( player.Name +&amp;quot; died at &amp;quot;+ ftTime );&lt;br /&gt;
      }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
[[Scripting/Squirrel/Client_Events/Player::PlayerDeath|Player::PlayerDeath]], [[Scripting/Squirrel/Client_Functions/World::FindLocalPlayer|World::FindLocalPlayer]] and [[Scripting/Squirrel/Client_Functions/Console::Print|Console::Print]] &lt;br /&gt;
were used in this example, more info about them in the corresponding pages.&lt;/div&gt;</summary>
		<author><name>Human.</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Functions/System::GetDate&amp;diff=20140</id>
		<title>Scripting/Squirrel/Client Functions/System::GetDate</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Functions/System::GetDate&amp;diff=20140"/>
		<updated>2018-09-28T16:54:43Z</updated>

		<summary type="html">&lt;p&gt;Human.: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function returns a table containing a date/time splitted as in table below &#039;&#039;&#039;Return type&#039;&#039;&#039;. It follows same syntax as the Squirrel standard library&#039;s date function: [http://squirrel-lang.org/squirreldoc/stdlib/stdsystemlib.html#date]&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&amp;lt;pre&amp;gt;System.GetDate([time], [format]])&amp;lt;/pre&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;time&#039;&#039;&#039; and &#039;&#039;&#039;format&#039;&#039;&#039; are optional.&lt;br /&gt;
&lt;br /&gt;
== Return type ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;table&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;div&amp;gt; &lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Name&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|sec&lt;br /&gt;
|Seconds after minute (0 - 59)&lt;br /&gt;
|-&lt;br /&gt;
|min&lt;br /&gt;
|Minutes after hour (0 - 59)&lt;br /&gt;
|-&lt;br /&gt;
|hour&lt;br /&gt;
|Hours since midnight (0 - 23)&lt;br /&gt;
|-&lt;br /&gt;
|day&lt;br /&gt;
|Day of month (1 - 31)&lt;br /&gt;
|-&lt;br /&gt;
|month&lt;br /&gt;
|Month (0 - 11; January = 0)&lt;br /&gt;
|-&lt;br /&gt;
|year&lt;br /&gt;
|Year (current year)&lt;br /&gt;
|-&lt;br /&gt;
|wday&lt;br /&gt;
|Day of week (0 - 6; Sunday = 0)&lt;br /&gt;
|-&lt;br /&gt;
|yday&lt;br /&gt;
|Day of year (0 - 365; January 1 = 0)&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
/* Player::PlayerDeath is triggered whenever someone die */&lt;br /&gt;
function Player::PlayerDeath( player ) &lt;br /&gt;
{&lt;br /&gt;
      /* Check whether the player that just died is local player/self */&lt;br /&gt;
      if ( player.ID == World.FindLocalPlayer().ID )&lt;br /&gt;
      {&lt;br /&gt;
            local now = System.GetDate(); &lt;br /&gt;
&lt;br /&gt;
            // hour:minute:sec&lt;br /&gt;
            local ftTime = format( &amp;quot;%i:%i:%i&amp;quot;, now.hour, now.min, now.sec ); &lt;br /&gt;
&lt;br /&gt;
            /* Show the time of player&#039;s death to local player/self. This is just for example */ &lt;br /&gt;
            Console.Print( player.Name +&amp;quot; died at &amp;quot;+ ftTime );&lt;br /&gt;
      }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
[[Scripting/Squirrel/Client_Events/Player::PlayerDeath|Player::PlayerDeath]], [[Scripting/Squirrel/Client_Functions/World::FindLocalPlayer|World::FindLocalPlayer]] and [[Scripting/Squirrel/Client_Functions/Console::Print|Console::Print]] &lt;br /&gt;
were used in this example, more info about them in the corresponding pages.&lt;/div&gt;</summary>
		<author><name>Human.</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Functions/System::GetDate&amp;diff=20139</id>
		<title>Scripting/Squirrel/Client Functions/System::GetDate</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Functions/System::GetDate&amp;diff=20139"/>
		<updated>2018-09-28T16:52:47Z</updated>

		<summary type="html">&lt;p&gt;Human.: Created page with &amp;quot;This function returns a table containing a date/time splitted in the slots. It follows same syntax as the Squirrel standard library&amp;#039;s date function: [http://squirrel-lang.org/...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function returns a table containing a date/time splitted in the slots. It follows same syntax as the Squirrel standard library&#039;s date function: [http://squirrel-lang.org/squirreldoc/stdlib/stdsystemlib.html#date]&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&amp;lt;pre&amp;gt;System.GetDate([time], [format]])&amp;lt;/pre&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;time&#039;&#039;&#039; and &#039;&#039;&#039;format&#039;&#039;&#039; are optional.&lt;br /&gt;
&lt;br /&gt;
== Return type ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;table&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;div&amp;gt; &lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Name&lt;br /&gt;
!Description&lt;br /&gt;
|-&lt;br /&gt;
|sec&lt;br /&gt;
|Seconds after minute (0 - 59)&lt;br /&gt;
|-&lt;br /&gt;
|min&lt;br /&gt;
|Minutes after hour (0 - 59)&lt;br /&gt;
|-&lt;br /&gt;
|hour&lt;br /&gt;
|Hours since midnight (0 - 23)&lt;br /&gt;
|-&lt;br /&gt;
|day&lt;br /&gt;
|Day of month (1 - 31)&lt;br /&gt;
|-&lt;br /&gt;
|month&lt;br /&gt;
|Month (0 - 11; January = 0)&lt;br /&gt;
|-&lt;br /&gt;
|year&lt;br /&gt;
|Year (current year)&lt;br /&gt;
|-&lt;br /&gt;
|wday&lt;br /&gt;
|Day of week (0 - 6; Sunday = 0)&lt;br /&gt;
|-&lt;br /&gt;
|yday&lt;br /&gt;
|Day of year (0 - 365; January 1 = 0)&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
/* Player::PlayerDeath is triggered whenever someone die */&lt;br /&gt;
function Player::PlayerDeath( player ) &lt;br /&gt;
{&lt;br /&gt;
      /* Check whether the player that just died is local player/self */&lt;br /&gt;
      if ( player.ID == World.FindLocalPlayer().ID )&lt;br /&gt;
      {&lt;br /&gt;
            local now = System.GetDate(); &lt;br /&gt;
&lt;br /&gt;
            // hour:minute:sec&lt;br /&gt;
            local ftTime = format( &amp;quot;%i:%i:%i&amp;quot;, now.hour, now.min, now.sec ); &lt;br /&gt;
&lt;br /&gt;
            /* Show the time of player&#039;s death to local player/self. This is just for example */ &lt;br /&gt;
            Console.Print( player.Name +&amp;quot; died at &amp;quot;+ ftTime );&lt;br /&gt;
      }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
[[Scripting/Squirrel/Client_Events/Player::PlayerDeath|Player::PlayerDeath]], [[Scripting/Squirrel/Client_Functions/World::FindLocalPlayer|World::FindLocalPlayer]] and [[Scripting/Squirrel/Client_Functions/Console::Print|Console::Print]] &lt;br /&gt;
were used in this example, more info about them in the corresponding pages.&lt;/div&gt;</summary>
		<author><name>Human.</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Functions/System::GetTimestamp&amp;diff=20138</id>
		<title>Scripting/Squirrel/Client Functions/System::GetTimestamp</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Functions/System::GetTimestamp&amp;diff=20138"/>
		<updated>2018-09-28T16:33:42Z</updated>

		<summary type="html">&lt;p&gt;Human.: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function returns the number of seconds since the UNIX epoch; equivalent to Squirrel&#039;s time function: [http://squirrel-lang.org/squirreldoc/stdlib/stdsystemlib.html#time]&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&amp;lt;pre&amp;gt;System.GetTimestamp()&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Return type ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;integer&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
/* Player::PlayerDeath is triggered whenever someone die */&lt;br /&gt;
function Player::PlayerDeath( player ) &lt;br /&gt;
{&lt;br /&gt;
      /* Check whether the player that just died is local player/self */&lt;br /&gt;
      if ( player.ID == World.FindLocalPlayer( ).ID )&lt;br /&gt;
      {&lt;br /&gt;
            /* Get epoch time */&lt;br /&gt;
            local time = System.GetTimestamp( );&lt;br /&gt;
&lt;br /&gt;
            /* Show the epoch time of player&#039;s death to local player/self. This is just for example */ &lt;br /&gt;
            Console.Print( player.Name +&amp;quot; died at &amp;quot;+ time );&lt;br /&gt;
      }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
[[Scripting/Squirrel/Client_Events/Player::PlayerDeath|Player::PlayerDeath]], [[Scripting/Squirrel/Client_Functions/World::FindLocalPlayer|World::FindLocalPlayer]] and [[Scripting/Squirrel/Client_Functions/Console::Print|Console::Print]] &lt;br /&gt;
were used in this example, more info about them in the corresponding pages.&lt;/div&gt;</summary>
		<author><name>Human.</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Functions/System::GetTimestamp&amp;diff=20137</id>
		<title>Scripting/Squirrel/Client Functions/System::GetTimestamp</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Functions/System::GetTimestamp&amp;diff=20137"/>
		<updated>2018-09-28T16:31:54Z</updated>

		<summary type="html">&lt;p&gt;Human.: Created page with &amp;quot;This function returns the number of seconds since the UNIX epoch; equivalent to Squirrel&amp;#039;s time function: [http://squirrel-lang.org/squirreldoc/stdlib/stdsystemlib.html#time]...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function returns the number of seconds since the UNIX epoch; equivalent to Squirrel&#039;s time function: [http://squirrel-lang.org/squirreldoc/stdlib/stdsystemlib.html#time]&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&amp;lt;pre&amp;gt;System.GetTimestamp()&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Return type ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;integer&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
/* Player::PlayerDeath is triggered whenever someone die */&lt;br /&gt;
function Player::PlayerDeath( player ) &lt;br /&gt;
{&lt;br /&gt;
      /* Check whether the player that just died is local player/self */&lt;br /&gt;
      if ( player.ID == World.FindLocalPlayer( ).ID )&lt;br /&gt;
      {&lt;br /&gt;
            /* Get epoch time */&lt;br /&gt;
            local time = System.GetTimestamp( );&lt;br /&gt;
&lt;br /&gt;
            /* Show the epoch time of player&#039;s death. This is just for example */ &lt;br /&gt;
            Console.Print( player.Name +&amp;quot; died at &amp;quot;+ time );&lt;br /&gt;
      }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
[[Scripting/Squirrel/Client_Events/Player::PlayerDeath|Player::PlayerDeath]], [[Scripting/Squirrel/Client_Functions/World::FindLocalPlayer|World::FindLocalPlayer]] and [[Scripting/Squirrel/Client_Functions/Console::Print|Console::Print]] &lt;br /&gt;
were used in this example, more info about them in the corresponding pages.&lt;/div&gt;</summary>
		<author><name>Human.</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Functions&amp;diff=20132</id>
		<title>Scripting/Squirrel/Client Functions</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Client_Functions&amp;diff=20132"/>
		<updated>2018-05-10T08:18:51Z</updated>

		<summary type="html">&lt;p&gt;Human.: /* Global Functions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Global Functions ==&lt;br /&gt;
=== Script Functions ===&lt;br /&gt;
* [[Scripting/Squirrel/Client_Functions/dofile|dofile]](string filename)&lt;br /&gt;
* [[Scripting/Squirrel/Client_Functions/Script::LoadScript|Script::LoadScript]](string filename) &amp;lt;font color=green&amp;gt;// Same as dofile.&amp;lt;/font&amp;gt;&lt;br /&gt;
* [[Scripting/Squirrel/Client_Functions/include|include]](string filename)&lt;br /&gt;
* [[Scripting/Squirrel/Client_Functions/print|print]](string text)&lt;br /&gt;
* [[Scripting/Squirrel/Client_Functions/Script::GetTicks|Script::GetTicks]]()&lt;br /&gt;
&lt;br /&gt;
=== World Functions ===&lt;br /&gt;
* [[Scripting/Squirrel/Client_Functions/World::FindPlayer|World::FindPlayer]](int id)&lt;br /&gt;
* [[Scripting/Squirrel/Client_Functions/World::FindLocalPlayer|World::FindLocalPlayer]]()&lt;br /&gt;
* [[Scripting/Squirrel/Client_Functions/World::FindVehicle|World::FindVehicle]](int id)&lt;br /&gt;
&lt;br /&gt;
=== System Functions ===&lt;br /&gt;
* [[Scripting/Squirrel/Client_Functions/System::GetDate|System::GetDate]]([timestamp, [format]])&lt;br /&gt;
* [[Scripting/Squirrel/Client_Functions/System::GetTimestamp|System::GetTimestamp]]()&lt;br /&gt;
&lt;br /&gt;
=== Console Functions ===&lt;br /&gt;
* [[Scripting/Squirrel/Client_Functions/Console::Print|Console::Print]](string text)&lt;br /&gt;
&lt;br /&gt;
=== GUI Functions ===&lt;br /&gt;
* [[Scripting/Squirrel/Client_Functions/GUI::GetMouseEnabled|GUI::GetMouseEnabled]]()&lt;br /&gt;
* [[Scripting/Squirrel/Client_Functions/GUI::SetMouseEnabled|GUI::SetMouseEnabled]](bool enabled)&lt;br /&gt;
* [[Scripting/Squirrel/Client_Functions/GUI::GetMousePos|GUI::GetMousePos]]()&lt;br /&gt;
* [[Scripting/Squirrel/Client_Functions/GUI::GetScreenSize|GUI::GetScreenSize]]()&lt;br /&gt;
* [[Scripting/Squirrel/Client_Functions/GUI::ScreenPosToWorld|GUI::ScreenPosToWorld]](Vector screenPosition)&lt;br /&gt;
* [[Scripting/Squirrel/Client_Functions/GUI::WorldPosToScreen|GUI::WorldPosToScreen]](Vector position)&lt;br /&gt;
* [[Scripting/Squirrel/Client_Functions/GUI::GetFocusedElement|GUI::GetFocusedElement]]()&lt;br /&gt;
* [[Scripting/Squirrel/Client_Functions/GUI::SetFocusedElement|GUI::SetFocusedElement]](GUIElement element)&lt;br /&gt;
&lt;br /&gt;
== Data Types ==&lt;br /&gt;
Types int, float, bool and string are built-in types. entity is not an actual type, but can be any of either Player, Vehicle or Building. The actual type can be detected from the return value of entity.Type which is respectively OBJ_PLAYER, OBJ_VEHICLE or OBJ_BUILDING for them.&lt;br /&gt;
&lt;br /&gt;
The values of properties marked as read-only cannot be changed. If a property is marked as bound, then it means the instance of for example a Vector that you get from it is bound to the object. Therefore if you do var = player.Position;, var.X will always contain the player&#039;s X position, not the X position when var was assigned. To get an unbound vector, use var = Vector(player.Position);.&lt;br /&gt;
{{Scripting/Squirrel/Functions/Client_DataTypes}}&lt;br /&gt;
&lt;br /&gt;
== GUI Types ==&lt;br /&gt;
{{Scripting/Squirrel/Functions/Client_GUITypes}}&lt;/div&gt;</summary>
		<author><name>Human.</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Player.Immunity&amp;diff=20115</id>
		<title>Scripting/Squirrel/Functions/Player.Immunity</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Player.Immunity&amp;diff=20115"/>
		<updated>2018-01-30T13:59:41Z</updated>

		<summary type="html">&lt;p&gt;Human.: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function is used to get or set a player&#039;s immunity.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;player.Immunity = flags;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Flags ==&lt;br /&gt;
&lt;br /&gt;
1 = bulletproof | 2 = fireproof | 4 = explosion-proof | 8 = collision-proof | 16 = melee-proof | 32 = immune to falling down | 64 = immune to critical shot/headshot&lt;br /&gt;
&lt;br /&gt;
0 means no immunity, 127 means full immunity. You can add all the numbers together or use bitwise OR/AND to toggle flags.&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;showimmunity&amp;quot; )&lt;br /&gt;
	{&lt;br /&gt;
		/* Show your immunity */&lt;br /&gt;
		MessagePlayer( &amp;quot;Your immunity: &amp;quot;+ player.Immunity, player );&lt;br /&gt;
	}&lt;br /&gt;
	else if ( cmd == &amp;quot;setimmunity&amp;quot; )&lt;br /&gt;
	{&lt;br /&gt;
		/* You can also add up the numbers such as ( 1 + 2 + 4 + 6 + 8 + 16 ) is equal to 31 */&lt;br /&gt;
		player.Immunity = ( 1 | 2 | 4 | 8 | 16 );&lt;br /&gt;
		MessagePlayer( &amp;quot;You are now immune to bullet, fire, explosion, collision and melee&amp;quot;, player );&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/Functions/Player_Functions}}&lt;br /&gt;
[[Category:Scripting/Squirrel/Functions/Player_Functions]]&lt;/div&gt;</summary>
		<author><name>Human.</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Player.Immunity&amp;diff=20114</id>
		<title>Scripting/Squirrel/Functions/Player.Immunity</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Player.Immunity&amp;diff=20114"/>
		<updated>2018-01-30T13:55:35Z</updated>

		<summary type="html">&lt;p&gt;Human.: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function is used to get or set a player&#039;s immunity.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;player.Immunity = flags;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Flags ==&lt;br /&gt;
&lt;br /&gt;
1 = bulletproof | 2 = fireproof | 4 = explosion-proof | 8 = collision-proof | 16 = melee-proof | 32 = immune to falling down | 64 = immune to critical shot/headshot&lt;br /&gt;
&lt;br /&gt;
0 means no immunity, 127 means full immunity. You can add all the numbers together or use bitwise OR/AND to toggle flags.&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;showimmunity&amp;quot; )&lt;br /&gt;
	{&lt;br /&gt;
	        /* Show your immunity */&lt;br /&gt;
		MessagePlayer( &amp;quot;Your immunity: &amp;quot;+ player.Immunity, player );&lt;br /&gt;
	}&lt;br /&gt;
	else if ( cmd == &amp;quot;setimmunity&amp;quot; )&lt;br /&gt;
	{&lt;br /&gt;
	        /* You can also add up the numbers such as ( 1 + 2 + 4 + 6 + 8 + 16 ) is equal to 31 */&lt;br /&gt;
		player.Immunity = ( 1 | 2 | 4 | 8 | 16 );&lt;br /&gt;
		MessagePlayer( &amp;quot;You are now immune to bullet, fire, explosion, collision and melee&amp;quot;, player );&lt;br /&gt;
	}&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/Functions/Player_Functions}}&lt;br /&gt;
[[Category:Scripting/Squirrel/Functions/Player_Functions]]&lt;/div&gt;</summary>
		<author><name>Human.</name></author>
	</entry>
</feed>