<?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=Dracc</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=Dracc"/>
	<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/wiki/Special:Contributions/Dracc"/>
	<updated>2026-04-08T07:10:32Z</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/Script::ScriptProcess&amp;diff=20244</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=20244"/>
		<updated>2019-05-21T08:06:10Z</updated>

		<summary type="html">&lt;p&gt;Dracc: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This event is called on every script update.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;squirrel&amp;quot;&amp;gt;function Script::ScriptProcess()&amp;lt;/source&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;source 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;
&lt;br /&gt;
function Script::ScriptProcess() {&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 world&amp;quot;);&lt;br /&gt;
  ::dxText.FontSize = 20;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
This example sets the 3D position on every frame(?), quite inefficient. But there are few (none?) good use cases for this function.&lt;br /&gt;
&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
{{Scripting/Squirrel/Client_Events/Script_Events}}&lt;br /&gt;
[[Category:Scripting/Squirrel/Client_Events/Script_Events]]&lt;/div&gt;</summary>
		<author><name>Dracc</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=OnObjectShot&amp;diff=20233</id>
		<title>OnObjectShot</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=OnObjectShot&amp;diff=20233"/>
		<updated>2019-05-07T13:34:25Z</updated>

		<summary type="html">&lt;p&gt;Dracc: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
This event is called when a player shoots an object.&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
onObjectShot(object,player,weapon);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
function onObjectShot(object, player, weapon) {&lt;br /&gt;
   MessagePlayer(&amp;quot;You&#039;ve shot object id &amp;quot; + object + &amp;quot; with weapon id &amp;quot; + weapon, player);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
&lt;br /&gt;
{{Scripting/Squirrel/Events/Object_Events}}&lt;br /&gt;
[[Category:Scripting/Squirrel/Events/Object_Events]]&lt;/div&gt;</summary>
		<author><name>Dracc</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=OnObjectShot&amp;diff=20232</id>
		<title>OnObjectShot</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=OnObjectShot&amp;diff=20232"/>
		<updated>2019-05-07T13:33:54Z</updated>

		<summary type="html">&lt;p&gt;Dracc: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
This event is called when a player shoots an object.&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
onObjectShot(object,player,weapon);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
function onObjectShot(object,player,weapon ) {&lt;br /&gt;
   MessagePlayer(&amp;quot;You&#039;ve shot object id &amp;quot;+object+&amp;quot; with weapon id &amp;quot;+weapon,player)&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
&lt;br /&gt;
{{Scripting/Squirrel/Events/Object_Events}}&lt;br /&gt;
[[Category:Scripting/Squirrel/Events/Object_Events]]&lt;/div&gt;</summary>
		<author><name>Dracc</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=OnObjectBump&amp;diff=20231</id>
		<title>OnObjectBump</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=OnObjectBump&amp;diff=20231"/>
		<updated>2019-05-07T13:32:42Z</updated>

		<summary type="html">&lt;p&gt;Dracc: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Description==&lt;br /&gt;
This event is called when the player touches a object!&lt;br /&gt;
==Syntax==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;onObjectBump(object,player)&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
function onObjectBump(object,player) {&lt;br /&gt;
   MessagePlayer(&amp;quot;You&#039;ve bumped in to object id: &amp;quot; + object, player)&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/Object_Events}}&lt;br /&gt;
[[Category:Scripting/Squirrel/Events/Object_Events]]&lt;/div&gt;</summary>
		<author><name>Dracc</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/BanIP&amp;diff=20229</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=20229"/>
		<updated>2019-05-02T06:06:05Z</updated>

		<summary type="html">&lt;p&gt;Dracc: /* 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;
&amp;lt;pre&amp;gt;BanIP(ip)&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&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;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
function onPlayerCommand(player, cmd, text){&lt;br /&gt;
  if (cmd == &amp;quot;ban&amp;quot;) {&lt;br /&gt;
    if (text) {&lt;br /&gt;
      local params = split(text, &amp;quot; &amp;quot;);&lt;br /&gt;
      local plr = FindPlayer(params[0]);&lt;br /&gt;
      if (plr != null) {&lt;br /&gt;
        if (params.len() &amp;gt;= 2) {&lt;br /&gt;
          local reason = params[1];&lt;br /&gt;
        } else {&lt;br /&gt;
          reason = &amp;quot;None&amp;quot;;&lt;br /&gt;
        }&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;
        MessagePlayer(&amp;quot;You have been banned by: &amp;quot; + player.Name + &amp;quot;. Reason: &amp;quot; + reason, plr);&lt;br /&gt;
        BanIP(plr.IP);&lt;br /&gt;
        return 1;&lt;br /&gt;
      } else {&lt;br /&gt;
        MessagePlayer(&amp;quot;[Error] - Player &amp;quot; + params[0] + &amp;quot; not found!&amp;quot;, player);&lt;br /&gt;
        return 1;&lt;br /&gt;
      }&lt;br /&gt;
    }&lt;br /&gt;
    MessagePlayer(&amp;quot;[Syntax] - /ban &amp;lt;Nick/ID&amp;gt; &amp;lt;Reason&amp;gt;&amp;quot;, player);&lt;br /&gt;
  }&lt;br /&gt;
  return 1;&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;
{{Scripting/Squirrel/Functions/Administrative_Functions}}&lt;br /&gt;
[[Category:Scripting/Squirrel/Functions/Administrative_Functions]]&lt;/div&gt;</summary>
		<author><name>Dracc</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/BanIP&amp;diff=20228</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=20228"/>
		<updated>2019-05-02T06:05:32Z</updated>

		<summary type="html">&lt;p&gt;Dracc: Update the 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;
&amp;lt;pre&amp;gt;BanIP(ip)&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&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;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
function onPlayerCommand(player, cmd, text){&lt;br /&gt;
  if (cmd == &amp;quot;ban&amp;quot;) {&lt;br /&gt;
    if (text) {&lt;br /&gt;
      local params = split(text, &amp;quot; &amp;quot;);&lt;br /&gt;
      local plr = FindPlayer(params[0]);&lt;br /&gt;
      if (plr != null) {&lt;br /&gt;
        if (params.len() &amp;gt;= 2) {&lt;br /&gt;
          local reason = params[1];&lt;br /&gt;
        } else {&lt;br /&gt;
          reason = &amp;quot;None&amp;quot;;&lt;br /&gt;
        }&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;
        MessagePlayer(&amp;quot;You have been banned by: &amp;quot; + player.Name + &amp;quot;. Reason: &amp;quot; + reason, plr);&lt;br /&gt;
        BanPlayer(plr);&lt;br /&gt;
        return 1;&lt;br /&gt;
      } else {&lt;br /&gt;
        MessagePlayer(&amp;quot;[Error] - Player &amp;quot; + params[0] + &amp;quot; not found!&amp;quot;, player);&lt;br /&gt;
        return 1;&lt;br /&gt;
      }&lt;br /&gt;
    }&lt;br /&gt;
    MessagePlayer(&amp;quot;[Syntax] - /ban &amp;lt;Nick/ID&amp;gt; &amp;lt;Reason&amp;gt;&amp;quot;, player);&lt;br /&gt;
  }&lt;br /&gt;
  return 1;&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;
{{Scripting/Squirrel/Functions/Administrative_Functions}}&lt;br /&gt;
[[Category:Scripting/Squirrel/Functions/Administrative_Functions]]&lt;/div&gt;</summary>
		<author><name>Dracc</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Player.AddSpeed&amp;diff=20225</id>
		<title>Scripting/Squirrel/Functions/Player.AddSpeed</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Player.AddSpeed&amp;diff=20225"/>
		<updated>2019-04-26T11:02:00Z</updated>

		<summary type="html">&lt;p&gt;Dracc: /* Related Functions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Add speed to a player.&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
player.AddSpeed( Vector )&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
* &#039;&#039;Vector3&#039;&#039; &#039;&#039;&#039;Vector&#039;&#039;&#039; - Speed vector (x, y, z)&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
The command will boost the player to the sky with 5 additional speed.&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
function onPlayerCommand(player, cmd) {&lt;br /&gt;
  if (cmd == &amp;quot;up&amp;quot;) {&lt;br /&gt;
    player.AddSpeed(Vector(0, 0, 5));&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>Dracc</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Player.AddSpeed&amp;diff=20224</id>
		<title>Scripting/Squirrel/Functions/Player.AddSpeed</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Player.AddSpeed&amp;diff=20224"/>
		<updated>2019-04-26T11:01:30Z</updated>

		<summary type="html">&lt;p&gt;Dracc: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Add speed to a player.&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
player.AddSpeed( Vector )&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
* &#039;&#039;Vector3&#039;&#039; &#039;&#039;&#039;Vector&#039;&#039;&#039; - Speed vector (x, y, z)&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
The command will boost the player to the sky with 5 additional speed.&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
function onPlayerCommand(player, cmd) {&lt;br /&gt;
  if (cmd == &amp;quot;up&amp;quot;) {&lt;br /&gt;
    player.AddSpeed(Vector(0, 0, 5));&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/Game_Functions}}&lt;br /&gt;
[[Category:Scripting/Squirrel/Functions/Game_Functions]]&lt;/div&gt;</summary>
		<author><name>Dracc</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Player.Admin&amp;diff=20223</id>
		<title>Scripting/Squirrel/Functions/Player.Admin</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Player.Admin&amp;diff=20223"/>
		<updated>2019-04-26T10:59:04Z</updated>

		<summary type="html">&lt;p&gt;Dracc: Restructure&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function is just a variable. &lt;br /&gt;
There are no built-in commands for admins, like they used to be in earlier versions.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;squirrel&amp;quot;&amp;gt;&lt;br /&gt;
Player.Admin;&lt;br /&gt;
Player.Admin = toggle;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
* &#039;&#039;bool&#039;&#039; &#039;&#039;&#039;toggle&#039;&#039;&#039; Set Admin true/false&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;squirrel&amp;quot;&amp;gt;&lt;br /&gt;
function onPlayerCommand(cmd, args, player) {&lt;br /&gt;
  if (cmd == &amp;quot;heal&amp;quot;) {&lt;br /&gt;
    if(player.Admin) {&lt;br /&gt;
      player.Health = 100;&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
=== Notes ===&lt;br /&gt;
Call [[onPlayerCommand]] was used in this example.&lt;br /&gt;
&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
&lt;br /&gt;
{{Scripting/Squirrel/Functions/Game_Functions}}&lt;br /&gt;
[[Category:Scripting/Squirrel/Functions/Game_Functions]]&lt;/div&gt;</summary>
		<author><name>Dracc</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Player.Redirect&amp;diff=20222</id>
		<title>Scripting/Squirrel/Functions/Player.Redirect</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Player.Redirect&amp;diff=20222"/>
		<updated>2019-04-26T10:53:30Z</updated>

		<summary type="html">&lt;p&gt;Dracc: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Send player to another server.&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
player.Redirect(ip, port, nickname, serverpass, userpass);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
* &#039;&#039;string&#039;&#039; &#039;&#039;&#039;ip&#039;&#039;&#039; Target server IP address&lt;br /&gt;
* &#039;&#039;integer&#039;&#039; &#039;&#039;&#039;port&#039;&#039;&#039; Target server port&lt;br /&gt;
* &#039;&#039;string&#039;&#039; &#039;&#039;&#039;nickname&#039;&#039;&#039; ?&lt;br /&gt;
* &#039;&#039;string&#039;&#039; &#039;&#039;&#039;serverpass&#039;&#039;&#039; Target server password&lt;br /&gt;
* &#039;&#039;string&#039;&#039; &#039;&#039;&#039;userpass&#039;&#039;&#039; User password&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
{{Scripting/Needs_Example}}&lt;br /&gt;
&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
{{Scripting/Squirrel/Functions/Player_Functions}}&lt;br /&gt;
[[Category:Scripting/Squirrel/Functions/Player_Functions]]&lt;/div&gt;</summary>
		<author><name>Dracc</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Player.RemoveWeapon&amp;diff=20221</id>
		<title>Scripting/Squirrel/Functions/Player.RemoveWeapon</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Player.RemoveWeapon&amp;diff=20221"/>
		<updated>2019-04-26T10:49:32Z</updated>

		<summary type="html">&lt;p&gt;Dracc: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Usage==&lt;br /&gt;
Removes a weapon from the player&#039;s inventory. Returns void.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;code&amp;gt; player.RemoveWeapon(int WEAPON_ID)&amp;lt;/code&amp;gt;&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;
  if (cmd == &amp;quot;remweps&amp;quot;) {&lt;br /&gt;
    try {&lt;br /&gt;
      for (local i = 0; i &amp;lt; 9; ++i) {&lt;br /&gt;
        player.RemoveWeapon(i);&lt;br /&gt;
      }&lt;br /&gt;
    }&lt;br /&gt;
    catch(e) {&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Dracc</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/GetTaxiBoostJump&amp;diff=20220</id>
		<title>Scripting/Squirrel/Functions/GetTaxiBoostJump</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/GetTaxiBoostJump&amp;diff=20220"/>
		<updated>2019-04-26T10:46:31Z</updated>

		<summary type="html">&lt;p&gt;Dracc: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function will return the current status of the taxi boost jump ability.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;GetTaxiBoostJump()&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;N/A&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Return value ==&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;bool&#039;&#039; &#039;&#039;&#039;toggled&#039;&#039;&#039; - &#039;&#039;&#039;true&#039;&#039;&#039; or &#039;&#039;&#039;false&#039;&#039;&#039;&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;
  if (cmd == &amp;quot;taxiboost&amp;quot;) {&lt;br /&gt;
    MessagePlayer(&amp;quot;Status: &amp;quot; + GetTaxiBoostJump(), 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;
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/Server_Settings}}&lt;br /&gt;
[[Category:Scripting/Squirrel/Functions/Server_Settings _Functions]]&lt;/div&gt;</summary>
		<author><name>Dracc</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/GetTaxiBoostJump&amp;diff=20219</id>
		<title>Scripting/Squirrel/Functions/GetTaxiBoostJump</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/GetTaxiBoostJump&amp;diff=20219"/>
		<updated>2019-04-26T10:46:20Z</updated>

		<summary type="html">&lt;p&gt;Dracc: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function will return the current status of the taxi boost jump ability.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;GetTaxiBoostJump()&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;N/A&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Return value ==&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;bool&#039;&#039; &#039;&#039;&#039;toggled&#039;&#039;&#039; - &#039;&#039;&#039;true&#039;&#039;&#039; or &#039;&#039;&#039;false&#039;&#039;&#039;&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;
  if(cmd == &amp;quot;taxiboost&amp;quot;) {&lt;br /&gt;
    MessagePlayer(&amp;quot;Status: &amp;quot; + GetTaxiBoostJump(), 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;
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/Server_Settings}}&lt;br /&gt;
[[Category:Scripting/Squirrel/Functions/Server_Settings _Functions]]&lt;/div&gt;</summary>
		<author><name>Dracc</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/SetTaxiBoostJump&amp;diff=20218</id>
		<title>Scripting/Squirrel/Functions/SetTaxiBoostJump</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/SetTaxiBoostJump&amp;diff=20218"/>
		<updated>2019-04-26T10:45:34Z</updated>

		<summary type="html">&lt;p&gt;Dracc: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function will toggle the taxi boost jump ability.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;SetTaxiBoostJump( toggle )&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;bool&#039;&#039; &#039;&#039;&#039;toggle&#039;&#039;&#039; - &#039;&#039;&#039;true&#039;&#039;&#039; or &#039;&#039;&#039;false&#039;&#039;&#039;.&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;
  if (cmd == &amp;quot;settaxijump&amp;quot;) {&lt;br /&gt;
    if (GetTaxiBoostJump() == false) {&lt;br /&gt;
      SetTaxiBoostJump(true);&lt;br /&gt;
      MessagePlayer(&amp;quot;Enabled&amp;quot;, player);&lt;br /&gt;
    } else {&lt;br /&gt;
      SetTaxiBoostJump(false);&lt;br /&gt;
      MessagePlayer(&amp;quot;Disabled&amp;quot;, player);&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;
Calls [[onPlayerCommand]], [[Scripting/Squirrel/Functions/GetTaxiBoostJump|GetTaxiBoostJump]] and [[Scripting/Squirrel/Functions/MessagePlayer|MessagePlayer]] 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/Server_Settings}}&lt;br /&gt;
[[Category:Scripting/Squirrel/Functions/Server_Settings _Functions]]&lt;/div&gt;</summary>
		<author><name>Dracc</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/SetTaxiBoostJump&amp;diff=20217</id>
		<title>Scripting/Squirrel/Functions/SetTaxiBoostJump</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/SetTaxiBoostJump&amp;diff=20217"/>
		<updated>2019-04-26T10:45:09Z</updated>

		<summary type="html">&lt;p&gt;Dracc: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function will toggle the taxi boost jump ability.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;SetTaxiBoostJump( toggle )&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;bool&#039;&#039; &#039;&#039;&#039;toggle&#039;&#039;&#039; - &#039;&#039;&#039;true&#039;&#039;&#039; or &#039;&#039;&#039;false&#039;&#039;&#039;.&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;
  if(cmd == &amp;quot;settaxijump&amp;quot;) {&lt;br /&gt;
    if(GetTaxiBoostJump() == false) {&lt;br /&gt;
      SetTaxiBoostJump(true);&lt;br /&gt;
      MessagePlayer(&amp;quot;Enabled&amp;quot;, player);&lt;br /&gt;
    } else {&lt;br /&gt;
      SetTaxiBoostJump(false);&lt;br /&gt;
      MessagePlayer(&amp;quot;Disabled&amp;quot;, player);&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;
Calls [[onPlayerCommand]], [[Scripting/Squirrel/Functions/GetTaxiBoostJump|GetTaxiBoostJump]] and [[Scripting/Squirrel/Functions/MessagePlayer|MessagePlayer]] 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/Server_Settings}}&lt;br /&gt;
[[Category:Scripting/Squirrel/Functions/Server_Settings _Functions]]&lt;/div&gt;</summary>
		<author><name>Dracc</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/SetTaxiBoostJump&amp;diff=20216</id>
		<title>Scripting/Squirrel/Functions/SetTaxiBoostJump</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/SetTaxiBoostJump&amp;diff=20216"/>
		<updated>2019-04-26T10:42:35Z</updated>

		<summary type="html">&lt;p&gt;Dracc: Example formatting&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function will toggle the taxi boost jump ability.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;SetTaxiBoostJump( toggle )&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;bool&#039;&#039; &#039;&#039;&#039;toggle&#039;&#039;&#039; - &#039;&#039;&#039;true&#039;&#039;&#039; or &#039;&#039;&#039;false&#039;&#039;&#039;.&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;
  if(cmd==&amp;quot;settaxijump&amp;quot;) {&lt;br /&gt;
    if(GetTaxiBoostJump() == false) {&lt;br /&gt;
      SetTaxiBoostJump(true);&lt;br /&gt;
      MessagePlayer(&amp;quot;Enabled,player);&lt;br /&gt;
    } else {&lt;br /&gt;
      SetTaxiBoostJump(false);&lt;br /&gt;
      MessagePlayer(&amp;quot;Disabled,player);&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;
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/Server_Settings}}&lt;br /&gt;
[[Category:Scripting/Squirrel/Functions/Server_Settings _Functions]]&lt;/div&gt;</summary>
		<author><name>Dracc</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/CreateVehicle&amp;diff=20215</id>
		<title>Scripting/Squirrel/Functions/CreateVehicle</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/CreateVehicle&amp;diff=20215"/>
		<updated>2019-04-26T10:40:33Z</updated>

		<summary type="html">&lt;p&gt;Dracc: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function will create a vehicle.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;1&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;pre&amp;gt;CreateVehicle( model, pos, angle, col1, col2)&amp;lt;/pre&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;2&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;pre&amp;gt;CreateVehicle( model, world, pos, angle, col1, col2 )&amp;lt;/pre&amp;gt;&lt;br /&gt;
&#039;&#039;&#039;3&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;pre&amp;gt;CreateVehicle( model, world, x, y, z, angle, col1 , col2 )&amp;lt;/pre&amp;gt;&lt;br /&gt;
== Arguments ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;1&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;int&#039;&#039; &#039;&#039;&#039;model&#039;&#039;&#039; - The model ID of the vehicle.&lt;br /&gt;
* &#039;&#039;[[Scripting/Squirrel/Functions/Vector|Vector]]&#039;&#039; &#039;&#039;&#039;pos&#039;&#039;&#039; - The position of the vehicle.&lt;br /&gt;
* &#039;&#039;float&#039;&#039; &#039;&#039;&#039;angle&#039;&#039;&#039; - The rotation angle of the vehicle.&lt;br /&gt;
* &#039;&#039;int&#039;&#039; &#039;&#039;&#039;col1&#039;&#039;&#039; - The Color1 of the vehicle.&lt;br /&gt;
* &#039;&#039;int&#039;&#039; &#039;&#039;&#039;col2&#039;&#039;&#039; - The Color2 of the vehicle.&lt;br /&gt;
&#039;&#039;&#039;2&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;int&#039;&#039; &#039;&#039;&#039;model&#039;&#039;&#039; - The model ID of the vehicle.&lt;br /&gt;
* &#039;&#039;int&#039;&#039; &#039;&#039;&#039;world&#039;&#039;&#039; - The world of the vehicle.&lt;br /&gt;
* &#039;&#039;[[Scripting/Squirrel/Functions/Vector|Vector]]&#039;&#039; &#039;&#039;&#039;pos&#039;&#039;&#039; - The position of the vehicle.&lt;br /&gt;
* &#039;&#039;float&#039;&#039; &#039;&#039;&#039;angle&#039;&#039;&#039; - The rotation angle of the vehicle.&lt;br /&gt;
* &#039;&#039;int&#039;&#039; &#039;&#039;&#039;col1&#039;&#039;&#039; - The Color1 of the vehicle.&lt;br /&gt;
* &#039;&#039;int&#039;&#039; &#039;&#039;&#039;col2&#039;&#039;&#039; - The Color2 of the vehicle.&lt;br /&gt;
&#039;&#039;&#039;3&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;int&#039;&#039; &#039;&#039;&#039;model&#039;&#039;&#039; - The model ID of the vehicle.&lt;br /&gt;
* &#039;&#039;int&#039;&#039; &#039;&#039;&#039;world&#039;&#039;&#039; - The world of the vehicle.&lt;br /&gt;
* &#039;&#039;float&#039;&#039; &#039;&#039;&#039;x&#039;&#039;&#039; - The x position of the vehicle.&lt;br /&gt;
* &#039;&#039;float&#039;&#039; &#039;&#039;&#039;y&#039;&#039;&#039; - The y position of the vehicle.&lt;br /&gt;
* &#039;&#039;float&#039;&#039; &#039;&#039;&#039;z&#039;&#039;&#039; - The z position of the vehicle.&lt;br /&gt;
* &#039;&#039;float&#039;&#039; &#039;&#039;&#039;angle&#039;&#039;&#039; - The rotation angle of the vehicle.&lt;br /&gt;
* &#039;&#039;int&#039;&#039; &#039;&#039;&#039;col1&#039;&#039;&#039; - The Color1 of the vehicle.&lt;br /&gt;
* &#039;&#039;int&#039;&#039; &#039;&#039;&#039;col2&#039;&#039;&#039; - The Color2 of the vehicle.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
function onServerStart(){&lt;br /&gt;
  CreateVehicle( 171, 0, -848.975,-466.336,10.1645, 360.255, 68, 39 );&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/onServerStart|onServerStart]] were used in this example. More info about them in the corresponding pages.&lt;br /&gt;
&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
{{Scripting/Squirrel/Functions/Vehicle_Functions}}&lt;br /&gt;
[[Category:Scripting/Squirrel/Functions/Vehicle_Functions]]&lt;/div&gt;</summary>
		<author><name>Dracc</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Vehicle.IsGhost&amp;diff=20214</id>
		<title>Scripting/Squirrel/Functions/Vehicle.IsGhost</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/Vehicle.IsGhost&amp;diff=20214"/>
		<updated>2019-04-26T10:39:34Z</updated>

		<summary type="html">&lt;p&gt;Dracc: Add description and sloppy examples.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Get or Set the vehicle `IsGhost` boolean property.&lt;br /&gt;
Ghost cars don&#039;t collide with other vehicles or players but still interact with the world.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;Vehicle.IsGhost&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
* &#039;&#039;None&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
1. Set vehicle to `ghost`&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
Vehicle.IsGhost = true;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
2. Unset vehicle `ghost` property&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
Vehicle.IsGhost = false;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
3. Probe to see whether or not a vehicle is a ghost&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
local vehicleIsGhost = Vehicle.IsGhost;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
{{Scripting/Squirrel/Functions/Vehicle_Functions}}&lt;br /&gt;
[[Category:Scripting/Squirrel/Functions/Vehicle_Functions]]&lt;/div&gt;</summary>
		<author><name>Dracc</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/mysql_connect&amp;diff=20213</id>
		<title>Scripting/Squirrel/Functions/mysql connect</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/mysql_connect&amp;diff=20213"/>
		<updated>2019-04-26T10:30:57Z</updated>

		<summary type="html">&lt;p&gt;Dracc: Add argument type declaration and cleanup the example.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function will connect to a MySQL database on the server.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
mysql_connect( host, dbuser, dbpassword, dbname);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
* &#039;&#039;string&#039;&#039; &#039;&#039;&#039;host&#039;&#039;&#039; - The host of the MySQL database (Most cases &amp;quot;localhost&amp;quot;)&lt;br /&gt;
* &#039;&#039;string&#039;&#039; &#039;&#039;&#039;dbuser&#039;&#039;&#039; - The MySQL user name.&lt;br /&gt;
* &#039;&#039;string&#039;&#039; &#039;&#039;&#039;dbpassword&#039;&#039;&#039; - The MySQL user password.&lt;br /&gt;
* &#039;&#039;string&#039;&#039; &#039;&#039;&#039;dbname&#039;&#039;&#039; - The MySQL database name.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
function onScriptLoad() {&lt;br /&gt;
  db &amp;lt;- mysql_connect( &amp;quot;localhost&amp;quot;, &amp;quot;vcmp&amp;quot;, &amp;quot;test123&amp;quot;, &amp;quot;vcmpdb&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Notes ===&lt;br /&gt;
You can also remotely connect to a MySQL database, replace &amp;quot;localhost&amp;quot; with the remote host IP and make sure the host accepts remote connections.&lt;br /&gt;
&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
{{Scripting/Squirrel/Functions/MySQL Functions}}&lt;br /&gt;
[[Category:Scripting/Squirrel/Functions/Mysql_Functions]]&lt;/div&gt;</summary>
		<author><name>Dracc</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=OnServerStart&amp;diff=20212</id>
		<title>OnServerStart</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=OnServerStart&amp;diff=20212"/>
		<updated>2019-04-26T10:27:40Z</updated>

		<summary type="html">&lt;p&gt;Dracc: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Syntax ==&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
onServerStart()&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
* &#039;&#039;None&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
The following example will print &amp;quot;Hello World!&amp;quot; when the server is started.&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
function onServerStart() {&lt;br /&gt;
  print( &amp;quot;Hello World!&amp;quot; );&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
Function print() was used in this example.The print() function outputs a formatted string on the console.&lt;br /&gt;
&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
{{Scripting/Squirrel/Events/Server_Events}}&lt;br /&gt;
[[Category:Scripting/Squirrel/Events/Server_Events]]&lt;/div&gt;</summary>
		<author><name>Dracc</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=OnScriptUnload&amp;diff=20211</id>
		<title>OnScriptUnload</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=OnScriptUnload&amp;diff=20211"/>
		<updated>2019-04-26T10:25:51Z</updated>

		<summary type="html">&lt;p&gt;Dracc: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Description ==&lt;br /&gt;
Executed when the script is removed from memory&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;squirrel&amp;quot;&amp;gt;&lt;br /&gt;
function onScriptUnload()&lt;br /&gt;
{&lt;br /&gt;
	print( &amp;quot;== Unloaded Squirrel VC:MP Script ==&amp;quot; );&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
{{Scripting/Squirrel/Events/Server_Events}}&lt;br /&gt;
[[Category:Scripting/Squirrel/Events/Server_Events]]&lt;/div&gt;</summary>
		<author><name>Dracc</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=OnScriptLoad&amp;diff=20210</id>
		<title>OnScriptLoad</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=OnScriptLoad&amp;diff=20210"/>
		<updated>2019-04-26T10:25:16Z</updated>

		<summary type="html">&lt;p&gt;Dracc: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Description ==&lt;br /&gt;
Executed whenever the script is loaded (including reload)&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;squirrel&amp;quot;&amp;gt;&lt;br /&gt;
function onScriptLoad()&lt;br /&gt;
{&lt;br /&gt;
    print( &amp;quot;== Loaded Squirrel VC:MP Script ==&amp;quot; );&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/Server_Events}}&lt;br /&gt;
[[Category:Scripting/Squirrel/Events/Server_Events]]&lt;/div&gt;</summary>
		<author><name>Dracc</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/QuerySQL&amp;diff=20209</id>
		<title>Scripting/Squirrel/Functions/QuerySQL</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/QuerySQL&amp;diff=20209"/>
		<updated>2019-04-26T10:24:17Z</updated>

		<summary type="html">&lt;p&gt;Dracc: Add an example and description&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This function will send a query to the database.&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;QuerySQL(database, queryString);&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
* &#039;&#039;SQLiteDB&#039;&#039; &#039;&#039;&#039;database&#039;&#039;&#039; - The database to query&lt;br /&gt;
* &#039;&#039;string&#039;&#039; &#039;&#039;&#039;queryString&#039;&#039;&#039; - The SQL query to send&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;source lang=squirrel&amp;gt;&lt;br /&gt;
function onScriptLoad() {&lt;br /&gt;
  db &amp;lt;- ConnectSQL(&amp;quot;scripts/keybinds.db&amp;quot;);&lt;br /&gt;
  if (!db) {&lt;br /&gt;
    print(&amp;quot;ERROR: SQLite database file could not be opened&amp;quot;);&lt;br /&gt;
  }&lt;br /&gt;
  QuerySQL(db, &amp;quot;CREATE TABLE IF NOT EXISTS players(name TEXT, password TEXT, &amp;quot; +&lt;br /&gt;
           &amp;quot;level INTEGER, PRIMARY KEY(name,password));&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
=== Notes ===&lt;br /&gt;
Calls [[onScriptLoad]], [[ConnectSQL]] and [[print]] 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/SQLite Functions}}&lt;br /&gt;
[[Category:Scripting/Squirrel/Functions/SQLite _Functions]]&lt;/div&gt;</summary>
		<author><name>Dracc</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/ConnectSQL&amp;diff=20208</id>
		<title>Scripting/Squirrel/Functions/ConnectSQL</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/ConnectSQL&amp;diff=20208"/>
		<updated>2019-04-26T10:14:21Z</updated>

		<summary type="html">&lt;p&gt;Dracc: /* Usage */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Usage ==&lt;br /&gt;
To use SQLite you need to first download the sqlite plugin from [https://bitbucket.org/stormeus/0.4-sqlite/downloads[here]]. Once you have downloaded it place the plugin in your plugins folder and load the plugin in your server.cfg by adding a line in plugins that is for 32 bit users it is &#039;&#039;&#039;sqlite04rel32&#039;&#039;&#039; and for 64 bit users it is &#039;&#039;&#039;sqlite04rel64&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
To connect a database you need to use something like&lt;br /&gt;
&amp;lt;source lang=javascript&amp;gt;function onScriptLoad()&lt;br /&gt;
{&lt;br /&gt;
    db &amp;lt;- ConnectSQL( &amp;quot;Database.db&amp;quot; );&lt;br /&gt;
}&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Adding tables to your database ==&lt;br /&gt;
You can add a table to your database by using the following function that is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=javascript&amp;gt;QuerySQL( db, &amp;quot;CREATE TABLE IF NOT EXISTS YOUR_TABLE_NAME( COLUMN1 TEXT, COLUMN2 TEXT )&amp;quot; );&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The Argument for your column can be used according to what you are storing/inserting to it. If you wished to insert/store a number you can change the TEXT to NUMERIC. If its a text you can use TEXT.&lt;br /&gt;
&lt;br /&gt;
== Related Functions ==&lt;br /&gt;
&lt;br /&gt;
{{Scripting/Squirrel/Functions/SQLite Functions}}&lt;br /&gt;
[[Category:Scripting/Squirrel/Functions/SQLite _Functions]]&lt;/div&gt;</summary>
		<author><name>Dracc</name></author>
	</entry>
	<entry>
		<id>http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/GetSQLNextRow&amp;diff=20207</id>
		<title>Scripting/Squirrel/Functions/GetSQLNextRow</title>
		<link rel="alternate" type="text/html" href="http://wiki.vc-mp.org/index.php?title=Scripting/Squirrel/Functions/GetSQLNextRow&amp;diff=20207"/>
		<updated>2019-04-26T10:13:13Z</updated>

		<summary type="html">&lt;p&gt;Dracc: Cleanup example code&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Calling GetSQLNextRow switches from the current row in a query to the next row, which allows you to read from that row with GetSQLColumnData.&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;function GetSQLNextRow( query )&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
* &#039;&#039;&#039;Query&#039;&#039;&#039; - A reference to the query that was previously executed.&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;
function GetAlias(uniqueid) {&lt;br /&gt;
  // Select all the rows that has the same uniqueid as the entered value.&lt;br /&gt;
  local query = QuerySQL(sdb, &amp;quot;SELECT namecolumn FROM tablename WHERE uniqueidcolumn = &#039;&amp;quot; + uniqueid + &amp;quot;&#039;&amp;quot;);&lt;br /&gt;
  // Store the first name.&lt;br /&gt;
  local string = GetSQLColumnData(query, 0);&lt;br /&gt;
&lt;br /&gt;
  // Get the second name when the loop starts and continue getting the next row after that until no rows are left.&lt;br /&gt;
  while (GetSQLNextRow(query)) {		&lt;br /&gt;
    string += &amp;quot;, &amp;quot; + GetSQLColumnData(query, 0);&lt;br /&gt;
  }&lt;br /&gt;
  string += &amp;quot;.&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
  // Return the string containing the aliases. &lt;br /&gt;
  return string;&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/SQLite Functions}}&lt;br /&gt;
[[Category:Scripting/Squirrel/Functions/SQLite _Functions]]&lt;/div&gt;</summary>
		<author><name>Dracc</name></author>
	</entry>
</feed>