<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://dev.playonset.com/index.php?action=history&amp;feed=atom&amp;title=IsClient</id>
	<title>IsClient - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://dev.playonset.com/index.php?action=history&amp;feed=atom&amp;title=IsClient"/>
	<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=IsClient&amp;action=history"/>
	<updated>2026-04-24T07:14:11Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://dev.playonset.com/index.php?title=IsClient&amp;diff=4551&amp;oldid=prev</id>
		<title>BlueMountains: Created page with &quot;{{Info|Function|Client &amp; Server|1.4.0}}  {{FuncDescription|Used to check if a script currently runs on the client.}}  {{FuncSyntax|IsClient()}}  {{FuncParameters}} {{FuncNoPar...&quot;</title>
		<link rel="alternate" type="text/html" href="https://dev.playonset.com/index.php?title=IsClient&amp;diff=4551&amp;oldid=prev"/>
		<updated>2020-12-14T19:39:16Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Info|Function|Client &amp;amp; Server|1.4.0}}  {{FuncDescription|Used to check if a script currently runs on the client.}}  {{FuncSyntax|IsClient()}}  {{FuncParameters}} {{FuncNoPar...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Info|Function|Client &amp;amp; Server|1.4.0}}&lt;br /&gt;
&lt;br /&gt;
{{FuncDescription|Used to check if a script currently runs on the client.}}&lt;br /&gt;
&lt;br /&gt;
{{FuncSyntax|IsClient()}}&lt;br /&gt;
&lt;br /&gt;
{{FuncParameters}}&lt;br /&gt;
{{FuncNoParam}}&lt;br /&gt;
&lt;br /&gt;
{{FuncReturnValue|Returns &amp;#039;&amp;#039;&amp;#039;true&amp;#039;&amp;#039;&amp;#039; on the client and &amp;#039;&amp;#039;&amp;#039;false&amp;#039;&amp;#039;&amp;#039; on the server.}}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;Lua&amp;quot;&amp;gt;&lt;br /&gt;
AddEvent(&amp;quot;OnPackageStart&amp;quot;, function()&lt;br /&gt;
	if IsServer() then&lt;br /&gt;
		print(&amp;quot;This is printed to the server console.&amp;quot;)&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	if IsClient() then&lt;br /&gt;
		print(&amp;quot;This is printed to the game devlog.&amp;quot;)&lt;br /&gt;
	end&lt;br /&gt;
end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{RelatedFunctions}}&lt;br /&gt;
*[[GetServerTickRate]]&lt;br /&gt;
*[[ServerExit]]&lt;br /&gt;
*[[SetServerName]]&lt;br /&gt;
*[[GetServerName]]&lt;br /&gt;
*[[GetMaxPlayers]]&lt;/div&gt;</summary>
		<author><name>BlueMountains</name></author>
	</entry>
</feed>