<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://dev.playonset.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Kuzkay</id>
	<title>Onset Developer Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://dev.playonset.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Kuzkay"/>
	<link rel="alternate" type="text/html" href="https://dev.playonset.com/wiki/Special:Contributions/Kuzkay"/>
	<updated>2026-04-24T08:45:54Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://dev.playonset.com/index.php?title=SetCameraRotation&amp;diff=3054</id>
		<title>SetCameraRotation</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=SetCameraRotation&amp;diff=3054"/>
		<updated>2019-11-25T21:00:37Z</updated>

		<summary type="html">&lt;p&gt;Kuzkay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Info|Function|Client|1.0}}&lt;br /&gt;
&lt;br /&gt;
{{FuncDescription|__EDIT_ME__}}&lt;br /&gt;
&lt;br /&gt;
{{FuncSyntax|SetCameraRotation(pitch, yaw, roll [, bWorldSpace])}}&lt;br /&gt;
&lt;br /&gt;
{{FuncParameters}}&lt;br /&gt;
{{FuncParam|pitch|__EDIT_ME__}}&lt;br /&gt;
{{FuncParam|yaw|__EDIT_ME__}}&lt;br /&gt;
{{FuncParam|roll |__EDIT_ME__}}&lt;br /&gt;
{{FuncParamOptional|bWorldSpace|&#039;&#039;&#039;true&#039;&#039;&#039; for world space, &#039;&#039;&#039;false&#039;&#039;&#039; for relative location.}}&lt;br /&gt;
&lt;br /&gt;
{{FuncReturnValue|__EDIT_ME__}}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
__EDIT_ME__&lt;br /&gt;
&lt;br /&gt;
{{RelatedFunctions}}&lt;br /&gt;
__EDIT_ME__&lt;/div&gt;</summary>
		<author><name>Kuzkay</name></author>
	</entry>
	<entry>
		<id>https://dev.playonset.com/index.php?title=SetCameraLocation&amp;diff=3053</id>
		<title>SetCameraLocation</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=SetCameraLocation&amp;diff=3053"/>
		<updated>2019-11-25T21:00:21Z</updated>

		<summary type="html">&lt;p&gt;Kuzkay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Info|Function|Client|1.0}}&lt;br /&gt;
&lt;br /&gt;
{{FuncDescription|__EDIT_ME__}}&lt;br /&gt;
&lt;br /&gt;
{{FuncSyntax|SetCameraLocation(x, y, z [, bWorldSpace])}}&lt;br /&gt;
&lt;br /&gt;
{{FuncParameters}}&lt;br /&gt;
{{FuncParam|x|__EDIT_ME__}}&lt;br /&gt;
{{FuncParam|y|__EDIT_ME__}}&lt;br /&gt;
{{FuncParam|z|__EDIT_ME__}}&lt;br /&gt;
{{FuncParamOptional|bWorldSpace|&#039;&#039;&#039;true&#039;&#039;&#039; for world space, &#039;&#039;&#039;false&#039;&#039;&#039; for relative location.}}&lt;br /&gt;
&lt;br /&gt;
{{FuncReturnValue|__EDIT_ME__}}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
__EDIT_ME__&lt;br /&gt;
&lt;br /&gt;
{{RelatedFunctions}}&lt;br /&gt;
__EDIT_ME__&lt;/div&gt;</summary>
		<author><name>Kuzkay</name></author>
	</entry>
	<entry>
		<id>https://dev.playonset.com/index.php?title=CreateNPC&amp;diff=2674</id>
		<title>CreateNPC</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=CreateNPC&amp;diff=2674"/>
		<updated>2019-11-15T20:14:08Z</updated>

		<summary type="html">&lt;p&gt;Kuzkay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Info|Function|Server|1.0}}&lt;br /&gt;
&lt;br /&gt;
{{FuncDescription|__EDIT_ME__}}&lt;br /&gt;
&lt;br /&gt;
{{FuncSyntax|CreateNPC(x, y, z, h)}}&lt;br /&gt;
&lt;br /&gt;
{{FuncParameters}}&lt;br /&gt;
{{FuncParam|x|X location}}&lt;br /&gt;
{{FuncParam|y|Y location}}&lt;br /&gt;
{{FuncParam|z|Z location}}&lt;br /&gt;
{{FuncParam|h|Heading of the npc}}&lt;br /&gt;
&lt;br /&gt;
{{FuncReturnValue|__EDIT_ME__}}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
__EDIT_ME__&lt;br /&gt;
&lt;br /&gt;
{{RelatedFunctions}}&lt;br /&gt;
__EDIT_ME__&lt;/div&gt;</summary>
		<author><name>Kuzkay</name></author>
	</entry>
	<entry>
		<id>https://dev.playonset.com/index.php?title=SetPickupVisibleForPlayers&amp;diff=2639</id>
		<title>SetPickupVisibleForPlayers</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=SetPickupVisibleForPlayers&amp;diff=2639"/>
		<updated>2019-11-13T21:46:48Z</updated>

		<summary type="html">&lt;p&gt;Kuzkay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Info|Function|Server|1.0}}&lt;br /&gt;
&lt;br /&gt;
{{FuncDescription|Set pickup visible only for a certain array of players}}&lt;br /&gt;
&lt;br /&gt;
{{FuncSyntax|SetPickupVisibleForPlayers(Pickup, Players)}}&lt;br /&gt;
&lt;br /&gt;
{{FuncParameters}}&lt;br /&gt;
{{FuncParam|Pickup|ID of the pickup}}&lt;br /&gt;
{{FuncParam|Players|Player list in a form of an array}}&lt;br /&gt;
&lt;br /&gt;
{{FuncReturnValue|Returns &#039;&#039;&#039;true&#039;&#039;&#039; on success.}}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;Lua&amp;quot;&amp;gt;&lt;br /&gt;
function OnPackageStart()&lt;br /&gt;
   local pickup = CreatePickup(2, 1000, 5330, 1503)&lt;br /&gt;
&lt;br /&gt;
   local players = {}&lt;br /&gt;
   for _, v in pairs(GetAllPlayers()) do&lt;br /&gt;
      --Only players who&#039;s property tag of &amp;quot;team&amp;quot; has been set to &amp;quot;zombie&amp;quot;&lt;br /&gt;
      if GetPlayerPropertyValue(v, &amp;quot;team&amp;quot;) == &amp;quot;zombie&amp;quot; then&lt;br /&gt;
         table.insert(players, v)&lt;br /&gt;
      end&lt;br /&gt;
   end&lt;br /&gt;
   &lt;br /&gt;
   SetPickupVisibleForPlayers(pickup, players)   &lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
AddEvent(&#039;OnPackageStart&#039;, OnPackageStart)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{RelatedFunctions}}&lt;br /&gt;
__EDIT_ME__&lt;/div&gt;</summary>
		<author><name>Kuzkay</name></author>
	</entry>
	<entry>
		<id>https://dev.playonset.com/index.php?title=SetPickupVisibleForPlayers&amp;diff=2638</id>
		<title>SetPickupVisibleForPlayers</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=SetPickupVisibleForPlayers&amp;diff=2638"/>
		<updated>2019-11-13T21:44:49Z</updated>

		<summary type="html">&lt;p&gt;Kuzkay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Info|Function|Server|1.0}}&lt;br /&gt;
&lt;br /&gt;
{{FuncDescription|Set pickup visible only for a certain array of players}}&lt;br /&gt;
&lt;br /&gt;
{{FuncSyntax|SetPickupVisibleForPlayers(Pickup, Players)}}&lt;br /&gt;
&lt;br /&gt;
{{FuncParameters}}&lt;br /&gt;
{{FuncParam|Pickup|ID of the pickup}}&lt;br /&gt;
{{FuncParam|Players|Player list in a form of an array}}&lt;br /&gt;
&lt;br /&gt;
{{FuncReturnValue|Returns &#039;&#039;&#039;true&#039;&#039;&#039; on success.}}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;Lua&amp;quot;&amp;gt;&lt;br /&gt;
function OnPackageStart()&lt;br /&gt;
   local pickup = CreatePickup(2, 1000, 5330, 1503)&lt;br /&gt;
&lt;br /&gt;
   local players = {}&lt;br /&gt;
   for _, v in pairs(GetAllPlayers()) do&lt;br /&gt;
      --Only players who&#039;s property tag of &amp;quot;team&amp;quot; has been set to &amp;quot;zombie&amp;quot;&lt;br /&gt;
      if GetPlayerPropertyValue(v, &#039;team&#039;) == &amp;quot;zombie&amp;quot; then&lt;br /&gt;
         table.insert(players, v)&lt;br /&gt;
      end&lt;br /&gt;
   end&lt;br /&gt;
   &lt;br /&gt;
   SetPickupVisibleForPlayers(pickup, players)   &lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
AddEvent(&#039;OnPackageStart&#039;, OnPackageStart)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{RelatedFunctions}}&lt;br /&gt;
__EDIT_ME__&lt;/div&gt;</summary>
		<author><name>Kuzkay</name></author>
	</entry>
	<entry>
		<id>https://dev.playonset.com/index.php?title=SetPickupVisibleForPlayers&amp;diff=2637</id>
		<title>SetPickupVisibleForPlayers</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=SetPickupVisibleForPlayers&amp;diff=2637"/>
		<updated>2019-11-13T21:44:03Z</updated>

		<summary type="html">&lt;p&gt;Kuzkay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Info|Function|Server|1.0}}&lt;br /&gt;
&lt;br /&gt;
{{FuncDescription|Set pickup visible only for a certain array of players}}&lt;br /&gt;
&lt;br /&gt;
{{FuncSyntax|SetPickupVisibleForPlayers(Pickup, Players)}}&lt;br /&gt;
&lt;br /&gt;
{{FuncParameters}}&lt;br /&gt;
{{FuncParam|Pickup|ID of the pickup}}&lt;br /&gt;
{{FuncParam|Players|Player list in a form of an array}}&lt;br /&gt;
&lt;br /&gt;
{{FuncReturnValue|Returns &#039;&#039;&#039;true&#039;&#039;&#039; on success.}}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;Lua&amp;quot;&amp;gt;&lt;br /&gt;
function OnPackageStart()&lt;br /&gt;
   local pickup = CreatePickup(2, 1000, 5330, 1503)&lt;br /&gt;
&lt;br /&gt;
   local players = {}&lt;br /&gt;
   for _, v in pairs(GetAllPlayers()) do&lt;br /&gt;
      if GetPlayerPropertyValue(v, &#039;team&#039;) == &amp;quot;zombie&amp;quot; then&lt;br /&gt;
         table.insert(players, v)&lt;br /&gt;
      end&lt;br /&gt;
   end&lt;br /&gt;
   &lt;br /&gt;
   SetPickupVisibleForPlayers(pickup, players)   &lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
AddEvent(&#039;OnPackageStart&#039;, OnPackageStart)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{RelatedFunctions}}&lt;br /&gt;
__EDIT_ME__&lt;/div&gt;</summary>
		<author><name>Kuzkay</name></author>
	</entry>
	<entry>
		<id>https://dev.playonset.com/index.php?title=SetPickupVisibleForPlayers&amp;diff=2636</id>
		<title>SetPickupVisibleForPlayers</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=SetPickupVisibleForPlayers&amp;diff=2636"/>
		<updated>2019-11-13T21:43:30Z</updated>

		<summary type="html">&lt;p&gt;Kuzkay: Created page with &amp;quot;{{Info|Function|Server|1.0}}  {{FuncDescription|Set pickup visible only for a certain array of players}}  {{FuncSyntax|StartPackage(PackageName)}}  {{FuncParameters}} {{FuncPa...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Info|Function|Server|1.0}}&lt;br /&gt;
&lt;br /&gt;
{{FuncDescription|Set pickup visible only for a certain array of players}}&lt;br /&gt;
&lt;br /&gt;
{{FuncSyntax|StartPackage(PackageName)}}&lt;br /&gt;
&lt;br /&gt;
{{FuncParameters}}&lt;br /&gt;
{{FuncParam|Pickup|ID of the pickup}}&lt;br /&gt;
{{FuncParam|Players|Player list in a form of an array}}&lt;br /&gt;
&lt;br /&gt;
{{FuncReturnValue|Returns &#039;&#039;&#039;true&#039;&#039;&#039; on success.}}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;Lua&amp;quot;&amp;gt;&lt;br /&gt;
function OnPackageStart()&lt;br /&gt;
   local pickup = CreatePickup(2, 1000, 5330, 1503)&lt;br /&gt;
&lt;br /&gt;
   local players = {}&lt;br /&gt;
   for _, v in pairs(GetAllPlayers()) do&lt;br /&gt;
      if GetPlayerPropertyValue(v, &#039;team&#039;) == &amp;quot;zombie&amp;quot; then&lt;br /&gt;
         table.insert(players, v)&lt;br /&gt;
      end&lt;br /&gt;
   end&lt;br /&gt;
   &lt;br /&gt;
   SetPickupVisibleForPlayers(pickup, players)   &lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
AddEvent(&#039;OnPackageStart&#039;, OnPackageStart)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{RelatedFunctions}}&lt;br /&gt;
__EDIT_ME__&lt;/div&gt;</summary>
		<author><name>Kuzkay</name></author>
	</entry>
	<entry>
		<id>https://dev.playonset.com/index.php?title=SetPlayerRespawnTime&amp;diff=2635</id>
		<title>SetPlayerRespawnTime</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=SetPlayerRespawnTime&amp;diff=2635"/>
		<updated>2019-11-13T20:29:19Z</updated>

		<summary type="html">&lt;p&gt;Kuzkay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Info|Function|Server|1.0}}&lt;br /&gt;
&lt;br /&gt;
{{FuncDescription|Sets the time it takes for player to respawn after their death}}&lt;br /&gt;
&lt;br /&gt;
{{FuncSyntax|SetPlayerRespawnTime(player, mstime)}}&lt;br /&gt;
&lt;br /&gt;
{{FuncParameters}}&lt;br /&gt;
{{FuncParam|player|Player ID}}&lt;br /&gt;
{{FuncParam|mstime|Time in milliseoncds}}&lt;br /&gt;
&lt;br /&gt;
{{FuncReturnValue|__EDIT_ME__}}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;Lua&amp;quot;&amp;gt;&lt;br /&gt;
--All players default Respawn time will be set to 30 seconds when they join the server&lt;br /&gt;
AddEvent(&amp;quot;OnPlayerJoin&amp;quot;, function (player)&lt;br /&gt;
	SetPlayerRespawnTime(player, 30000)&lt;br /&gt;
end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{RelatedFunctions}}&lt;br /&gt;
__EDIT_ME__&lt;/div&gt;</summary>
		<author><name>Kuzkay</name></author>
	</entry>
	<entry>
		<id>https://dev.playonset.com/index.php?title=GetPlayerIP&amp;diff=2634</id>
		<title>GetPlayerIP</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=GetPlayerIP&amp;diff=2634"/>
		<updated>2019-11-13T20:27:34Z</updated>

		<summary type="html">&lt;p&gt;Kuzkay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Info|Function|Server|1.0}}&lt;br /&gt;
&lt;br /&gt;
{{FuncDescription|Returns players IP address}}&lt;br /&gt;
&lt;br /&gt;
{{FuncSyntax|GetPlayerIP(player)}}&lt;br /&gt;
&lt;br /&gt;
{{FuncParameters}}&lt;br /&gt;
{{FuncParam|player|Player whos IP address you want to get}}&lt;br /&gt;
&lt;br /&gt;
{{FuncReturnValue|Players IP Address}}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;Lua&amp;quot;&amp;gt;&lt;br /&gt;
--Do not use this without verifying if user using this command is an admin!!&lt;br /&gt;
function getIP(player, otherplayer)&lt;br /&gt;
   local otherplayer = tonumber(otherplayer)&lt;br /&gt;
   AddPlayerChat(player, GetPlayerName(otherplayer) .. &amp;quot;&#039;s IP address is: &amp;quot; .. GetPlayerIP(otherplayer))&lt;br /&gt;
end&lt;br /&gt;
AddCommand(&#039;getip&#039;, getIP)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{RelatedFunctions}}&lt;br /&gt;
__EDIT_ME__&lt;/div&gt;</summary>
		<author><name>Kuzkay</name></author>
	</entry>
	<entry>
		<id>https://dev.playonset.com/index.php?title=StopPackage&amp;diff=2633</id>
		<title>StopPackage</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=StopPackage&amp;diff=2633"/>
		<updated>2019-11-13T20:24:53Z</updated>

		<summary type="html">&lt;p&gt;Kuzkay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Info|Function|Server|1.0}}&lt;br /&gt;
&lt;br /&gt;
{{FuncDescription|Stops a package during runtime. If a client downloads files from it, the download will be cancelled.}}&lt;br /&gt;
&lt;br /&gt;
{{FuncSyntax|StopPackage(PackageName)}}&lt;br /&gt;
&lt;br /&gt;
{{FuncParameters}}&lt;br /&gt;
{{FuncParam|PackageName|The name of the package.}}&lt;br /&gt;
&lt;br /&gt;
{{FuncReturnValue|Returns &#039;&#039;&#039;true&#039;&#039;&#039; on success.}}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;Lua&amp;quot;&amp;gt;&lt;br /&gt;
function cmd_restartpack(player, package_)&lt;br /&gt;
	StopPackage(package_)&lt;br /&gt;
&lt;br /&gt;
	Delay(500, function()&lt;br /&gt;
		StartPackage(package_)&lt;br /&gt;
	end)&lt;br /&gt;
end&lt;br /&gt;
AddCommand(&amp;quot;restartpack&amp;quot;, cmd_restartpack)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{RelatedFunctions}}&lt;br /&gt;
__EDIT_ME__&lt;/div&gt;</summary>
		<author><name>Kuzkay</name></author>
	</entry>
	<entry>
		<id>https://dev.playonset.com/index.php?title=StartPackage&amp;diff=2632</id>
		<title>StartPackage</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=StartPackage&amp;diff=2632"/>
		<updated>2019-11-13T20:24:44Z</updated>

		<summary type="html">&lt;p&gt;Kuzkay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Info|Function|Server|1.0}}&lt;br /&gt;
&lt;br /&gt;
{{FuncDescription|Start a package during runtime. If the package contains client files, they will be downloaded during the game.}}&lt;br /&gt;
&lt;br /&gt;
{{FuncSyntax|StartPackage(PackageName)}}&lt;br /&gt;
&lt;br /&gt;
{{FuncParameters}}&lt;br /&gt;
{{FuncParam|PackageName|The name of the package.}}&lt;br /&gt;
&lt;br /&gt;
{{FuncReturnValue|Returns &#039;&#039;&#039;true&#039;&#039;&#039; on success.}}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;Lua&amp;quot;&amp;gt;&lt;br /&gt;
function cmd_restartpack(player, package_)&lt;br /&gt;
	StopPackage(package_)&lt;br /&gt;
&lt;br /&gt;
	Delay(500, function()&lt;br /&gt;
		StartPackage(package_)&lt;br /&gt;
	end)&lt;br /&gt;
end&lt;br /&gt;
AddCommand(&amp;quot;restartpack&amp;quot;, cmd_restartpack)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{RelatedFunctions}}&lt;br /&gt;
__EDIT_ME__&lt;/div&gt;</summary>
		<author><name>Kuzkay</name></author>
	</entry>
	<entry>
		<id>https://dev.playonset.com/index.php?title=GetVehicleModelName&amp;diff=2631</id>
		<title>GetVehicleModelName</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=GetVehicleModelName&amp;diff=2631"/>
		<updated>2019-11-13T20:23:43Z</updated>

		<summary type="html">&lt;p&gt;Kuzkay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Info|Function|Server|1.0}}&lt;br /&gt;
&lt;br /&gt;
{{FuncDescription|Returns the name of the vehicle model by its ID}}&lt;br /&gt;
&lt;br /&gt;
{{FuncSyntax|GetVehicleModelName(vehicle)}}&lt;br /&gt;
&lt;br /&gt;
{{FuncParameters}}&lt;br /&gt;
{{FuncParam|vehicle|Vehicle you want to get the model name of}}&lt;br /&gt;
&lt;br /&gt;
{{FuncReturnValue|The name of the vehicle model}}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;Lua&amp;quot;&amp;gt;&lt;br /&gt;
function getVehName(player, vehicle, seat)&lt;br /&gt;
   AddPlayerChat(player, &amp;quot;You&#039;ve entered a &amp;quot; .. GetVehicleModelName(veh))&lt;br /&gt;
end&lt;br /&gt;
AddEvent(&#039;OnPlayerEnterVehicle&#039;, getVehName)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{RelatedFunctions}}&lt;br /&gt;
__EDIT_ME__&lt;/div&gt;</summary>
		<author><name>Kuzkay</name></author>
	</entry>
	<entry>
		<id>https://dev.playonset.com/index.php?title=SetPlayerArmor&amp;diff=2630</id>
		<title>SetPlayerArmor</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=SetPlayerArmor&amp;diff=2630"/>
		<updated>2019-11-13T20:21:00Z</updated>

		<summary type="html">&lt;p&gt;Kuzkay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Info|Function|Server|1.0}}&lt;br /&gt;
&lt;br /&gt;
{{FuncDescription|__EDIT_ME__}}&lt;br /&gt;
&lt;br /&gt;
{{FuncSyntax|SetPlayerArmor(player, armor)}}&lt;br /&gt;
&lt;br /&gt;
{{FuncParameters}}&lt;br /&gt;
{{FuncParam|player|The player identifier.}}&lt;br /&gt;
{{FuncParam|armor|The armor value.}}&lt;br /&gt;
&lt;br /&gt;
{{FuncReturnValue|This function doesn&#039;t have a return value.}}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;Lua&amp;quot;&amp;gt;&lt;br /&gt;
--This command allows players to set refill their armor&lt;br /&gt;
function armor(player)&lt;br /&gt;
   SetPlayerArmor(player, 100)&lt;br /&gt;
end&lt;br /&gt;
AddCommand(&#039;armor&#039;, armor)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{RelatedFunctions}}&lt;br /&gt;
[[GetPlayerArmor]]&lt;/div&gt;</summary>
		<author><name>Kuzkay</name></author>
	</entry>
	<entry>
		<id>https://dev.playonset.com/index.php?title=RemovePlayerFromVehicle&amp;diff=2629</id>
		<title>RemovePlayerFromVehicle</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=RemovePlayerFromVehicle&amp;diff=2629"/>
		<updated>2019-11-13T20:19:35Z</updated>

		<summary type="html">&lt;p&gt;Kuzkay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Info|Function|Server|1.0}}&lt;br /&gt;
&lt;br /&gt;
{{FuncDescription|Used to kick players from vehicles/force exit}}&lt;br /&gt;
&lt;br /&gt;
{{FuncSyntax|RemovePlayerFromVehicle(player)}}&lt;br /&gt;
&lt;br /&gt;
{{FuncParameters}}&lt;br /&gt;
{{FuncParam|player|Player you want to kick out of a vehicle}}&lt;br /&gt;
&lt;br /&gt;
{{FuncReturnValue|__EDIT_ME__}}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;Lua&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
function cmd_eject(player, otherplayer)&lt;br /&gt;
	&lt;br /&gt;
	if (otherplayer == nil) then&lt;br /&gt;
		return AddPlayerChat(player, &amp;quot;Usage: /eject &amp;lt;player&amp;gt;&amp;quot;)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	otherplayer = tonumber(otherplayer)&lt;br /&gt;
&lt;br /&gt;
	if (not IsValidPlayer(otherplayer)) then&lt;br /&gt;
		return AddPlayerChat(player, &amp;quot;Selected player does not exist&amp;quot;)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if (GetPlayerVehicle(otherplayer) == 0) then&lt;br /&gt;
		return AddPlayerChat(player, &amp;quot;Selected player is not in a vehicle&amp;quot;)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local x, y, z = GetPlayerLocation(otherplayer)&lt;br /&gt;
	SetPlayerLocation(otherplayer, x, y, z + 300)&lt;br /&gt;
&lt;br /&gt;
	AddPlayerChat(player, &amp;quot;You have ejected &amp;quot;..GetPlayerName(otherplayer)..&amp;quot;(&amp;quot;..otherplayer..&amp;quot;) from their vehicle&amp;quot;)&lt;br /&gt;
end&lt;br /&gt;
AddCommand(&amp;quot;eject&amp;quot;, cmd_eject)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{RelatedFunctions}}&lt;br /&gt;
__EDIT_ME__&lt;/div&gt;</summary>
		<author><name>Kuzkay</name></author>
	</entry>
	<entry>
		<id>https://dev.playonset.com/index.php?title=SetPlayerHealth&amp;diff=2628</id>
		<title>SetPlayerHealth</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=SetPlayerHealth&amp;diff=2628"/>
		<updated>2019-11-13T20:18:06Z</updated>

		<summary type="html">&lt;p&gt;Kuzkay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Info|Function|Server|1.0}}&lt;br /&gt;
&lt;br /&gt;
{{FuncDescription|You can use this to set players health (0-100)}}&lt;br /&gt;
&lt;br /&gt;
{{FuncSyntax|SetPlayerHealth(player, health)}}&lt;br /&gt;
&lt;br /&gt;
{{FuncParameters}}&lt;br /&gt;
{{FuncParam|player|Player you want to set health of}}&lt;br /&gt;
{{FuncParam|health|New health value you want to set player to}}&lt;br /&gt;
&lt;br /&gt;
{{FuncReturnValue|__EDIT_ME__}}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;Lua&amp;quot;&amp;gt;&lt;br /&gt;
function heal(player)&lt;br /&gt;
   SetPlayerHealth(player, 100)&lt;br /&gt;
   AddPlayerChat(player, &#039;You/&#039;ve healed yourself&#039;)&lt;br /&gt;
end&lt;br /&gt;
AddCommand(&#039;heal&#039;, heal)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{RelatedFunctions}}&lt;br /&gt;
__EDIT_ME__&lt;/div&gt;</summary>
		<author><name>Kuzkay</name></author>
	</entry>
	<entry>
		<id>https://dev.playonset.com/index.php?title=SetPlayerInVehicle&amp;diff=2627</id>
		<title>SetPlayerInVehicle</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=SetPlayerInVehicle&amp;diff=2627"/>
		<updated>2019-11-13T20:15:38Z</updated>

		<summary type="html">&lt;p&gt;Kuzkay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Info|Function|Server|1.0}}&lt;br /&gt;
&lt;br /&gt;
{{FuncDescription|With this function you can put players inside vehicles or use it to change their seats}}&lt;br /&gt;
&lt;br /&gt;
{{FuncSyntax|SetPlayerInVehicle(player, vehicle [, seat])}}&lt;br /&gt;
&lt;br /&gt;
{{FuncParameters}}&lt;br /&gt;
{{FuncParam|player|Player you want to set in a vehicle}}&lt;br /&gt;
{{FuncParam|vehicle |Vehicle you want to set player into}}&lt;br /&gt;
{{FuncParamOptional|seat|Seat number you want to set player into}}&lt;br /&gt;
&lt;br /&gt;
{{FuncReturnValue|__EDIT_ME__}}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;Lua&amp;quot;&amp;gt;&lt;br /&gt;
--This function enables player to go from passenger seat to driver seat&lt;br /&gt;
function shuff(player)&lt;br /&gt;
   local veh = GetPlayerVehicle(player)&lt;br /&gt;
    --Check if player is inside a vehicle&lt;br /&gt;
   if veh ~= 0 then&lt;br /&gt;
      --if driver seat is empty&lt;br /&gt;
      if GetVehicleDriver(veh) == 0 or not GetVehicleDriver(veh) then&lt;br /&gt;
         if GetPlayerVehicleSeat(player) == 2 then --check if player is in passenger seat&lt;br /&gt;
            SetPlayerInVehicle(player, veh, 1)&lt;br /&gt;
         end&lt;br /&gt;
      end&lt;br /&gt;
   end&lt;br /&gt;
end&lt;br /&gt;
AddCommand(&#039;shuff&#039;, shuff)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
function spawnTaxiCar(player)&lt;br /&gt;
    local x,y,z = GetPlayerLocation(player)&lt;br /&gt;
    local h = GetPlayerHeading(player)&lt;br /&gt;
&lt;br /&gt;
    local veh = CreateVehicle(2, x, y, z, h)&lt;br /&gt;
    SetPlayerInVehicle(player, veh)&lt;br /&gt;
end&lt;br /&gt;
AddCommand(&#039;taxi&#039;, spawnTaxiCar) &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{RelatedFunctions}}&lt;br /&gt;
__EDIT_ME__&lt;/div&gt;</summary>
		<author><name>Kuzkay</name></author>
	</entry>
	<entry>
		<id>https://dev.playonset.com/index.php?title=GetPlayerVehicleSeat&amp;diff=2626</id>
		<title>GetPlayerVehicleSeat</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=GetPlayerVehicleSeat&amp;diff=2626"/>
		<updated>2019-11-13T20:11:34Z</updated>

		<summary type="html">&lt;p&gt;Kuzkay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Info|Function|Server|1.0}}&lt;br /&gt;
&lt;br /&gt;
{{FuncDescription|__EDIT_ME__}}&lt;br /&gt;
&lt;br /&gt;
{{FuncSyntax|GetPlayerVehicleSeat(player)}}&lt;br /&gt;
&lt;br /&gt;
{{FuncParameters}}&lt;br /&gt;
{{FuncParam|player|Player whos seat you want to get}}&lt;br /&gt;
&lt;br /&gt;
{{FuncReturnValue|ID of the vehicle seat player is in}}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;Lua&amp;quot;&amp;gt;&lt;br /&gt;
function shuff(player)&lt;br /&gt;
   local veh = GetPlayerVehicle(player)&lt;br /&gt;
    --Check if player is inside a vehicle&lt;br /&gt;
   if veh ~= 0 then&lt;br /&gt;
      --if driver seat is empty&lt;br /&gt;
      if GetVehicleDriver(veh) == 0 or not GetVehicleDriver(veh) then&lt;br /&gt;
         if GetPlayerVehicleSeat(player) == 2 then --check if player is in passenger seat&lt;br /&gt;
            SetPlayerInVehicle(player, veh, 1)&lt;br /&gt;
         end&lt;br /&gt;
      end&lt;br /&gt;
   end&lt;br /&gt;
end&lt;br /&gt;
AddCommand(&#039;shuff&#039;, shuff)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{RelatedFunctions}}&lt;br /&gt;
__EDIT_ME__&lt;/div&gt;</summary>
		<author><name>Kuzkay</name></author>
	</entry>
	<entry>
		<id>https://dev.playonset.com/index.php?title=StopVehicleEngine&amp;diff=2625</id>
		<title>StopVehicleEngine</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=StopVehicleEngine&amp;diff=2625"/>
		<updated>2019-11-13T20:06:39Z</updated>

		<summary type="html">&lt;p&gt;Kuzkay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Info|Function|Server|1.0}}&lt;br /&gt;
&lt;br /&gt;
{{FuncDescription|Used to stop vehicle engine}}&lt;br /&gt;
&lt;br /&gt;
{{FuncSyntax|StopVehicleEngine(vehicle)}}&lt;br /&gt;
&lt;br /&gt;
{{FuncParameters}}&lt;br /&gt;
{{FuncParam|vehicle|Vehicle which engine you want to stop}}&lt;br /&gt;
&lt;br /&gt;
{{FuncReturnValue|__EDIT_ME__}}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;Lua&amp;quot;&amp;gt;&lt;br /&gt;
function StopEngine(player)&lt;br /&gt;
   local veh = GetPlayerVehicle(player)&lt;br /&gt;
   if veh ~= 0 then&lt;br /&gt;
      StopVehicleEngine(veh)&lt;br /&gt;
   end&lt;br /&gt;
end&lt;br /&gt;
AddCommand(&#039;engineoff&#039;, StopEngine)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{RelatedFunctions}}&lt;br /&gt;
__EDIT_ME__&lt;/div&gt;</summary>
		<author><name>Kuzkay</name></author>
	</entry>
	<entry>
		<id>https://dev.playonset.com/index.php?title=StartVehicleEngine&amp;diff=2624</id>
		<title>StartVehicleEngine</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=StartVehicleEngine&amp;diff=2624"/>
		<updated>2019-11-13T20:05:20Z</updated>

		<summary type="html">&lt;p&gt;Kuzkay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Info|Function|Server|1.0}}&lt;br /&gt;
&lt;br /&gt;
{{FuncDescription|Used to start vehicle engine}}&lt;br /&gt;
&lt;br /&gt;
{{FuncSyntax|StartVehicleEngine(vehicle)}}&lt;br /&gt;
&lt;br /&gt;
{{FuncParameters}}&lt;br /&gt;
{{FuncParam|vehicle|Vehicle which engine you want to start}}&lt;br /&gt;
&lt;br /&gt;
{{FuncReturnValue|__EDIT_ME__}}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;Lua&amp;quot;&amp;gt;&lt;br /&gt;
function StartEngine(player)&lt;br /&gt;
   local veh = GetPlayerVehicle(player)&lt;br /&gt;
   if veh ~= 0 then&lt;br /&gt;
      StartVehicleEngine(veh)&lt;br /&gt;
   end&lt;br /&gt;
end&lt;br /&gt;
AddCommand(&#039;engine&#039;, StartEngine)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{RelatedFunctions}}&lt;br /&gt;
__EDIT_ME__&lt;/div&gt;</summary>
		<author><name>Kuzkay</name></author>
	</entry>
	<entry>
		<id>https://dev.playonset.com/index.php?title=CreateText3D&amp;diff=2623</id>
		<title>CreateText3D</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=CreateText3D&amp;diff=2623"/>
		<updated>2019-11-13T20:03:14Z</updated>

		<summary type="html">&lt;p&gt;Kuzkay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Info|Function|Server|1.0}}&lt;br /&gt;
&lt;br /&gt;
{{FuncDescription|Creates a 3d text (hologram) which always faces the player camera, only visible from certain range}}&lt;br /&gt;
&lt;br /&gt;
{{FuncSyntax|CreateText3D(text, size, x, y, z, rx, ry, rz)}}&lt;br /&gt;
&lt;br /&gt;
{{FuncParameters}}&lt;br /&gt;
{{FuncParam|text|Text you want to show}}&lt;br /&gt;
{{FuncParam|size|Size of the text}}&lt;br /&gt;
{{FuncParam|x|X position}}&lt;br /&gt;
{{FuncParam|y|Y position}}&lt;br /&gt;
{{FuncParam|z|Z position}}&lt;br /&gt;
{{FuncParam|rx|X rotation}}&lt;br /&gt;
{{FuncParam|ry|Y rotation}}&lt;br /&gt;
{{FuncParam|rz|Z rotation}}&lt;br /&gt;
&lt;br /&gt;
{{FuncReturnValue|__EDIT_ME__}}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;Lua&amp;quot;&amp;gt;&lt;br /&gt;
function OnPackageStart()&lt;br /&gt;
	local i = 1&lt;br /&gt;
	for _ in pairs(Shops) do&lt;br /&gt;
		Shops[i].npc = CreateNPC(Shops[i].npc_model, Shops[i].x, Shops[i].y, Shops[i].z, Shops[i].h)&lt;br /&gt;
		SetNPCAnimation(Shops[i].npc, &amp;quot;CROSSARMS&amp;quot;, true)&lt;br /&gt;
		SetNPCHealth(Shops[i].npc, 999999999)&lt;br /&gt;
		CreateText3D(Shops[i].name, 17, Shops[i].x, Shops[i].y, Shops[i].z + 130, 0,0,0)&lt;br /&gt;
		i = i + 1&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
AddEvent(&amp;quot;OnPackageStart&amp;quot;, OnPackageStart)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{RelatedFunctions}}&lt;br /&gt;
__EDIT_ME__&lt;/div&gt;</summary>
		<author><name>Kuzkay</name></author>
	</entry>
	<entry>
		<id>https://dev.playonset.com/index.php?title=CreateText3D&amp;diff=2622</id>
		<title>CreateText3D</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=CreateText3D&amp;diff=2622"/>
		<updated>2019-11-13T20:02:49Z</updated>

		<summary type="html">&lt;p&gt;Kuzkay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Info|Function|Server|1.0}}&lt;br /&gt;
&lt;br /&gt;
{{FuncDescription|Creates a 3d text (hologram) which always faces the player camera, only visible from certain range}}&lt;br /&gt;
&lt;br /&gt;
{{FuncSyntax|CreateText3D(text, size, x, y, z, rx, ry, rz)}}&lt;br /&gt;
&lt;br /&gt;
{{FuncParameters}}&lt;br /&gt;
{{FuncParam|text|Text you want to show}}&lt;br /&gt;
{{FuncParam|size|Size of the text}}&lt;br /&gt;
{{FuncParam|x|X position}}&lt;br /&gt;
{{FuncParam|y|Y position}}&lt;br /&gt;
{{FuncParam|z|Z position}}&lt;br /&gt;
{{FuncParam|rx|X rotation}}&lt;br /&gt;
{{FuncParam|ry|Y rotation}}&lt;br /&gt;
{{FuncParam|rz|Z rotation}}&lt;br /&gt;
&lt;br /&gt;
{{FuncReturnValue|__EDIT_ME__}}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;Lua&amp;quot;&amp;gt;&lt;br /&gt;
function OnPackageStart()&lt;br /&gt;
&lt;br /&gt;
	Delay(5000, function ()&lt;br /&gt;
		local i = 1&lt;br /&gt;
		for _ in pairs(Shops) do&lt;br /&gt;
			Shops[i].npc = CreateNPC(Shops[i].npc_model, Shops[i].x, Shops[i].y, Shops[i].z, Shops[i].h)&lt;br /&gt;
			SetNPCAnimation(Shops[i].npc, &amp;quot;CROSSARMS&amp;quot;, true)&lt;br /&gt;
			SetNPCHealth(Shops[i].npc, 999999999)&lt;br /&gt;
			CreateText3D(Shops[i].name, 17, Shops[i].x, Shops[i].y, Shops[i].z + 130, 0,0,0)&lt;br /&gt;
			i = i + 1&lt;br /&gt;
		end&lt;br /&gt;
	end)&lt;br /&gt;
	&lt;br /&gt;
end&lt;br /&gt;
AddEvent(&amp;quot;OnPackageStart&amp;quot;, OnPackageStart)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{RelatedFunctions}}&lt;br /&gt;
__EDIT_ME__&lt;/div&gt;</summary>
		<author><name>Kuzkay</name></author>
	</entry>
	<entry>
		<id>https://dev.playonset.com/index.php?title=SetPlayerHeading&amp;diff=2621</id>
		<title>SetPlayerHeading</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=SetPlayerHeading&amp;diff=2621"/>
		<updated>2019-11-13T19:59:41Z</updated>

		<summary type="html">&lt;p&gt;Kuzkay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Info|Function|Server|1.0}}&lt;br /&gt;
&lt;br /&gt;
{{FuncDescription|Sets players heading (rotation)}}&lt;br /&gt;
&lt;br /&gt;
{{FuncSyntax|SetPlayerHeading(player, heading)}}&lt;br /&gt;
&lt;br /&gt;
{{FuncParameters}}&lt;br /&gt;
{{FuncParam|player|Player you want to set heading of}}&lt;br /&gt;
{{FuncParam|heading|Angle (0-360) you want to set players heading to}}&lt;br /&gt;
&lt;br /&gt;
{{FuncReturnValue|__EDIT_ME__}}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;Lua&amp;quot;&amp;gt;&lt;br /&gt;
SetPlayerHeading(player, 95)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{RelatedFunctions}}&lt;br /&gt;
__EDIT_ME__&lt;/div&gt;</summary>
		<author><name>Kuzkay</name></author>
	</entry>
	<entry>
		<id>https://dev.playonset.com/index.php?title=GetNPCHealth&amp;diff=2620</id>
		<title>GetNPCHealth</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=GetNPCHealth&amp;diff=2620"/>
		<updated>2019-11-13T19:56:39Z</updated>

		<summary type="html">&lt;p&gt;Kuzkay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Info|Function|Server|1.0}}&lt;br /&gt;
&lt;br /&gt;
{{FuncDescription|Returns NPC&#039;s health by its ID}}&lt;br /&gt;
&lt;br /&gt;
{{FuncSyntax|GetNPCHealth(npc)}}&lt;br /&gt;
&lt;br /&gt;
{{FuncParameters}}&lt;br /&gt;
{{FuncParam|npc|NPC you want to get health of}}&lt;br /&gt;
&lt;br /&gt;
{{FuncReturnValue|NPC Health}}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;Lua&amp;quot;&amp;gt;&lt;br /&gt;
function checkHealth(player, npc)&lt;br /&gt;
   if IsValidNPC(tonumber(npc) then&lt;br /&gt;
      AddPlayerChat(player, &#039;NPC has: &#039; .. GetNPCHealth(tonumber(npc)) .. &#039; health&#039;)&lt;br /&gt;
   else&lt;br /&gt;
      AddPlayerChat(player, &#039;This NPC doesn\&#039;t exist!&#039;)&lt;br /&gt;
   end&lt;br /&gt;
end&lt;br /&gt;
AddCommand(&#039;npchealth&#039;, checkHealth)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{RelatedFunctions}}&lt;br /&gt;
__EDIT_ME__&lt;/div&gt;</summary>
		<author><name>Kuzkay</name></author>
	</entry>
	<entry>
		<id>https://dev.playonset.com/index.php?title=DestroyNPC&amp;diff=2619</id>
		<title>DestroyNPC</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=DestroyNPC&amp;diff=2619"/>
		<updated>2019-11-13T19:55:09Z</updated>

		<summary type="html">&lt;p&gt;Kuzkay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Info|Function|Server|1.0}}&lt;br /&gt;
&lt;br /&gt;
{{FuncDescription|Destroy/remove any NPC by its id}}&lt;br /&gt;
&lt;br /&gt;
{{FuncSyntax|DestroyNPC(npc)}}&lt;br /&gt;
&lt;br /&gt;
{{FuncParameters}}&lt;br /&gt;
{{FuncParam|npc|NPC You want to destroy/remove}}&lt;br /&gt;
&lt;br /&gt;
{{FuncReturnValue|__EDIT_ME__}}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;Lua&amp;quot;&amp;gt;&lt;br /&gt;
function deleteNPC(player, npc)&lt;br /&gt;
   if IsValidNPC(tonumber(npc)) then --Check if npc is valid first&lt;br /&gt;
      DestroyNPC(tonumber(npc))&lt;br /&gt;
   end&lt;br /&gt;
end&lt;br /&gt;
AddCommand(&#039;removenpc&#039;, deleteNPC)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{RelatedFunctions}}&lt;br /&gt;
__EDIT_ME__&lt;/div&gt;</summary>
		<author><name>Kuzkay</name></author>
	</entry>
	<entry>
		<id>https://dev.playonset.com/index.php?title=GetNPCHealth&amp;diff=2618</id>
		<title>GetNPCHealth</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=GetNPCHealth&amp;diff=2618"/>
		<updated>2019-11-13T19:53:22Z</updated>

		<summary type="html">&lt;p&gt;Kuzkay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Info|Function|Server|1.0}}&lt;br /&gt;
&lt;br /&gt;
{{FuncDescription|__EDIT_ME__}}&lt;br /&gt;
&lt;br /&gt;
{{FuncSyntax|GetNPCHealth(npc)}}&lt;br /&gt;
&lt;br /&gt;
{{FuncParameters}}&lt;br /&gt;
{{FuncParam|npc|NPC you want to get health of}}&lt;br /&gt;
&lt;br /&gt;
{{FuncReturnValue|NPC Health}}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;Lua&amp;quot;&amp;gt;&lt;br /&gt;
function checkHealth(player, npc)&lt;br /&gt;
   AddPlayerChat(player, &#039;NPC has: &#039; .. GetNPCHealth(npc) .. &#039; health&#039;)&lt;br /&gt;
end&lt;br /&gt;
AddCommand(&#039;npchealth&#039;, checkHealth)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{RelatedFunctions}}&lt;br /&gt;
__EDIT_ME__&lt;/div&gt;</summary>
		<author><name>Kuzkay</name></author>
	</entry>
	<entry>
		<id>https://dev.playonset.com/index.php?title=SetNPCLocation&amp;diff=2617</id>
		<title>SetNPCLocation</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=SetNPCLocation&amp;diff=2617"/>
		<updated>2019-11-13T19:51:29Z</updated>

		<summary type="html">&lt;p&gt;Kuzkay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Info|Function|Server|1.0}}&lt;br /&gt;
&lt;br /&gt;
{{FuncDescription|__EDIT_ME__}}&lt;br /&gt;
&lt;br /&gt;
{{FuncSyntax|SetNPCLocation(npc, x, y, z)}}&lt;br /&gt;
&lt;br /&gt;
{{FuncParameters}}&lt;br /&gt;
{{FuncParam|npc|NPC which you want to teleport}}&lt;br /&gt;
{{FuncParam|x|X coordinate}}&lt;br /&gt;
{{FuncParam|y|Y coordinate}}&lt;br /&gt;
{{FuncParam|z|Z coordinate}}&lt;br /&gt;
&lt;br /&gt;
{{FuncReturnValue|__EDIT_ME__}}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;Lua&amp;quot;&amp;gt;&lt;br /&gt;
function bringNPC(player, npc)&lt;br /&gt;
   local x,y,z = GetPlayerLocation(player)&lt;br /&gt;
   SetNPCLocation(tonumber(npc), x,y,z)&lt;br /&gt;
end&lt;br /&gt;
AddCommand(&#039;bringnpc&#039;, bringNPC)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{RelatedFunctions}}&lt;br /&gt;
__EDIT_ME__&lt;/div&gt;</summary>
		<author><name>Kuzkay</name></author>
	</entry>
	<entry>
		<id>https://dev.playonset.com/index.php?title=IsNPCStreamedIn&amp;diff=2616</id>
		<title>IsNPCStreamedIn</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=IsNPCStreamedIn&amp;diff=2616"/>
		<updated>2019-11-13T18:21:20Z</updated>

		<summary type="html">&lt;p&gt;Kuzkay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Info|Function|Server|1.0}}&lt;br /&gt;
&lt;br /&gt;
{{FuncDescription|Checks if stated NPC is streamed in for the player}}&lt;br /&gt;
&lt;br /&gt;
{{FuncSyntax|IsNPCStreamedIn(player, npc)}}&lt;br /&gt;
&lt;br /&gt;
{{FuncParameters}}&lt;br /&gt;
{{FuncParam|player|Player which you want to check}}&lt;br /&gt;
{{FuncParam|npc|NPC which you want to check}}&lt;br /&gt;
&lt;br /&gt;
{{FuncReturnValue|boolean: true or false value}}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;Lua&amp;quot;&amp;gt;&lt;br /&gt;
function npcCheck(player)&lt;br /&gt;
   local x, y, z = GetPlayerLocation(player)&lt;br /&gt;
   local npc = CreateNPC(1, x, y, z, 0)&lt;br /&gt;
&lt;br /&gt;
   if IsNPCStreamedIn(player, npc) then&lt;br /&gt;
      AddPlayerChat(&#039;npc has been created and streamed in&#039;)&lt;br /&gt;
   end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{RelatedFunctions}}&lt;br /&gt;
__EDIT_ME__&lt;/div&gt;</summary>
		<author><name>Kuzkay</name></author>
	</entry>
	<entry>
		<id>https://dev.playonset.com/index.php?title=GetDoorCount&amp;diff=2615</id>
		<title>GetDoorCount</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=GetDoorCount&amp;diff=2615"/>
		<updated>2019-11-13T18:18:42Z</updated>

		<summary type="html">&lt;p&gt;Kuzkay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Info|Function|Server &amp;amp; Client|1.0}}&lt;br /&gt;
&lt;br /&gt;
{{FuncDescription|Returns the number of doors.}}&lt;br /&gt;
&lt;br /&gt;
{{FuncSyntax|GetDoorCount()}}&lt;br /&gt;
&lt;br /&gt;
{{FuncParameters}}&lt;br /&gt;
{{FuncNoParam}}&lt;br /&gt;
&lt;br /&gt;
{{FuncReturnValue|Returns the number of doors.}}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;Lua&amp;quot;&amp;gt;&lt;br /&gt;
function GetDoorCount()&lt;br /&gt;
    print(GetDoorCount())&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{RelatedFunctions}}&lt;br /&gt;
__EDIT_ME__&lt;/div&gt;</summary>
		<author><name>Kuzkay</name></author>
	</entry>
	<entry>
		<id>https://dev.playonset.com/index.php?title=CreateDoor&amp;diff=2614</id>
		<title>CreateDoor</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=CreateDoor&amp;diff=2614"/>
		<updated>2019-11-13T18:17:25Z</updated>

		<summary type="html">&lt;p&gt;Kuzkay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Info|Function|Server|1.0}}&lt;br /&gt;
&lt;br /&gt;
{{FuncDescription|Creates stateful doors which can be interacted with by players by pressing &#039;E&#039;. Some of them are physics doors meaning they are pushed open by running against them.&lt;br /&gt;
&lt;br /&gt;
See available doors here [[Doors]].}}&lt;br /&gt;
&lt;br /&gt;
{{FuncSyntax|CreateDoor(modelid, x, y, z, rotation [, bEnableInteract])}}&lt;br /&gt;
&lt;br /&gt;
{{FuncParameters}}&lt;br /&gt;
{{FuncParam|modelid|The door from this list: [[Doors]].}}&lt;br /&gt;
{{FuncParam|x|World X location.}}&lt;br /&gt;
{{FuncParam|y|World Y location.}}&lt;br /&gt;
{{FuncParam|z|World Z location.}}&lt;br /&gt;
{{FuncParam|rotation|Yaw rotation of the door.}}&lt;br /&gt;
{{FuncParamOptional|bEnableInteract|&#039;&#039;&#039;true&#039;&#039;&#039; means it will send a request to the server when the player presses the &#039;E&#039; key. &#039;&#039;&#039;false&#039;&#039;&#039; to disable that.}}&lt;br /&gt;
&lt;br /&gt;
{{FuncReturnValue|Returns the identifier to the door.}}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;Lua&amp;quot;&amp;gt;&lt;br /&gt;
function OnPackageStart()&lt;br /&gt;
    CreateDoor(40, -161386.000000, -39784.500000, 1085.000000, 0.0, true)&lt;br /&gt;
end&lt;br /&gt;
AddEvent(&#039;OnPackageStart&#039;, OnPackageStart)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{RelatedFunctions}}&lt;br /&gt;
__EDIT_ME__&lt;/div&gt;</summary>
		<author><name>Kuzkay</name></author>
	</entry>
	<entry>
		<id>https://dev.playonset.com/index.php?title=HexToRGBA&amp;diff=2613</id>
		<title>HexToRGBA</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=HexToRGBA&amp;diff=2613"/>
		<updated>2019-11-13T18:15:22Z</updated>

		<summary type="html">&lt;p&gt;Kuzkay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Info|Function|Server &amp;amp; Client|1.0}}&lt;br /&gt;
&lt;br /&gt;
{{FuncDescription|Converts Hex color value into RGB format}}&lt;br /&gt;
&lt;br /&gt;
{{FuncSyntax|HexToRGBA(HexColor)}}&lt;br /&gt;
&lt;br /&gt;
{{FuncParameters}}&lt;br /&gt;
{{FuncParam|HexColor|Color in Hex format}}&lt;br /&gt;
&lt;br /&gt;
{{FuncReturnValue|R, G, B, A values between 0 and 255}}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;Lua&amp;quot;&amp;gt;&lt;br /&gt;
function convertColor(hex)&lt;br /&gt;
    return r, g, b, a = HexToRGBA(hex)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{RelatedFunctions}}&lt;br /&gt;
__EDIT_ME__&lt;/div&gt;</summary>
		<author><name>Kuzkay</name></author>
	</entry>
	<entry>
		<id>https://dev.playonset.com/index.php?title=HexToRGBA&amp;diff=2612</id>
		<title>HexToRGBA</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=HexToRGBA&amp;diff=2612"/>
		<updated>2019-11-13T18:15:12Z</updated>

		<summary type="html">&lt;p&gt;Kuzkay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Info|Function|Server &amp;amp; Client|1.0}}&lt;br /&gt;
&lt;br /&gt;
{{FuncDescription|Converts Hex color value into RGB format}}&lt;br /&gt;
&lt;br /&gt;
{{FuncSyntax|HexToRGBA(HexColor)}}&lt;br /&gt;
&lt;br /&gt;
{{FuncParameters}}&lt;br /&gt;
{{FuncParam|HexColor|Color in Hex format}}&lt;br /&gt;
&lt;br /&gt;
{{FuncReturnValue|R, G, B, A values between 0 and 255}}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;Lua&amp;quot;&amp;gt;&lt;br /&gt;
function convertColor(hex)&lt;br /&gt;
    return r, g, b, a = HexToRGBA(hex)&lt;br /&gt;
end&lt;br /&gt;
AddCommand(&amp;quot;objtest&amp;quot;, cmd_objtest)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{RelatedFunctions}}&lt;br /&gt;
__EDIT_ME__&lt;/div&gt;</summary>
		<author><name>Kuzkay</name></author>
	</entry>
	<entry>
		<id>https://dev.playonset.com/index.php?title=SetCameraViewDistance&amp;diff=2495</id>
		<title>SetCameraViewDistance</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=SetCameraViewDistance&amp;diff=2495"/>
		<updated>2019-11-03T18:07:24Z</updated>

		<summary type="html">&lt;p&gt;Kuzkay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Info|Function|Client|1.0}}&lt;br /&gt;
&lt;br /&gt;
{{FuncDescription|__EDIT_ME__}}&lt;br /&gt;
&lt;br /&gt;
{{FuncSyntax|SetCameraViewDistance(distance)}}&lt;br /&gt;
&lt;br /&gt;
{{FuncParameters}}&lt;br /&gt;
{{FuncParam|distance|__EDIT_ME__}}&lt;br /&gt;
&lt;br /&gt;
{{FuncReturnValue|__EDIT_ME__}}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
__EDIT_ME__&lt;br /&gt;
&lt;br /&gt;
{{RelatedFunctions}}&lt;br /&gt;
__EDIT_ME__&lt;/div&gt;</summary>
		<author><name>Kuzkay</name></author>
	</entry>
	<entry>
		<id>https://dev.playonset.com/index.php?title=OnPlayerPickupHit&amp;diff=2370</id>
		<title>OnPlayerPickupHit</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=OnPlayerPickupHit&amp;diff=2370"/>
		<updated>2019-10-04T18:02:00Z</updated>

		<summary type="html">&lt;p&gt;Kuzkay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Info|Event|Server|1.0}}&lt;br /&gt;
&lt;br /&gt;
{{FuncDescription|__EDIT_ME__}}&lt;br /&gt;
&lt;br /&gt;
{{FuncSyntax|OnPlayerPickupHit(player, Pickup)}}&lt;br /&gt;
&lt;br /&gt;
{{FuncParameters}}&lt;br /&gt;
== Example ==&lt;br /&gt;
__EDIT_ME__&lt;br /&gt;
&lt;br /&gt;
{{RelatedFunctions}}&lt;br /&gt;
{{ServerEvents}}&lt;/div&gt;</summary>
		<author><name>Kuzkay</name></author>
	</entry>
	<entry>
		<id>https://dev.playonset.com/index.php?title=StartCameraFade&amp;diff=2350</id>
		<title>StartCameraFade</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=StartCameraFade&amp;diff=2350"/>
		<updated>2019-09-29T11:52:23Z</updated>

		<summary type="html">&lt;p&gt;Kuzkay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Info|Function|Client|1.0}}&lt;br /&gt;
&lt;br /&gt;
{{FuncDescription|Smoothly fade in or out, Setting CameraFade will overwrite any other started camera fades which were called before}}&lt;br /&gt;
&lt;br /&gt;
{{FuncSyntax|StartCameraFade(FromAlpha, ToAlpha, Duration [, HexColor])}}&lt;br /&gt;
&lt;br /&gt;
{{FuncParameters}}&lt;br /&gt;
{{FuncParam|FromAlpha|Starting alpha (0-1)}}&lt;br /&gt;
{{FuncParam|ToAlpha|Alpha you want to fade to (0-1)}}&lt;br /&gt;
{{FuncParam|Duration |Duration of the fade in seconds}}&lt;br /&gt;
{{FuncParamOptional|HexColor|Hex color of the fade}}&lt;br /&gt;
&lt;br /&gt;
{{FuncReturnValue|__EDIT_ME__}}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;Lua&amp;quot;&amp;gt;&lt;br /&gt;
StartCameraFade(1.0, 0.0, 4.0, &amp;quot;#000&amp;quot;)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{RelatedFunctions}}&lt;br /&gt;
__EDIT_ME__&lt;/div&gt;</summary>
		<author><name>Kuzkay</name></author>
	</entry>
	<entry>
		<id>https://dev.playonset.com/index.php?title=SetVehicleLicensePlate&amp;diff=2209</id>
		<title>SetVehicleLicensePlate</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=SetVehicleLicensePlate&amp;diff=2209"/>
		<updated>2019-08-12T14:50:13Z</updated>

		<summary type="html">&lt;p&gt;Kuzkay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Info|Function|Server|1.0}}&lt;br /&gt;
&lt;br /&gt;
{{FuncDescription|Sets the vehicle license plate text}}&lt;br /&gt;
&lt;br /&gt;
{{FuncSyntax|SetVehicleLicensePlate(vehicle, text)}}&lt;br /&gt;
&lt;br /&gt;
{{FuncParameters}}&lt;br /&gt;
{{FuncParam|vehicle|Vehicle identifier of vehicle which you wish to change license plate text}}&lt;br /&gt;
{{FuncParam|text|New license plate text (up to 13 characters)}}&lt;br /&gt;
&lt;br /&gt;
{{FuncReturnValue|This function has no return value}}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;Lua&amp;quot;&amp;gt;&lt;br /&gt;
function cmd_lp(player, ...)&lt;br /&gt;
&lt;br /&gt;
	local message = table.concat({...}, &amp;quot; &amp;quot;) &lt;br /&gt;
&lt;br /&gt;
	if (#{...} == 0) then&lt;br /&gt;
		return AddPlayerChat(player, &amp;quot;Usage: /lp &amp;lt;new license plate text&amp;gt;&amp;quot;)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local vehicle = GetPlayerVehicle(player)&lt;br /&gt;
	if (vehicle == 0) then&lt;br /&gt;
		return AddPlayerChat(player, &#039;&amp;lt;span color=&amp;quot;#ff0000ee&amp;quot;&amp;gt;You must be in a vehicle!&amp;lt;/&amp;gt;&#039;)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if (GetPlayerVehicleSeat(player) ~= 1) then&lt;br /&gt;
		return AddPlayerChat(player, &amp;quot;You must be the driver of the vehicle&amp;quot;)&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	SetVehicleLicensePlate(vehicle, message)&lt;br /&gt;
end&lt;br /&gt;
AddCommand(&amp;quot;lp&amp;quot;, cmd_lp)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{RelatedFunctions}}&lt;br /&gt;
{{VehicleFunctions}}&lt;/div&gt;</summary>
		<author><name>Kuzkay</name></author>
	</entry>
	<entry>
		<id>https://dev.playonset.com/index.php?title=SetVehicleLicensePlate&amp;diff=2208</id>
		<title>SetVehicleLicensePlate</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=SetVehicleLicensePlate&amp;diff=2208"/>
		<updated>2019-08-12T14:48:48Z</updated>

		<summary type="html">&lt;p&gt;Kuzkay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Info|Function|Server|1.0}}&lt;br /&gt;
&lt;br /&gt;
{{FuncDescription|Sets vehicle license plate text}}&lt;br /&gt;
&lt;br /&gt;
{{FuncSyntax|SetVehicleLicensePlate(vehicle, text)}}&lt;br /&gt;
&lt;br /&gt;
{{FuncParameters}}&lt;br /&gt;
{{FuncParam|vehicle|Vehicle identifier of vehicle which you wish to change license plate text}}&lt;br /&gt;
{{FuncParam|text|New license plate text (up to 13 characters)}}&lt;br /&gt;
&lt;br /&gt;
{{FuncReturnValue|This function has no return value}}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;Lua&amp;quot;&amp;gt;&lt;br /&gt;
function cmd_lp(player, ...)&lt;br /&gt;
&lt;br /&gt;
	local message = table.concat({...}, &amp;quot; &amp;quot;) &lt;br /&gt;
&lt;br /&gt;
	if (#{...} == 0) then&lt;br /&gt;
		return AddPlayerChat(player, &amp;quot;Usage: /lp &amp;lt;new license plate text&amp;gt;&amp;quot;)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local vehicle = GetPlayerVehicle(player)&lt;br /&gt;
	if (vehicle == 0) then&lt;br /&gt;
		return AddPlayerChat(player, &#039;&amp;lt;span color=&amp;quot;#ff0000ee&amp;quot;&amp;gt;You must be in a vehicle!&amp;lt;/&amp;gt;&#039;)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if (GetPlayerVehicleSeat(player) ~= 1) then&lt;br /&gt;
		return AddPlayerChat(player, &amp;quot;You must be the driver of the vehicle&amp;quot;)&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	SetVehicleLicensePlate(vehicle, message)&lt;br /&gt;
end&lt;br /&gt;
AddCommand(&amp;quot;lp&amp;quot;, cmd_lp)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{RelatedFunctions}}&lt;br /&gt;
{{VehicleFunctions}}&lt;/div&gt;</summary>
		<author><name>Kuzkay</name></author>
	</entry>
	<entry>
		<id>https://dev.playonset.com/index.php?title=CreateObject&amp;diff=2207</id>
		<title>CreateObject</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=CreateObject&amp;diff=2207"/>
		<updated>2019-08-12T14:47:50Z</updated>

		<summary type="html">&lt;p&gt;Kuzkay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Info|Function|Server|1.0}}&lt;br /&gt;
&lt;br /&gt;
{{FuncDescription|This function creates an object at a desired location. See [[Objects]] for a list of models.}}&lt;br /&gt;
&lt;br /&gt;
{{FuncSyntax|CreateObject(modelid, x, y, z [, rx, ry, rz, sx, sy, sz])}}&lt;br /&gt;
&lt;br /&gt;
{{FuncParameters}}&lt;br /&gt;
{{FuncParam|modelid|The [[Objects|model identifier]] for which object to spawn.}}&lt;br /&gt;
{{FuncParam|x|X coordinate}}&lt;br /&gt;
{{FuncParam|y|Y coordinate}}&lt;br /&gt;
{{FuncParam|z|Z coordinate}}&lt;br /&gt;
{{FuncParamOptional|rx|Pitch}}&lt;br /&gt;
{{FuncParamOptional|ry|Yaw}}&lt;br /&gt;
{{FuncParamOptional|rz|Roll}}&lt;br /&gt;
{{FuncParamOptional|sx|X scale}}&lt;br /&gt;
{{FuncParamOptional|sy|Y scale}}&lt;br /&gt;
{{FuncParamOptional|sz|Z scale}}&lt;br /&gt;
&lt;br /&gt;
{{FuncReturnValue|Returns an identifier to the new object. &#039;&#039;&#039;false&#039;&#039;&#039; on error.}}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;Lua&amp;quot;&amp;gt;&lt;br /&gt;
function cmd_objtest(player)&lt;br /&gt;
	local x, y, z = 64151.0234375, 48423.33984375, 4516.530273&lt;br /&gt;
&lt;br /&gt;
	for c=1,50 do&lt;br /&gt;
		for r=1,50 do&lt;br /&gt;
			CreateObject(592, x + (c * 350.0), y + (r * 350.0), z)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
AddCommand(&amp;quot;objtest&amp;quot;, cmd_objtest)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{RelatedFunctions}}&lt;br /&gt;
{{ObjectFunctions}}&lt;/div&gt;</summary>
		<author><name>Kuzkay</name></author>
	</entry>
	<entry>
		<id>https://dev.playonset.com/index.php?title=SetVehicleLicensePlate&amp;diff=2206</id>
		<title>SetVehicleLicensePlate</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=SetVehicleLicensePlate&amp;diff=2206"/>
		<updated>2019-08-12T14:45:26Z</updated>

		<summary type="html">&lt;p&gt;Kuzkay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Info|Function|Server|1.0}}&lt;br /&gt;
&lt;br /&gt;
{{FuncDescription|Sets vehicle license plate text (up to 13 characters)}}&lt;br /&gt;
&lt;br /&gt;
{{FuncSyntax|SetVehicleLicensePlate(vehicle, text)}}&lt;br /&gt;
&lt;br /&gt;
{{FuncParameters}}&lt;br /&gt;
{{FuncParam|vehicle|Vehicle identifier of vehicle which you wish to change license plate text}}&lt;br /&gt;
{{FuncParam|text|New license plate text}}&lt;br /&gt;
&lt;br /&gt;
{{FuncReturnValue|This function has no return value}}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;Lua&amp;quot;&amp;gt;&lt;br /&gt;
function cmd_lp(player, ...)&lt;br /&gt;
&lt;br /&gt;
	local message = table.concat({...}, &amp;quot; &amp;quot;) &lt;br /&gt;
&lt;br /&gt;
	if (#{...} == 0) then&lt;br /&gt;
		return AddPlayerChat(player, &amp;quot;Usage: /lp &amp;lt;new license plate text&amp;gt;&amp;quot;)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local vehicle = GetPlayerVehicle(player)&lt;br /&gt;
	if (vehicle == 0) then&lt;br /&gt;
		return AddPlayerChat(player, &#039;&amp;lt;span color=&amp;quot;#ff0000ee&amp;quot;&amp;gt;You must be in a vehicle!&amp;lt;/&amp;gt;&#039;)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if (GetPlayerVehicleSeat(player) ~= 1) then&lt;br /&gt;
		return AddPlayerChat(player, &amp;quot;You must be the driver of the vehicle&amp;quot;)&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	SetVehicleLicensePlate(vehicle, message)&lt;br /&gt;
end&lt;br /&gt;
AddCommand(&amp;quot;lp&amp;quot;, cmd_lp)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{RelatedFunctions}}&lt;br /&gt;
{{VehicleFunctions}}&lt;/div&gt;</summary>
		<author><name>Kuzkay</name></author>
	</entry>
	<entry>
		<id>https://dev.playonset.com/index.php?title=AttachVehicleNitro&amp;diff=2203</id>
		<title>AttachVehicleNitro</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=AttachVehicleNitro&amp;diff=2203"/>
		<updated>2019-08-12T14:31:38Z</updated>

		<summary type="html">&lt;p&gt;Kuzkay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Info|Function|Server|1.0}}&lt;br /&gt;
&lt;br /&gt;
{{FuncDescription|Enabled/Disables vehicle nitro function, value can be true or false}}&lt;br /&gt;
&lt;br /&gt;
{{FuncSyntax|AttachVehicleNitro(vehicle [, attach])}}&lt;br /&gt;
&lt;br /&gt;
{{FuncParameters}}&lt;br /&gt;
{{FuncParam|vehicle |Vehicle object which you want to attach nitro to}}&lt;br /&gt;
{{FuncParamOptional|attach|boolean, an true or false value}}&lt;br /&gt;
&lt;br /&gt;
{{FuncReturnValue|This function does not return any values}}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;Lua&amp;quot;&amp;gt;&lt;br /&gt;
function ToggleNitro(player)&lt;br /&gt;
	--Gets vehicle player is currently driving&lt;br /&gt;
	local vehicle = GetPlayerVehicle(player)&lt;br /&gt;
	&lt;br /&gt;
	--make sure vehicle is not equal to 0&lt;br /&gt;
	if vehicle ~= 0 then&lt;br /&gt;
		--enable nitro + print a message on the chat&lt;br /&gt;
		AttachVehicleNitro(vehicle, true)&lt;br /&gt;
		&lt;br /&gt;
		AddPlayerChat(player, &amp;quot;Nitro has been enabled&amp;quot;)&lt;br /&gt;
	else&lt;br /&gt;
		--vehicle was equal to 0 and vehicle was not found, print an error message on the chat&lt;br /&gt;
		AddPlayerChat(player, &amp;quot;You must be in a vehicle to enable nitro&amp;quot;)&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{RelatedFunctions}}&lt;br /&gt;
__EDIT_ME__&lt;/div&gt;</summary>
		<author><name>Kuzkay</name></author>
	</entry>
	<entry>
		<id>https://dev.playonset.com/index.php?title=GetCameraFoV&amp;diff=2202</id>
		<title>GetCameraFoV</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=GetCameraFoV&amp;diff=2202"/>
		<updated>2019-08-12T14:15:48Z</updated>

		<summary type="html">&lt;p&gt;Kuzkay: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Info|Function|Client|1.0}}&lt;br /&gt;
&lt;br /&gt;
{{FuncDescription|Gets clients current FOV value}}&lt;br /&gt;
&lt;br /&gt;
{{FuncSyntax|GetPlayerFOV()}}&lt;br /&gt;
&lt;br /&gt;
{{FuncParameters}}&lt;br /&gt;
{{FuncNoParam}}&lt;br /&gt;
&lt;br /&gt;
{{FuncReturnValue|Returns clients current FOV value}}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
__EDIT_ME__&lt;br /&gt;
&lt;br /&gt;
{{RelatedFunctions}}&lt;br /&gt;
__EDIT_ME__&lt;/div&gt;</summary>
		<author><name>Kuzkay</name></author>
	</entry>
</feed>