<?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=Lolern</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=Lolern"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Lolern"/>
	<updated>2026-04-27T15:14:00Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetSkyGradient&amp;diff=28753</id>
		<title>GetSkyGradient</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetSkyGradient&amp;diff=28753"/>
		<updated>2011-12-22T22:10:37Z</updated>

		<summary type="html">&lt;p&gt;Lolern: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function will return the current sky color.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The server can only return the sky color if it has actually been set by script.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
int, int, int, int, int, int getSkyGradient ( )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns 6 [[int|ints]], of which the first 3 represent the sky's &amp;quot;top&amp;quot; color, (in RGB) and the last 3 represent the bottom colors.&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;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function check()&lt;br /&gt;
	local r1, g1, b1, r2, g2, b2 = getSkyGradient()&lt;br /&gt;
	outputChatBox(&amp;quot;Sky gradient colors are R: &amp;quot;..r1..&amp;quot; G: &amp;quot;..g1..&amp;quot; B: &amp;quot;..b1..&amp;quot; and R: &amp;quot;..r2..&amp;quot; G: &amp;quot;..g2..&amp;quot; B: &amp;quot;..b2)&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;skygradient&amp;quot;, check)&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;br /&gt;
&lt;br /&gt;
[[Category:Needs_Example]]&lt;/div&gt;</summary>
		<author><name>Lolern</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetSkyGradient&amp;diff=28751</id>
		<title>GetSkyGradient</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetSkyGradient&amp;diff=28751"/>
		<updated>2011-12-22T21:59:23Z</updated>

		<summary type="html">&lt;p&gt;Lolern: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function will return the current sky color.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' The server can only return the sky color if it has actually been set by script.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
int, int, int, int, int, int getSkyGradient ( )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns 6 [[int|ints]], of which the first 3 represent the sky's &amp;quot;top&amp;quot; color, (in RGB) and the last 3 represent the bottom colors.&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;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function check()&lt;br /&gt;
	local r1, g1, b1, r2, g2, b2 = getSkyGradient()&lt;br /&gt;
	outputChatBox(&amp;quot;Sky gradient colors is R: &amp;quot;..r1..&amp;quot; G: &amp;quot;..g1..&amp;quot; B: &amp;quot;..b1..&amp;quot; and R: &amp;quot;..r2..&amp;quot; G: &amp;quot;..g2..&amp;quot; B: &amp;quot;..b2)&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;skygradient&amp;quot;, check)&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;br /&gt;
&lt;br /&gt;
[[Category:Needs_Example]]&lt;/div&gt;</summary>
		<author><name>Lolern</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetWindVelocity&amp;diff=28743</id>
		<title>SetWindVelocity</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetWindVelocity&amp;diff=28743"/>
		<updated>2011-12-22T15:26:18Z</updated>

		<summary type="html">&lt;p&gt;Lolern: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function changes the wind velocity in San Andreas. This affects just the trees.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setWindVelocity ( float velocityX, float velocityY, float velocityZ )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''velocityX''': The velocity on the x-coordinate&lt;br /&gt;
*'''velocityY''': The velocity on the y-coordinate&lt;br /&gt;
*'''velocityZ''': The velocity on the z-coordinate&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if successful, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example shows how to make a set wind velocity command.&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;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function setVelocity(command, x, y, z)&lt;br /&gt;
	if x and y and z then&lt;br /&gt;
		setWindVelocity (x, y, z)&lt;br /&gt;
		outputChatBox(&amp;quot;You were set wind velocity to x: &amp;quot;..x..&amp;quot; y: &amp;quot;..y..&amp;quot; z: &amp;quot;..z)&lt;br /&gt;
	else&lt;br /&gt;
		outputChatBox(&amp;quot;Syntax is: /setvelocity [x] [y] [z]&amp;quot;)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;setvelocity&amp;quot;, setVelocity)&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;
{{Client_world_functions}}&lt;/div&gt;</summary>
		<author><name>Lolern</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnClientTrailerAttach&amp;diff=28742</id>
		<title>OnClientTrailerAttach</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientTrailerAttach&amp;diff=28742"/>
		<updated>2011-12-22T15:23:51Z</updated>

		<summary type="html">&lt;p&gt;Lolern: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client event}}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This event is triggered by a trailer when it gets attached to a towing vehicle.&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
vehicle towedBy&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''towedBy:''' the vehicle that is now towing the trailer.&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The source of this event is the trailer that is now being towed.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example shows on chat name of vehicle, what attach a trailer.&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;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onAttach(vehicle)&lt;br /&gt;
	local name = getVehicleName(vehicle)&lt;br /&gt;
	outputChatBox(&amp;quot;You were attach the trailer by &amp;quot;..name)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onClientTrailerAttach&amp;quot;, getRootElement(), onAttach)&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;
===Client vehicle events===&lt;br /&gt;
{{Client_vehicle_events}}&lt;br /&gt;
===Client event functions===&lt;br /&gt;
{{Client_event_functions}}&lt;/div&gt;</summary>
		<author><name>Lolern</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnClientTrailerAttach&amp;diff=28741</id>
		<title>OnClientTrailerAttach</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientTrailerAttach&amp;diff=28741"/>
		<updated>2011-12-22T15:23:25Z</updated>

		<summary type="html">&lt;p&gt;Lolern: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client event}}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This event is triggered by a trailer when it gets attached to a towing vehicle.&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
vehicle towedBy&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''towedBy:''' the vehicle that is now towing the trailer.&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The source of this event is the trailer that is now being towed.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example shows on chat name of vehicle, what attach a trailer.&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;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onAttach(vehicle)&lt;br /&gt;
	local name = getVehicleName(vehicle)&lt;br /&gt;
	outputChatBox(&amp;quot;You are attached the trailer by &amp;quot;..name)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onClientTrailerAttach&amp;quot;, getRootElement(), onAttach)&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;
===Client vehicle events===&lt;br /&gt;
{{Client_vehicle_events}}&lt;br /&gt;
===Client event functions===&lt;br /&gt;
{{Client_event_functions}}&lt;/div&gt;</summary>
		<author><name>Lolern</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnClientTrailerAttach&amp;diff=28735</id>
		<title>OnClientTrailerAttach</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientTrailerAttach&amp;diff=28735"/>
		<updated>2011-12-22T15:04:33Z</updated>

		<summary type="html">&lt;p&gt;Lolern: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client event}}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This event is triggered by a trailer when it gets attached to a towing vehicle.&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
vehicle towedBy&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''towedBy:''' the vehicle that is now towing the trailer.&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The source of this event is the trailer that is now being towed.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example shows on chat name of vehicle, what attach a trailer.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onAttach(vehicle)&lt;br /&gt;
	local name = getVehicleName(vehicle)&lt;br /&gt;
	outputChatBox(&amp;quot;You are attached the trailer by &amp;quot;..name)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onClientTrailerAttach&amp;quot;, getRootElement(), onAttach)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
===Client vehicle events===&lt;br /&gt;
{{Client_vehicle_events}}&lt;br /&gt;
===Client event functions===&lt;br /&gt;
{{Client_event_functions}}&lt;/div&gt;</summary>
		<author><name>Lolern</name></author>
	</entry>
</feed>