<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=TechialWiki</id>
	<title>Multi Theft Auto: Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=TechialWiki"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/TechialWiki"/>
	<updated>2026-05-01T15:00:12Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetRainLevel&amp;diff=35469</id>
		<title>GetRainLevel</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetRainLevel&amp;diff=35469"/>
		<updated>2013-04-18T14:00:26Z</updated>

		<summary type="html">&lt;p&gt;TechialWiki: Undo revision 35468 by TechialWiki (talk)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function is used to get the current rain level.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The server can only return the rain level if it has actually been set by script, otherwise it will return ''false''.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
float getRainLevel( )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns the rain level as a number.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
'''Example:''' Sets the rain (So it can detect it) before returning it. (In this case, when resource starts.)&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler(&amp;quot;onClientResourceStart&amp;quot;, getResourceRootElement(getThisResource()), function()&lt;br /&gt;
	setRainLevel(math.random(5))&lt;br /&gt;
end)&lt;br /&gt;
function returnRain()&lt;br /&gt;
	local rain = getRainlevel()&lt;br /&gt;
	if(rain &amp;gt;= 1) then&lt;br /&gt;
		outputChatBox(&amp;quot;Looks like it's going to be a rainy day!&amp;quot;,255,130,130,false)&lt;br /&gt;
	else&lt;br /&gt;
		outputChatBox(&amp;quot;Surprisingly dry!&amp;quot;,255,130,130,false)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;rain&amp;quot;, returnRain)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
'''Example:''' Sets the rain (So it can detect it) before returning it. (In this case, when resource starts.)&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler(&amp;quot;onResourceStart&amp;quot;, getResourceRootElement(getThisResource()), function()&lt;br /&gt;
	setRainLevel(math.random(5))&lt;br /&gt;
end)&lt;br /&gt;
&lt;br /&gt;
function returnRain(player)&lt;br /&gt;
	local rain = getRainlevel()&lt;br /&gt;
	if(rain &amp;gt;= 1) then&lt;br /&gt;
		outputChatBox(&amp;quot;Looks like it's going to be a rainy day!&amp;quot;,player,255,130,130,false)&lt;br /&gt;
	else&lt;br /&gt;
		outputChatBox(&amp;quot;Surprisingly dry!&amp;quot;,player,255,130,130,false)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;rain&amp;quot;, returnRain)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{World functions}}&lt;/div&gt;</summary>
		<author><name>TechialWiki</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetRainLevel&amp;diff=35468</id>
		<title>GetRainLevel</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetRainLevel&amp;diff=35468"/>
		<updated>2013-04-18T13:59:58Z</updated>

		<summary type="html">&lt;p&gt;TechialWiki: /* Returns */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function is used to get the current rain level.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The server can only return the rain level if it has actually been set by script, otherwise it will return ''false''.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
float getRainLevel( )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
int RainLevel&lt;br /&gt;
0-5&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
'''Example:''' Sets the rain (So it can detect it) before returning it. (In this case, when resource starts.)&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler(&amp;quot;onClientResourceStart&amp;quot;, getResourceRootElement(getThisResource()), function()&lt;br /&gt;
	setRainLevel(math.random(5))&lt;br /&gt;
end)&lt;br /&gt;
function returnRain()&lt;br /&gt;
	local rain = getRainlevel()&lt;br /&gt;
	if(rain &amp;gt;= 1) then&lt;br /&gt;
		outputChatBox(&amp;quot;Looks like it's going to be a rainy day!&amp;quot;,255,130,130,false)&lt;br /&gt;
	else&lt;br /&gt;
		outputChatBox(&amp;quot;Surprisingly dry!&amp;quot;,255,130,130,false)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;rain&amp;quot;, returnRain)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
'''Example:''' Sets the rain (So it can detect it) before returning it. (In this case, when resource starts.)&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler(&amp;quot;onResourceStart&amp;quot;, getResourceRootElement(getThisResource()), function()&lt;br /&gt;
	setRainLevel(math.random(5))&lt;br /&gt;
end)&lt;br /&gt;
&lt;br /&gt;
function returnRain(player)&lt;br /&gt;
	local rain = getRainlevel()&lt;br /&gt;
	if(rain &amp;gt;= 1) then&lt;br /&gt;
		outputChatBox(&amp;quot;Looks like it's going to be a rainy day!&amp;quot;,player,255,130,130,false)&lt;br /&gt;
	else&lt;br /&gt;
		outputChatBox(&amp;quot;Surprisingly dry!&amp;quot;,player,255,130,130,false)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;rain&amp;quot;, returnRain)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{World functions}}&lt;/div&gt;</summary>
		<author><name>TechialWiki</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetRainLevel&amp;diff=35465</id>
		<title>GetRainLevel</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetRainLevel&amp;diff=35465"/>
		<updated>2013-04-18T12:08:48Z</updated>

		<summary type="html">&lt;p&gt;TechialWiki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function is used to get the current rain level.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The server can only return the rain level if it has actually been set by script, otherwise it will return ''false''.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
float getRainLevel( )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns the rain level as a number.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
'''Example:''' Sets the rain (So it can detect it) before returning it. (In this case, when resource starts.)&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler(&amp;quot;onClientResourceStart&amp;quot;, getResourceRootElement(getThisResource()), function()&lt;br /&gt;
	setRainLevel(math.random(5))&lt;br /&gt;
end)&lt;br /&gt;
function returnRain()&lt;br /&gt;
	local rain = getRainlevel()&lt;br /&gt;
	if(rain &amp;gt;= 1) then&lt;br /&gt;
		outputChatBox(&amp;quot;Looks like it's going to be a rainy day!&amp;quot;,255,130,130,false)&lt;br /&gt;
	else&lt;br /&gt;
		outputChatBox(&amp;quot;Surprisingly dry!&amp;quot;,255,130,130,false)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;rain&amp;quot;, returnRain)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
'''Example:''' Sets the rain (So it can detect it) before returning it. (In this case, when resource starts.)&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler(&amp;quot;onResourceStart&amp;quot;, getResourceRootElement(getThisResource()), function()&lt;br /&gt;
	setRainLevel(math.random(5))&lt;br /&gt;
end)&lt;br /&gt;
&lt;br /&gt;
function returnRain(player)&lt;br /&gt;
	local rain = getRainlevel()&lt;br /&gt;
	if(rain &amp;gt;= 1) then&lt;br /&gt;
		outputChatBox(&amp;quot;Looks like it's going to be a rainy day!&amp;quot;,player,255,130,130,false)&lt;br /&gt;
	else&lt;br /&gt;
		outputChatBox(&amp;quot;Surprisingly dry!&amp;quot;,player,255,130,130,false)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;rain&amp;quot;, returnRain)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{World functions}}&lt;/div&gt;</summary>
		<author><name>TechialWiki</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetRainLevel&amp;diff=35464</id>
		<title>GetRainLevel</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetRainLevel&amp;diff=35464"/>
		<updated>2013-04-18T12:06:58Z</updated>

		<summary type="html">&lt;p&gt;TechialWiki: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function is used to get the current rain level.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The server can only return the rain level if it has actually been set by script, otherwise it will return ''false''.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
float getRainLevel( )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns the rain level as a number.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
'''Example:''' Sets the rain (So it can detect it) before returning it. (In this case, when resource starts.)&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler(&amp;quot;onClientResourceStart&amp;quot;, getResourceRootElement(getThisResource()), function()&lt;br /&gt;
	setRainLevel(5)&lt;br /&gt;
end)&lt;br /&gt;
function returnRain()&lt;br /&gt;
	local rain = getRainlevel()&lt;br /&gt;
	if(rain &amp;gt;= 1) then&lt;br /&gt;
		outputChatBox(&amp;quot;Looks like it's going to be a rainy day!&amp;quot;,255,130,130,false)&lt;br /&gt;
	else&lt;br /&gt;
		outputChatBox(&amp;quot;Surprisingly dry!&amp;quot;,255,130,130,false)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;rain&amp;quot;, returnRain)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
'''Example:''' Sets the rain (So it can detect it) before returning it. (In this case, when resource starts.)&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler(&amp;quot;onResourceStart&amp;quot;, getResourceRootElement(getThisResource()), function()&lt;br /&gt;
	setRainLevel(5)&lt;br /&gt;
end)&lt;br /&gt;
&lt;br /&gt;
function returnRain(player)&lt;br /&gt;
	local rain = getRainlevel()&lt;br /&gt;
	if(rain &amp;gt;= 1) then&lt;br /&gt;
		outputChatBox(&amp;quot;Looks like it's going to be a rainy day!&amp;quot;,player,255,130,130,false)&lt;br /&gt;
	else&lt;br /&gt;
		outputChatBox(&amp;quot;Surprisingly dry!&amp;quot;,player,255,130,130,false)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;rain&amp;quot;, returnRain)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{World functions}}&lt;/div&gt;</summary>
		<author><name>TechialWiki</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetRainLevel&amp;diff=35463</id>
		<title>GetRainLevel</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetRainLevel&amp;diff=35463"/>
		<updated>2013-04-18T12:06:37Z</updated>

		<summary type="html">&lt;p&gt;TechialWiki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function is used to get the current rain level.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The server can only return the rain level if it has actually been set by script, otherwise it will return ''false''.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
float getRainLevel( )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns the rain level as a number.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
'''Example:''' Sets the rain (So it can detect it) before returning it. (In this case, when resource starts.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler(&amp;quot;onClientResourceStart&amp;quot;, getResourceRootElement(getThisResource()), function()&lt;br /&gt;
	setRainLevel(5)&lt;br /&gt;
end)&lt;br /&gt;
function returnRain()&lt;br /&gt;
	local rain = getRainlevel()&lt;br /&gt;
	if(rain &amp;gt;= 1) then&lt;br /&gt;
		outputChatBox(&amp;quot;Looks like it's going to be a rainy day!&amp;quot;,255,130,130,false)&lt;br /&gt;
	else&lt;br /&gt;
		outputChatBox(&amp;quot;Surprisingly dry!&amp;quot;,255,130,130,false)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;rain&amp;quot;, returnRain)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
'''Example:''' Sets the rain (So it can detect it) before returning it. (In this case, when resource starts.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler(&amp;quot;onResourceStart&amp;quot;, getResourceRootElement(getThisResource()), function()&lt;br /&gt;
	setRainLevel(5)&lt;br /&gt;
end)&lt;br /&gt;
&lt;br /&gt;
function returnRain(player)&lt;br /&gt;
	local rain = getRainlevel()&lt;br /&gt;
	if(rain &amp;gt;= 1) then&lt;br /&gt;
		outputChatBox(&amp;quot;Looks like it's going to be a rainy day!&amp;quot;,player,255,130,130,false)&lt;br /&gt;
	else&lt;br /&gt;
		outputChatBox(&amp;quot;Surprisingly dry!&amp;quot;,player,255,130,130,false)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;rain&amp;quot;, returnRain)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{World functions}}&lt;/div&gt;</summary>
		<author><name>TechialWiki</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetRainLevel&amp;diff=35462</id>
		<title>GetRainLevel</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetRainLevel&amp;diff=35462"/>
		<updated>2013-04-18T12:04:48Z</updated>

		<summary type="html">&lt;p&gt;TechialWiki: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
{{Needs Example}}&lt;br /&gt;
This function is used to get the current rain level.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The server can only return the rain level if it has actually been set by script, otherwise it will return ''false''.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
float getRainLevel( )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns the rain level as a number.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
getRainLevel&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler(&amp;quot;onClientResourceStart&amp;quot;, getResourceRootElement(getThisResource()), function()&lt;br /&gt;
	setRainLevel(5)&lt;br /&gt;
end)&lt;br /&gt;
function returnRain()&lt;br /&gt;
	local rain = getRainlevel()&lt;br /&gt;
	if(rain &amp;gt;= 1) then&lt;br /&gt;
		outputChatBox(&amp;quot;Looks like it's going to be a rainy day!&amp;quot;,255,130,130,false)&lt;br /&gt;
	else&lt;br /&gt;
		outputChatBox(&amp;quot;Surprisingly dry!&amp;quot;,255,130,130,false)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;rain&amp;quot;, returnRain)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
getRainLevel&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler(&amp;quot;onResourceStart&amp;quot;, getResourceRootElement(getThisResource()), function()&lt;br /&gt;
	setRainLevel(5)&lt;br /&gt;
end)&lt;br /&gt;
&lt;br /&gt;
function returnRain(player)&lt;br /&gt;
	local rain = getRainlevel()&lt;br /&gt;
	if(rain &amp;gt;= 1) then&lt;br /&gt;
		outputChatBox(&amp;quot;Looks like it's going to be a rainy day!&amp;quot;,player,255,130,130,false)&lt;br /&gt;
	else&lt;br /&gt;
		outputChatBox(&amp;quot;Surprisingly dry!&amp;quot;,player,255,130,130,false)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;rain&amp;quot;, returnRain)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{World functions}}&lt;/div&gt;</summary>
		<author><name>TechialWiki</name></author>
	</entry>
</feed>