<?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=Lopez</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=Lopez"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Lopez"/>
	<updated>2026-04-21T03:30:04Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetPlayerHudComponentVisible&amp;diff=76222</id>
		<title>SetPlayerHudComponentVisible</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetPlayerHudComponentVisible&amp;diff=76222"/>
		<updated>2023-02-21T23:53:50Z</updated>

		<summary type="html">&lt;p&gt;Lopez: remove redundant note about showPlayerHudComponent&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function will show or hide a part of the player's HUD. &lt;br /&gt;
&lt;br /&gt;
==Syntax== &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;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setPlayerHudComponentVisible ( player thePlayer, string component, bool show )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[player]]:setHudComponentVisible||}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''thePlayer:''' The player element for which you wish to show/hide a HUD component&lt;br /&gt;
*'''component:''' The component you wish to show or hide. Valid values are:&lt;br /&gt;
:*'''all:''' All of the following at the same time&lt;br /&gt;
:*'''ammo:''' The display showing how much ammo the player has in their weapon&lt;br /&gt;
:*'''area_name:''' The text that appears containing the name of the area a player has entered&lt;br /&gt;
:*'''armour:''' The display showing the player's armor&lt;br /&gt;
:*'''breath:''' The display showing the player's breath&lt;br /&gt;
:*'''clock:''' The display showing the in-game time&lt;br /&gt;
:*'''health:''' The display showing the player's health&lt;br /&gt;
:*'''money:''' The display showing how much money the player has&lt;br /&gt;
:*'''radar:''' The bottom-left corner miniradar&lt;br /&gt;
:*'''vehicle_name:''' The text that appears containing the player's vehicle name when the player enters a vehicle&lt;br /&gt;
:*'''weapon:''' The display showing the player's weapon&lt;br /&gt;
{{New feature|3.0110|1.1|&lt;br /&gt;
:*'''radio:''' The display showing the radio label&lt;br /&gt;
:*'''wanted:''' The display showing the player's wanted level&lt;br /&gt;
:*'''crosshair:''' The weapon crosshair and sniper scope&lt;br /&gt;
}}&lt;br /&gt;
*'''show:''' Specify if the component should be shown (''true'') or hidden (''false'')&lt;br /&gt;
&amp;lt;/section&amp;gt;&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;
bool setPlayerHudComponentVisible ( string component, bool show )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''component:''' The component you wish to show or hide. Valid values are:&lt;br /&gt;
:*'''all:''' All of the following at the same time&lt;br /&gt;
:*'''ammo:''' The display showing how much ammo the player has in their weapon&lt;br /&gt;
:*'''area_name:''' The text that appears containing the name of the area a player has entered&lt;br /&gt;
:*'''armour:''' The display showing the player's armor&lt;br /&gt;
:*'''breath:''' The display showing the player's breath&lt;br /&gt;
:*'''clock:''' The display showing the in-game time&lt;br /&gt;
:*'''health:''' The display showing the player's health&lt;br /&gt;
:*'''money:''' The display showing how much money the player has&lt;br /&gt;
:*'''radar:''' The bottom-left corner miniradar&lt;br /&gt;
:*'''vehicle_name:''' The text that appears containing the player's vehicle name when the player enters a vehicle&lt;br /&gt;
:*'''weapon:''' The display showing the player's weapon&lt;br /&gt;
{{New feature/item|3.0110|1.1||&lt;br /&gt;
:*'''radio:''' The display showing the radio label&lt;br /&gt;
:*'''wanted:''' The display showing the player's wanted level&lt;br /&gt;
:*'''crosshair:''' The weapon crosshair and sniper scope&lt;br /&gt;
}}&lt;br /&gt;
*'''show:''' Specify if the component should be shown (''true'') or hidden (''false'')&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the component was shown or hidden succesfully, ''false'' if an invalid argument was specified.&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
{{Requirements|1.3.2|1.3.2}}&lt;br /&gt;
&lt;br /&gt;
==Example== &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;
This example hides the ammo and weapon displays for players when they join.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Hide some of the hud components when a player joins the server&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerJoin&amp;quot;, root, &lt;br /&gt;
    function ()&lt;br /&gt;
        setPlayerHudComponentVisible ( source, &amp;quot;ammo&amp;quot;, false )    -- Hide the ammo displays for the newly joined player&lt;br /&gt;
        setPlayerHudComponentVisible ( source, &amp;quot;weapon&amp;quot;, false )  -- Hide the weapon displays for the newly joined player&lt;br /&gt;
    end&lt;br /&gt;
)&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;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This example lets players hide or bring up their bottom-left radar with a command&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function toggleRadar()&lt;br /&gt;
	state = not state&lt;br /&gt;
	setPlayerHudComponentVisible(&amp;quot;radar&amp;quot;, state)&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler( &amp;quot;toggleradar&amp;quot;, toggleRadar)&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;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This example hides the weapon icon, weapon ammo, health bar, clock, money, breath bar, armor bar &amp;amp; wanted level stars displays for players when they join.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Hide the hud when the resource is started&lt;br /&gt;
local components = { &amp;quot;weapon&amp;quot;, &amp;quot;ammo&amp;quot;, &amp;quot;health&amp;quot;, &amp;quot;clock&amp;quot;, &amp;quot;money&amp;quot;, &amp;quot;breath&amp;quot;, &amp;quot;armour&amp;quot;, &amp;quot;wanted&amp;quot; }&lt;br /&gt;
&lt;br /&gt;
addEventHandler(&amp;quot;onClientResourceStart&amp;quot;, getResourceRootElement(getThisResource()),&lt;br /&gt;
function ()&lt;br /&gt;
	for _, component in ipairs( components ) do&lt;br /&gt;
		setPlayerHudComponentVisible( component, false )&lt;br /&gt;
	end&lt;br /&gt;
end)&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;
{{Player_functions}}&lt;/div&gt;</summary>
		<author><name>Lopez</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=CreateObject&amp;diff=75632</id>
		<title>CreateObject</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=CreateObject&amp;diff=75632"/>
		<updated>2022-10-31T11:32:52Z</updated>

		<summary type="html">&lt;p&gt;Lopez: remove false note about broken object sync&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server client function}}&lt;br /&gt;
Creates an [[object]] [[element]] at a given position and rotation.&lt;br /&gt;
{{Note|Dynamic objects do not automatically have physics applied to them. Use [[setElementVelocity]](object, 0, 0, 0) to fix this.}}&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;object createObject ( int modelId, float x, float y, float z, [ float rx, float ry, float rz, bool isLowLOD = false ] )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[Object]]||}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''modelId:''' A whole integer specifying the GTA:SA object model ID.&lt;br /&gt;
*'''x:''' A floating point number representing the X coordinate on the map.&lt;br /&gt;
*'''y:''' A floating point number representing the Y coordinate on the map.&lt;br /&gt;
*'''z:''' A floating point number representing the Z coordinate on the map.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
{{OptionalArg}} &lt;br /&gt;
*'''rx:''' A floating point number representing the rotation about the X axis in degrees.&lt;br /&gt;
*'''ry:''' A floating point number representing the rotation about the Y axis in degrees.&lt;br /&gt;
*'''rz:''' A floating point number representing the rotation about the Z axis in degrees.&lt;br /&gt;
{{New items|3.0120|1.2|&lt;br /&gt;
*'''isLowLOD:''' A bool value specifying if the object will be low LOD. A low LOD object has no collision and a longer draw distance.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
* Returns the [[object]] element if the creation was successful, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server-only Example 1&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This example creates an object when the resource starts:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function loadMapObjects()&lt;br /&gt;
   -- create an object at a specified position with a specified rotation&lt;br /&gt;
   createObject(1337, 5540.6654, 1020.55122, 1240.545, 90, 0, 0)&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onResourceStart&amp;quot;, resourceRoot, loadMapObjects)&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-only Example 2&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This example creates an object near the player who write /createObject in the chat:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- this function is called whenever someone types 'createObject' in the console:&lt;br /&gt;
function createObjectCommand(thePlayer, commandName)&lt;br /&gt;
   if (thePlayer) then&lt;br /&gt;
      local x, y, z = getElementPosition(thePlayer)&lt;br /&gt;
      -- create a object next to the player:&lt;br /&gt;
      local theObject = createObject(980, x + 2, y + 2, z, 0, 0, 0)&lt;br /&gt;
      if (theObject) then -- check if the object was created successfully&lt;br /&gt;
         outputChatBox(&amp;quot;Object created successfully.&amp;quot;, thePlayer)&lt;br /&gt;
      else&lt;br /&gt;
         outputChatBox(&amp;quot;Failed to create the object.&amp;quot;, thePlayer)&lt;br /&gt;
      end&lt;br /&gt;
   end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;createobject&amp;quot;, createObjectCommand)&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;
{{Object functions}}&lt;/div&gt;</summary>
		<author><name>Lopez</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=IsCoronaReflectionEnabled&amp;diff=75595</id>
		<title>IsCoronaReflectionEnabled</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=IsCoronaReflectionEnabled&amp;diff=75595"/>
		<updated>2022-10-18T19:12:16Z</updated>

		<summary type="html">&lt;p&gt;Lopez: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{Added feature/item|1.5.9|1.5.8|21251|This function gets visibility of corona reflection.}}&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool isCoronaReflectionEnabled ( marker theMarker )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[Marker]]:isCoronaReflectionEnabled||setCoronaReflectionEnabled}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theMarker:''' marker&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
* Returns ''false'' is [[setMarkerType|marker type]] is not ''corona''.&lt;br /&gt;
* Returns ''true'' if corona reflection is enabled, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{client marker functions}}* [[setCoronaReflectionsEnabled]]&lt;br /&gt;
* [[getCoronaReflectionsEnabled]]&lt;/div&gt;</summary>
		<author><name>Lopez</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetCoronaReflectionEnabled&amp;diff=75594</id>
		<title>SetCoronaReflectionEnabled</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetCoronaReflectionEnabled&amp;diff=75594"/>
		<updated>2022-10-18T19:11:21Z</updated>

		<summary type="html">&lt;p&gt;Lopez: /* See Also */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{Added feature/item|1.5.9|1.5.8|21251|This function sets visibility of corona reflection.}}&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 setCoronaReflectionEnabled ( marker theMarker, bool enabled )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[Marker]]:setCoronaReflectionEnabled||isCoronaReflectionEnabled}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theMarker:''' the corona marker that you wish set visibility of corona reflection&lt;br /&gt;
*'''enabled:''' whenever corona reflection should be visible&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if [[setMarkerType|marker type]] is ''corona'', ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Issues== &lt;br /&gt;
{{Issues|&lt;br /&gt;
{{Issue|2755|Corona reflections do not render on custom placed objects}}&lt;br /&gt;
{{Issue|2750|Corona reflections do not render on all roads}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{client marker functions}}* [[setCoronaReflectionsEnabled]]&lt;br /&gt;
* [[getCoronaReflectionsEnabled]]&lt;/div&gt;</summary>
		<author><name>Lopez</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetCoronaReflectionEnabled&amp;diff=75593</id>
		<title>SetCoronaReflectionEnabled</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetCoronaReflectionEnabled&amp;diff=75593"/>
		<updated>2022-10-18T19:10:54Z</updated>

		<summary type="html">&lt;p&gt;Lopez: /* See Also */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{Added feature/item|1.5.9|1.5.8|21251|This function sets visibility of corona reflection.}}&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 setCoronaReflectionEnabled ( marker theMarker, bool enabled )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[Marker]]:setCoronaReflectionEnabled||isCoronaReflectionEnabled}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theMarker:''' the corona marker that you wish set visibility of corona reflection&lt;br /&gt;
*'''enabled:''' whenever corona reflection should be visible&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if [[setMarkerType|marker type]] is ''corona'', ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Issues== &lt;br /&gt;
{{Issues|&lt;br /&gt;
{{Issue|2755|Corona reflections do not render on custom placed objects}}&lt;br /&gt;
{{Issue|2750|Corona reflections do not render on all roads}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{client marker functions}}&lt;br /&gt;
* [[setCoronaReflectionsEnabled]]&lt;/div&gt;</summary>
		<author><name>Lopez</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=File:2.png&amp;diff=75572</id>
		<title>File:2.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=File:2.png&amp;diff=75572"/>
		<updated>2022-10-07T22:05:05Z</updated>

		<summary type="html">&lt;p&gt;Lopez: Lopez uploaded File:2.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Lopez</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=File:1.png&amp;diff=75571</id>
		<title>File:1.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=File:1.png&amp;diff=75571"/>
		<updated>2022-10-07T22:04:44Z</updated>

		<summary type="html">&lt;p&gt;Lopez: Lopez uploaded File:1.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Lopez</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=File:2.png&amp;diff=75570</id>
		<title>File:2.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=File:2.png&amp;diff=75570"/>
		<updated>2022-10-07T22:00:47Z</updated>

		<summary type="html">&lt;p&gt;Lopez: blank&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Lopez</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=File:1.png&amp;diff=75569</id>
		<title>File:1.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=File:1.png&amp;diff=75569"/>
		<updated>2022-10-07T22:00:34Z</updated>

		<summary type="html">&lt;p&gt;Lopez: blank&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Lopez</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetCoronaReflectionsEnabled&amp;diff=75568</id>
		<title>GetCoronaReflectionsEnabled</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetCoronaReflectionsEnabled&amp;diff=75568"/>
		<updated>2022-10-07T21:55:17Z</updated>

		<summary type="html">&lt;p&gt;Lopez: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{Added feature/item|1.5.9|1.5.8|21251|This function gets visibility of corona reflections.}}&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 getCoronaReflectionsEnabled ( )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
One of the following integers will be returned:&lt;br /&gt;
* '''0''': corona reflections are disabled&lt;br /&gt;
* '''1''': corona reflections are enabled (are visible during rain)&lt;br /&gt;
* '''2''': corona reflections are force enabled (are visible even if there is no rain)&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{client world functions}}&lt;/div&gt;</summary>
		<author><name>Lopez</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetCoronaReflectionsEnabled&amp;diff=75567</id>
		<title>GetCoronaReflectionsEnabled</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetCoronaReflectionsEnabled&amp;diff=75567"/>
		<updated>2022-10-07T21:54:39Z</updated>

		<summary type="html">&lt;p&gt;Lopez: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{Added feature/item|1.5.9|1.5.8|21251|This function gets visibility of corona reflections.}}&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 getCoronaReflectionsEnabled ( )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
One of the following integers will be returned:&lt;br /&gt;
* '''0''': corona reflections are disabled&lt;br /&gt;
* '''1''': corona reflections are enabled (will be visible during rain)&lt;br /&gt;
* '''2''': corona reflections are force enabled (will be visible even if there is no rain)&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{client world functions}}&lt;/div&gt;</summary>
		<author><name>Lopez</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetCoronaReflectionsEnabled&amp;diff=75566</id>
		<title>SetCoronaReflectionsEnabled</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetCoronaReflectionsEnabled&amp;diff=75566"/>
		<updated>2022-10-07T21:54:23Z</updated>

		<summary type="html">&lt;p&gt;Lopez: /* Required Arguments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
[[File:Corona-reflections.png|500px|thumb|right|Corona reflections.]]&lt;br /&gt;
{{Added feature/item|1.5.9|1.5.8|21251|This function sets visibility of corona reflections.}}&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 setCoronaReflectionsEnabled ( int enabled )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''enabled:'''&lt;br /&gt;
** '''0''': disabled&lt;br /&gt;
** '''1''': enabled (will be visible during rain)&lt;br /&gt;
** '''2''': force enabled (will be visible even if there is no rain)&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if passed arguments are correct, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Force enable corona reflections even if there is no rain&lt;br /&gt;
setCoronaReflectionsEnabled(2)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Issues== &lt;br /&gt;
{{Issues|&lt;br /&gt;
{{Issue|2755|Corona reflections do not render on custom placed objects}}&lt;br /&gt;
{{Issue|2750|Corona reflections do not render on all roads}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{client world functions}}&lt;/div&gt;</summary>
		<author><name>Lopez</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Client_world_functions&amp;diff=75565</id>
		<title>Template:Client world functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Client_world_functions&amp;diff=75565"/>
		<updated>2022-10-07T21:49:54Z</updated>

		<summary type="html">&lt;p&gt;Lopez: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* [[areTrafficLightsLocked]]&lt;br /&gt;
* [[createSWATRope]]&lt;br /&gt;
* [[getAircraftMaxHeight]]&lt;br /&gt;
* [[getAircraftMaxVelocity]]&lt;br /&gt;
* [[getBirdsEnabled]]&lt;br /&gt;
* [[getCloudsEnabled]]&lt;br /&gt;
* [[getCoronaReflectionsEnabled]]&lt;br /&gt;
* [[getFarClipDistance]]&lt;br /&gt;
* [[getFogDistance]]&lt;br /&gt;
* [[getGameSpeed]]&lt;br /&gt;
* [[getGarageBoundingBox]]&lt;br /&gt;
* [[getGaragePosition]]&lt;br /&gt;
* [[getGarageSize]]&lt;br /&gt;
* [[getGravity]]&lt;br /&gt;
* [[getGroundPosition]]&lt;br /&gt;
* [[getHeatHaze]]&lt;br /&gt;
* [[getInteriorFurnitureEnabled]]&lt;br /&gt;
* [[getInteriorSoundsEnabled]]&lt;br /&gt;
* [[getJetpackMaxHeight]]&lt;br /&gt;
* [[getMinuteDuration]]&lt;br /&gt;
* [[getMoonSize]]&lt;br /&gt;
* [[getNearClipDistance]]&lt;br /&gt;
* [[getOcclusionsEnabled]]&lt;br /&gt;
* [[getPedsLODDistance]]&lt;br /&gt;
* [[getPlayerBlurLevel]]&lt;br /&gt;
* [[getRainLevel]]&lt;br /&gt;
{{Added feature/item|1.5.9|1.5.8|20675|&lt;br /&gt;
* [[getRoofPosition]]&lt;br /&gt;
}}&lt;br /&gt;
* [[getScreenFromWorldPosition]]&lt;br /&gt;
* [[getSunColor]]&lt;br /&gt;
* [[getSunSize]]&lt;br /&gt;
* [[getTime]]&lt;br /&gt;
* [[getTrafficLightState]]&lt;br /&gt;
* [[getVehiclesLODDistance]]&lt;br /&gt;
* [[getWeather]]&lt;br /&gt;
* [[getWindVelocity]]&lt;br /&gt;
* [[getWorldFromScreenPosition]]&lt;br /&gt;
* [[getZoneName]]&lt;br /&gt;
* [[isAmbientSoundEnabled]]&lt;br /&gt;
* [[isGarageOpen]]&lt;br /&gt;
* [[isLineOfSightClear]]&lt;br /&gt;
* [[isWorldSoundEnabled]]&lt;br /&gt;
* [[isWorldSpecialPropertyEnabled]]&lt;br /&gt;
* [[processLineOfSight]]&lt;br /&gt;
* [[removeWorldModel]]&lt;br /&gt;
* [[resetAmbientSounds]]&lt;br /&gt;
* [[resetBlurLevel]]&lt;br /&gt;
* [[resetColorFilter]]&lt;br /&gt;
* [[resetCoronaReflectionsEnabled]]&lt;br /&gt;
* [[resetFarClipDistance]]&lt;br /&gt;
* [[resetFogDistance]]&lt;br /&gt;
* [[resetHeatHaze]]&lt;br /&gt;
* [[resetMoonSize]]&lt;br /&gt;
* [[resetNearClipDistance]]&lt;br /&gt;
* [[resetPedsLODDistance]]&lt;br /&gt;
* [[resetRainLevel]]&lt;br /&gt;
* [[resetSkyGradient]]&lt;br /&gt;
* [[resetSunColor]]&lt;br /&gt;
* [[resetSunSize]]&lt;br /&gt;
* [[resetVehiclesLODDistance]]&lt;br /&gt;
* [[resetWindVelocity]]&lt;br /&gt;
* [[resetWorldSounds]]&lt;br /&gt;
* [[restoreAllWorldModels]]&lt;br /&gt;
* [[restoreWorldModel]]&lt;br /&gt;
* [[setAircraftMaxHeight]]&lt;br /&gt;
* [[setAircraftMaxVelocity]]&lt;br /&gt;
* [[setAmbientSoundEnabled]]&lt;br /&gt;
* [[setBirdsEnabled]]&lt;br /&gt;
* [[setCloudsEnabled]]&lt;br /&gt;
* [[setColorFilter]]&lt;br /&gt;
* [[setCoronaReflectionsEnabled]]&lt;br /&gt;
* [[setFarClipDistance]]&lt;br /&gt;
* [[setFogDistance]]&lt;br /&gt;
* [[setGameSpeed]]&lt;br /&gt;
* [[setGarageOpen]]&lt;br /&gt;
* [[setGravity]]&lt;br /&gt;
* [[setHeatHaze]]&lt;br /&gt;
* [[setInteriorFurnitureEnabled]]&lt;br /&gt;
* [[setInteriorSoundsEnabled]]&lt;br /&gt;
* [[setJetpackMaxHeight]]&lt;br /&gt;
* [[setMinuteDuration]]&lt;br /&gt;
* [[setMoonSize]]&lt;br /&gt;
* [[setNearClipDistance]]&lt;br /&gt;
* [[setOcclusionsEnabled]]&lt;br /&gt;
* [[setPedsLODDistance]]&lt;br /&gt;
* [[setPlayerBlurLevel]]&lt;br /&gt;
* [[setRainLevel]]&lt;br /&gt;
* [[setSkyGradient]]&lt;br /&gt;
* [[setSunColor]]&lt;br /&gt;
* [[setSunSize]]&lt;br /&gt;
* [[setTime]]&lt;br /&gt;
* [[setTrafficLightsLocked]]&lt;br /&gt;
* [[setTrafficLightState]]&lt;br /&gt;
* [[setVehiclesLODDistance]]&lt;br /&gt;
* [[setWeather]]&lt;br /&gt;
* [[setWeatherBlended]]&lt;br /&gt;
* [[setWindVelocity]]&lt;br /&gt;
* [[setWorldSoundEnabled]]&lt;br /&gt;
* [[setWorldSpecialPropertyEnabled]]&lt;br /&gt;
* [[testLineAgainstWater]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Functions templates]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Lopez</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Client_world_functions&amp;diff=75564</id>
		<title>Template:Client world functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Client_world_functions&amp;diff=75564"/>
		<updated>2022-10-07T21:49:21Z</updated>

		<summary type="html">&lt;p&gt;Lopez: add resetCoronaRainReflections&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* [[areTrafficLightsLocked]]&lt;br /&gt;
* [[createSWATRope]]&lt;br /&gt;
* [[getAircraftMaxHeight]]&lt;br /&gt;
* [[getAircraftMaxVelocity]]&lt;br /&gt;
* [[getBirdsEnabled]]&lt;br /&gt;
* [[getCloudsEnabled]]&lt;br /&gt;
* [[getCoronaReflectionsEnabled]]&lt;br /&gt;
* [[getFarClipDistance]]&lt;br /&gt;
* [[getFogDistance]]&lt;br /&gt;
* [[getGameSpeed]]&lt;br /&gt;
* [[getGarageBoundingBox]]&lt;br /&gt;
* [[getGaragePosition]]&lt;br /&gt;
* [[getGarageSize]]&lt;br /&gt;
* [[getGravity]]&lt;br /&gt;
* [[getGroundPosition]]&lt;br /&gt;
* [[getHeatHaze]]&lt;br /&gt;
* [[getInteriorFurnitureEnabled]]&lt;br /&gt;
* [[getInteriorSoundsEnabled]]&lt;br /&gt;
* [[getJetpackMaxHeight]]&lt;br /&gt;
* [[getMinuteDuration]]&lt;br /&gt;
* [[getMoonSize]]&lt;br /&gt;
* [[getNearClipDistance]]&lt;br /&gt;
* [[getOcclusionsEnabled]]&lt;br /&gt;
* [[getPedsLODDistance]]&lt;br /&gt;
* [[getPlayerBlurLevel]]&lt;br /&gt;
* [[getRainLevel]]&lt;br /&gt;
{{Added feature/item|1.5.9|1.5.8|20675|&lt;br /&gt;
* [[getRoofPosition]]&lt;br /&gt;
}}&lt;br /&gt;
* [[getScreenFromWorldPosition]]&lt;br /&gt;
* [[getSunColor]]&lt;br /&gt;
* [[getSunSize]]&lt;br /&gt;
* [[getTime]]&lt;br /&gt;
* [[getTrafficLightState]]&lt;br /&gt;
* [[getVehiclesLODDistance]]&lt;br /&gt;
* [[getWeather]]&lt;br /&gt;
* [[getWindVelocity]]&lt;br /&gt;
* [[getWorldFromScreenPosition]]&lt;br /&gt;
* [[getZoneName]]&lt;br /&gt;
* [[isAmbientSoundEnabled]]&lt;br /&gt;
* [[isGarageOpen]]&lt;br /&gt;
* [[isLineOfSightClear]]&lt;br /&gt;
* [[isWorldSoundEnabled]]&lt;br /&gt;
* [[isWorldSpecialPropertyEnabled]]&lt;br /&gt;
* [[processLineOfSight]]&lt;br /&gt;
* [[removeWorldModel]]&lt;br /&gt;
* [[resetAmbientSounds]]&lt;br /&gt;
* [[resetBlurLevel]]&lt;br /&gt;
* [[resetColorFilter]]&lt;br /&gt;
* [[resetCoronaRainReflections]]&lt;br /&gt;
* [[resetFarClipDistance]]&lt;br /&gt;
* [[resetFogDistance]]&lt;br /&gt;
* [[resetHeatHaze]]&lt;br /&gt;
* [[resetMoonSize]]&lt;br /&gt;
* [[resetNearClipDistance]]&lt;br /&gt;
* [[resetPedsLODDistance]]&lt;br /&gt;
* [[resetRainLevel]]&lt;br /&gt;
* [[resetSkyGradient]]&lt;br /&gt;
* [[resetSunColor]]&lt;br /&gt;
* [[resetSunSize]]&lt;br /&gt;
* [[resetVehiclesLODDistance]]&lt;br /&gt;
* [[resetWindVelocity]]&lt;br /&gt;
* [[resetWorldSounds]]&lt;br /&gt;
* [[restoreAllWorldModels]]&lt;br /&gt;
* [[restoreWorldModel]]&lt;br /&gt;
* [[setAircraftMaxHeight]]&lt;br /&gt;
* [[setAircraftMaxVelocity]]&lt;br /&gt;
* [[setAmbientSoundEnabled]]&lt;br /&gt;
* [[setBirdsEnabled]]&lt;br /&gt;
* [[setCloudsEnabled]]&lt;br /&gt;
* [[setColorFilter]]&lt;br /&gt;
* [[setCoronaReflectionsEnabled]]&lt;br /&gt;
* [[setFarClipDistance]]&lt;br /&gt;
* [[setFogDistance]]&lt;br /&gt;
* [[setGameSpeed]]&lt;br /&gt;
* [[setGarageOpen]]&lt;br /&gt;
* [[setGravity]]&lt;br /&gt;
* [[setHeatHaze]]&lt;br /&gt;
* [[setInteriorFurnitureEnabled]]&lt;br /&gt;
* [[setInteriorSoundsEnabled]]&lt;br /&gt;
* [[setJetpackMaxHeight]]&lt;br /&gt;
* [[setMinuteDuration]]&lt;br /&gt;
* [[setMoonSize]]&lt;br /&gt;
* [[setNearClipDistance]]&lt;br /&gt;
* [[setOcclusionsEnabled]]&lt;br /&gt;
* [[setPedsLODDistance]]&lt;br /&gt;
* [[setPlayerBlurLevel]]&lt;br /&gt;
* [[setRainLevel]]&lt;br /&gt;
* [[setSkyGradient]]&lt;br /&gt;
* [[setSunColor]]&lt;br /&gt;
* [[setSunSize]]&lt;br /&gt;
* [[setTime]]&lt;br /&gt;
* [[setTrafficLightsLocked]]&lt;br /&gt;
* [[setTrafficLightState]]&lt;br /&gt;
* [[setVehiclesLODDistance]]&lt;br /&gt;
* [[setWeather]]&lt;br /&gt;
* [[setWeatherBlended]]&lt;br /&gt;
* [[setWindVelocity]]&lt;br /&gt;
* [[setWorldSoundEnabled]]&lt;br /&gt;
* [[setWorldSpecialPropertyEnabled]]&lt;br /&gt;
* [[testLineAgainstWater]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Functions templates]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Lopez</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=ResetCoronaReflectionsEnabled&amp;diff=75563</id>
		<title>ResetCoronaReflectionsEnabled</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ResetCoronaReflectionsEnabled&amp;diff=75563"/>
		<updated>2022-10-07T21:48:32Z</updated>

		<summary type="html">&lt;p&gt;Lopez: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{Added feature/item|1.5.9|1.5.8|21251|This function resets visibility of corona reflections. Default value depends on client setting. If client has enabled ''corona rain reflections'' in video options, value will be reset to '''1''', otherwise to '''0'''. You can check value of this option using [[dxGetStatus]] (''SettingCoronaReflections'').}}&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 resetCoronaReflectionsEnabled ( )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true''.&lt;br /&gt;
&lt;br /&gt;
==Issues== &lt;br /&gt;
{{Issues|&lt;br /&gt;
{{Issue|2755|Corona reflections do not render on custom placed objects}}&lt;br /&gt;
{{Issue|2750|Corona reflections do not render on all roads}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{client world functions}}&lt;/div&gt;</summary>
		<author><name>Lopez</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=ResetCoronaReflectionsEnabled&amp;diff=75562</id>
		<title>ResetCoronaReflectionsEnabled</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ResetCoronaReflectionsEnabled&amp;diff=75562"/>
		<updated>2022-10-07T21:47:51Z</updated>

		<summary type="html">&lt;p&gt;Lopez: Created page with &amp;quot;{{Client function}} __NOTOC__ {{Added feature/item|1.5.9|1.5.8|21251|This function resets visibility of corona reflections. Default value depends on client setting. If client has enabled ''corona rain reflections'' in video options, value will be reset to ''true'', otherwise to ''false''. You can check value of this option using dxGetStatus (''SettingCoronaReflections'').}}  ==Syntax==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; bool resetCoronaReflectionsEnabled ( ) &amp;lt;/syntaxhighl...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{Added feature/item|1.5.9|1.5.8|21251|This function resets visibility of corona reflections. Default value depends on client setting. If client has enabled ''corona rain reflections'' in video options, value will be reset to ''true'', otherwise to ''false''. You can check value of this option using [[dxGetStatus]] (''SettingCoronaReflections'').}}&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 resetCoronaReflectionsEnabled ( )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true''.&lt;br /&gt;
&lt;br /&gt;
==Issues== &lt;br /&gt;
{{Issues|&lt;br /&gt;
{{Issue|2755|Corona reflections do not render on custom placed objects}}&lt;br /&gt;
{{Issue|2750|Corona reflections do not render on all roads}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{client world functions}}&lt;/div&gt;</summary>
		<author><name>Lopez</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetCoronaReflectionsEnabled&amp;diff=75561</id>
		<title>SetCoronaReflectionsEnabled</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetCoronaReflectionsEnabled&amp;diff=75561"/>
		<updated>2022-10-07T21:44:12Z</updated>

		<summary type="html">&lt;p&gt;Lopez: add img&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
[[File:Corona-reflections.png|500px|thumb|right|Corona reflections.]]&lt;br /&gt;
{{Added feature/item|1.5.9|1.5.8|21251|This function sets visibility of corona reflections.}}&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 setCoronaReflectionsEnabled ( int enabled )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''enabled:'''&lt;br /&gt;
** '''0''': disabled&lt;br /&gt;
** '''1''': enabled&lt;br /&gt;
** '''2''': force enabled, even if there is no rain&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if passed arguments are correct, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Force enable corona reflections even if there is no rain&lt;br /&gt;
setCoronaReflectionsEnabled(2)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Issues== &lt;br /&gt;
{{Issues|&lt;br /&gt;
{{Issue|2755|Corona reflections do not render on custom placed objects}}&lt;br /&gt;
{{Issue|2750|Corona reflections do not render on all roads}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{client world functions}}&lt;/div&gt;</summary>
		<author><name>Lopez</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=File:Corona-reflections.png&amp;diff=75560</id>
		<title>File:Corona-reflections.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=File:Corona-reflections.png&amp;diff=75560"/>
		<updated>2022-10-07T21:43:07Z</updated>

		<summary type="html">&lt;p&gt;Lopez: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Lopez</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=IsElementCollidableWith&amp;diff=75559</id>
		<title>IsElementCollidableWith</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=IsElementCollidableWith&amp;diff=75559"/>
		<updated>2022-10-07T21:32:03Z</updated>

		<summary type="html">&lt;p&gt;Lopez: add Weapon to supported element types&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This function can be used to check whether specified element is collidable with another element.&amp;lt;br&amp;gt;&lt;br /&gt;
'''Note:''' You can only use this function with the element types listed below.&lt;br /&gt;
*[[Player]]&lt;br /&gt;
*[[Ped]]&lt;br /&gt;
*[[Vehicle]]&lt;br /&gt;
*[[Object]]&lt;br /&gt;
{{Added feature/item|1.5.9|1.5.8|21348|&lt;br /&gt;
* [[Element/Weapon|Weapon]]&lt;br /&gt;
}}&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 isElementCollidableWith ( element theElement, element withElement ) &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{New feature/item|3.0141|1.4.0|6987|{{OOP||[[element]]:isCollidableWith||setElementCollidableWith}}}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theElement:''' The [[element]] which colliding you want to get&lt;br /&gt;
*'''withElement:''' The other [[element]] which colliding with the first entity you want to get&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the elements collide with eachother, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example adds the command ''togglecol'' which toggles the collision between the player and ped.&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;
local tPed = {}&lt;br /&gt;
addEventHandler( &amp;quot;onClientPlayerSpawn&amp;quot;, localPlayer,&lt;br /&gt;
    function()&lt;br /&gt;
        local x, y, z = getElementPosition(source)&lt;br /&gt;
        if isElement(tPed[&amp;quot;thePed&amp;quot;]) then&lt;br /&gt;
            destroyElement(tPed[&amp;quot;thePed&amp;quot;])&lt;br /&gt;
        end&lt;br /&gt;
        -- Creates a random ped near player&lt;br /&gt;
        tPed[&amp;quot;thePed&amp;quot;] = createPed(math.random(209, 238), x+1, y+1, z)&lt;br /&gt;
    end&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
function toggleColisionFunc()&lt;br /&gt;
    if not isElement(tPed[&amp;quot;thePed&amp;quot;]) then&lt;br /&gt;
        return&lt;br /&gt;
    end&lt;br /&gt;
    -- Is the local player collidable with the ped?&lt;br /&gt;
    local isCollidable = isElementCollidableWith( localPlayer, tPed[&amp;quot;thePed&amp;quot;] )&lt;br /&gt;
    -- Toggles the colision with the ped.&lt;br /&gt;
    setElementCollidableWith( localPlayer, tPed[&amp;quot;thePed&amp;quot;], not isCollidable )&lt;br /&gt;
end&lt;br /&gt;
-- Adds a command handler to enable/disable colisions with the ped&lt;br /&gt;
addCommandHandler(&amp;quot;togglecol&amp;quot;, toggleColisionFunc)&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 element functions}}&lt;/div&gt;</summary>
		<author><name>Lopez</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetElementCollidableWith&amp;diff=75558</id>
		<title>SetElementCollidableWith</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetElementCollidableWith&amp;diff=75558"/>
		<updated>2022-10-07T21:31:33Z</updated>

		<summary type="html">&lt;p&gt;Lopez: add Weapon to supported element types&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This function can be used to set an element to collide with another element. An element with collisions disabled does not interact physically with the other element.&amp;lt;br&amp;gt;&lt;br /&gt;
'''Note:''' You can only use this function with the element types listed below.&lt;br /&gt;
*[[Player]]&lt;br /&gt;
*[[Ped]]&lt;br /&gt;
*[[Vehicle]]&lt;br /&gt;
*[[Object]]&lt;br /&gt;
{{Added feature/item|1.5.9|1.5.8|21348|&lt;br /&gt;
* [[Element/Weapon|Weapon]]&lt;br /&gt;
}}&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 setElementCollidableWith ( element theElement, element withElement, bool enabled ) &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[element]]:setCollidableWith||isElementCollidableWith}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theElement:''' The [[element]] which colliding you want to change&lt;br /&gt;
*'''withElement:''' The other [[element]] you wish the first entity to collide with&lt;br /&gt;
*'''enabled:''' A boolean to indicate whether elements should be able to collide with eachother (''true'') or not (''false'')&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the collisions were set succesfully, ''false'' otherwise.&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 ghostmode_on()&lt;br /&gt;
	local playerVehicle = getPedOccupiedVehicle(localPlayer) -- Get the players vehicle&lt;br /&gt;
	if(playerVehicle) then -- Check the return value.&lt;br /&gt;
		for i,v in pairs(getElementsByType(&amp;quot;vehicle&amp;quot;)) do --LOOP through all vehicles&lt;br /&gt;
			setElementCollidableWith(v, playerVehicle, false) -- Set the collison off with the other vehicles.&lt;br /&gt;
		end&lt;br /&gt;
		outputChatBox(&amp;quot;You are now a Ghost&amp;quot;)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;ghostmode&amp;quot;, ghostmode_on) -- Add the /ghostmode Command.&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 element functions}}&lt;/div&gt;</summary>
		<author><name>Lopez</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxGetStatus&amp;diff=75557</id>
		<title>DxGetStatus</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxGetStatus&amp;diff=75557"/>
		<updated>2022-10-07T21:26:56Z</updated>

		<summary type="html">&lt;p&gt;Lopez: add SettingDynamicPedShadows&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function gets information about various internal datum.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
table dxGetStatus ( )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a table with the following entries:&lt;br /&gt;
*'''TestMode:''' The current dx test mode. See [[dxSetTestMode]].&lt;br /&gt;
*'''VideoCardName:''' The name of the graphics card.&lt;br /&gt;
*'''VideoCardRAM:''' The installed memory in MB of the graphics card.&lt;br /&gt;
*'''VideoCardPSVersion:''' The maximum pixel shader version of the graphics card.&lt;br /&gt;
*'''VideoCardMaxAnisotropy:''' The maximum anisotropic filtering available. (0-4 which respectively mean: off, 2x, 4x, 8x, 16x)&lt;br /&gt;
*'''VideoCardNumRenderTargets:''' The maximum number of simultaneous render targets a shader can use.&lt;br /&gt;
*'''VideoMemoryFreeForMTA:''' The amount of memory in MB available for MTA to use. '''When this gets to zero, [[guiCreateFont]], [[dxCreateFont]] and [[dxCreateRenderTarget]] will fail.'''&lt;br /&gt;
*'''VideoMemoryUsedByFonts:''' The amount of graphic memory in MB used by custom fonts.&lt;br /&gt;
*'''VideoMemoryUsedByTextures:''' The amount of graphic memory in MB used by textures.&lt;br /&gt;
*'''VideoMemoryUsedByRenderTargets:''' The amount of graphic memory in MB used by render targets.&lt;br /&gt;
*'''SettingWindowed:''' The windowed setting. (true/false)&lt;br /&gt;
*'''SettingFullScreenStyle:''' Display style when in full screen mode. (0-2 which respectively mean: Standard, Borderless window, Borderless keep res)&lt;br /&gt;
*'''SettingFXQuality:''' The FX Quality. (0-3)&lt;br /&gt;
*'''SettingDrawDistance:''' The draw distance setting. (0-100)&lt;br /&gt;
*'''SettingVolumetricShadows:''' The volumetric shadows setting. (true/false)&lt;br /&gt;
*'''SettingStreamingVideoMemoryForGTA:''' The usable graphics memory setting. (64-256)&lt;br /&gt;
*'''SettingAnisotropicFiltering:''' The anisotropic filtering setting. (0-4 which respectively mean: off, 2x, 4x, 8x, 16x)&lt;br /&gt;
*'''SettingAntiAliasing:''' The anti-aliasing setting. (0-3 which respectively mean: off, 1x, 2x, 3x)&lt;br /&gt;
*'''SettingHeatHaze:''' The heat haze setting. (true/false)&lt;br /&gt;
*'''SettingGrassEffect:''' The grass effect setting. (true/false)&lt;br /&gt;
*'''Setting32BitColor:''' The color depth of the screen. (false is 16bit, true is 32bit)&lt;br /&gt;
*'''SettingHUDMatchAspectRatio:''' The hud match aspect ratio setting. (true/false)&lt;br /&gt;
*'''SettingAspectRatio:''' The aspect ratio setting. (&amp;quot;auto&amp;quot;, &amp;quot;4:3&amp;quot;, &amp;quot;16:10&amp;quot;, &amp;quot;16:9&amp;quot;)&lt;br /&gt;
*'''SettingFOV:''' The FOV setting.&lt;br /&gt;
*'''SettingHighDetailVehicles:''' High detail vehicles setting. (true/false)&lt;br /&gt;
{{Added feature/item|1.5.9|1.5.8|20508|&lt;br /&gt;
*'''SettingHighDetailPeds:''' High detail peds setting. (true/false)&lt;br /&gt;
}}&lt;br /&gt;
{{Added feature/item|1.5.9|1.5.8|21251|&lt;br /&gt;
*'''SettingCoronaReflections:''' Corona rain reflections setting. (true/false)&lt;br /&gt;
}}&lt;br /&gt;
{{Added feature/item|1.5.9|1.5.8|21348|&lt;br /&gt;
*'''SettingDynamicPedShadows:''' Dynamic ped shadows setting. (true/false)&lt;br /&gt;
}}&lt;br /&gt;
*'''AllowScreenUpload:''' The allows screen uploads setting. (true/false)&lt;br /&gt;
*'''DepthBufferFormat:''' The format of the shader readable depth buffer, or 'unknown' if not available.&lt;br /&gt;
{{Added feature/item|1.5.9|1.5.8|20901|&lt;br /&gt;
*'''TotalPhysicalMemory:''' The amount of total physical memory in MB.&lt;br /&gt;
}}&lt;br /&gt;
*'''UsingDepthBuffer:''' ''true'' if the depth buffer is used, ''false'' otherwise.&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;getinfo&amp;quot;,&lt;br /&gt;
	function ()&lt;br /&gt;
		local info = dxGetStatus ()&lt;br /&gt;
		for k, v in pairs (info) do&lt;br /&gt;
			outputChatBox (k .. &amp;quot; : &amp;quot; .. tostring (v))&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Changelog==&lt;br /&gt;
{{ChangelogHeader}}&lt;br /&gt;
{{ChangelogItem|1.3.0-9.04715|Added DepthBufferFormat argument}}&lt;br /&gt;
{{ChangelogItem|1.3.0-9.04811|Added VideoCardMaxAnisotropy, SettingAnisotropicFiltering, SettingAntiAliasing,&amp;lt;br/&amp;gt; SettingHeatHaze, SettingGrassEffect and Setting32BitColor arguments}}&lt;br /&gt;
{{ChangelogItem|1.3.4-9.05731|Added SettingHUDMatchAspectRatio and SettingAspectRatio}}&lt;br /&gt;
{{ChangelogItem|1.4.1-9.07181|Added SettingFOV}}&lt;br /&gt;
{{ChangelogItem|1.4.1-9.07310|Added VideoCardNumRenderTargets}}&lt;br /&gt;
{{ChangelogItem|1.5.2-9.07816|Added UsingDepthBuffer}}&lt;br /&gt;
{{ChangelogItem|1.5.3-9.11199|Added SettingHighDetailVehicles}}&lt;br /&gt;
{{ChangelogItem|1.5.5-9.11814|Added SettingFullScreenStyle&amp;lt;br/&amp;gt;Fixed SettingWindowed}}&lt;br /&gt;
{{ChangelogItem|1.5.8-9.20508|Added SettingHighDetailPeds}}&lt;br /&gt;
{{ChangelogItem|1.5.8-9.20901|Added TotalPhysicalMemory}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Drawing_functions}}&lt;br /&gt;
&lt;br /&gt;
[[hu:dxGetStatus]]&lt;/div&gt;</summary>
		<author><name>Lopez</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxGetStatus&amp;diff=75556</id>
		<title>DxGetStatus</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxGetStatus&amp;diff=75556"/>
		<updated>2022-10-07T21:25:26Z</updated>

		<summary type="html">&lt;p&gt;Lopez: add SettingCoronaReflections&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function gets information about various internal datum.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
table dxGetStatus ( )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a table with the following entries:&lt;br /&gt;
*'''TestMode:''' The current dx test mode. See [[dxSetTestMode]].&lt;br /&gt;
*'''VideoCardName:''' The name of the graphics card.&lt;br /&gt;
*'''VideoCardRAM:''' The installed memory in MB of the graphics card.&lt;br /&gt;
*'''VideoCardPSVersion:''' The maximum pixel shader version of the graphics card.&lt;br /&gt;
*'''VideoCardMaxAnisotropy:''' The maximum anisotropic filtering available. (0-4 which respectively mean: off, 2x, 4x, 8x, 16x)&lt;br /&gt;
*'''VideoCardNumRenderTargets:''' The maximum number of simultaneous render targets a shader can use.&lt;br /&gt;
*'''VideoMemoryFreeForMTA:''' The amount of memory in MB available for MTA to use. '''When this gets to zero, [[guiCreateFont]], [[dxCreateFont]] and [[dxCreateRenderTarget]] will fail.'''&lt;br /&gt;
*'''VideoMemoryUsedByFonts:''' The amount of graphic memory in MB used by custom fonts.&lt;br /&gt;
*'''VideoMemoryUsedByTextures:''' The amount of graphic memory in MB used by textures.&lt;br /&gt;
*'''VideoMemoryUsedByRenderTargets:''' The amount of graphic memory in MB used by render targets.&lt;br /&gt;
*'''SettingWindowed:''' The windowed setting. (true/false)&lt;br /&gt;
*'''SettingFullScreenStyle:''' Display style when in full screen mode. (0-2 which respectively mean: Standard, Borderless window, Borderless keep res)&lt;br /&gt;
*'''SettingFXQuality:''' The FX Quality. (0-3)&lt;br /&gt;
*'''SettingDrawDistance:''' The draw distance setting. (0-100)&lt;br /&gt;
*'''SettingVolumetricShadows:''' The volumetric shadows setting. (true/false)&lt;br /&gt;
*'''SettingStreamingVideoMemoryForGTA:''' The usable graphics memory setting. (64-256)&lt;br /&gt;
*'''SettingAnisotropicFiltering:''' The anisotropic filtering setting. (0-4 which respectively mean: off, 2x, 4x, 8x, 16x)&lt;br /&gt;
*'''SettingAntiAliasing:''' The anti-aliasing setting. (0-3 which respectively mean: off, 1x, 2x, 3x)&lt;br /&gt;
*'''SettingHeatHaze:''' The heat haze setting. (true/false)&lt;br /&gt;
*'''SettingGrassEffect:''' The grass effect setting. (true/false)&lt;br /&gt;
*'''Setting32BitColor:''' The color depth of the screen. (false is 16bit, true is 32bit)&lt;br /&gt;
*'''SettingHUDMatchAspectRatio:''' The hud match aspect ratio setting. (true/false)&lt;br /&gt;
*'''SettingAspectRatio:''' The aspect ratio setting. (&amp;quot;auto&amp;quot;, &amp;quot;4:3&amp;quot;, &amp;quot;16:10&amp;quot;, &amp;quot;16:9&amp;quot;)&lt;br /&gt;
*'''SettingFOV:''' The FOV setting.&lt;br /&gt;
*'''SettingHighDetailVehicles:''' High detail vehicles setting. (true/false)&lt;br /&gt;
{{Added feature/item|1.5.9|1.5.8|20508|&lt;br /&gt;
*'''SettingHighDetailPeds:''' High detail peds setting. (true/false)&lt;br /&gt;
}}&lt;br /&gt;
{{Added feature/item|1.5.9|1.5.8|21251|&lt;br /&gt;
*'''SettingCoronaReflections:''' Corona rain reflections setting. (true/false)&lt;br /&gt;
}}&lt;br /&gt;
*'''AllowScreenUpload:''' The allows screen uploads setting. (true/false)&lt;br /&gt;
*'''DepthBufferFormat:''' The format of the shader readable depth buffer, or 'unknown' if not available.&lt;br /&gt;
{{Added feature/item|1.5.9|1.5.8|20901|&lt;br /&gt;
*'''TotalPhysicalMemory:''' The amount of total physical memory in MB.&lt;br /&gt;
}}&lt;br /&gt;
*'''UsingDepthBuffer:''' ''true'' if the depth buffer is used, ''false'' otherwise.&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;getinfo&amp;quot;,&lt;br /&gt;
	function ()&lt;br /&gt;
		local info = dxGetStatus ()&lt;br /&gt;
		for k, v in pairs (info) do&lt;br /&gt;
			outputChatBox (k .. &amp;quot; : &amp;quot; .. tostring (v))&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Changelog==&lt;br /&gt;
{{ChangelogHeader}}&lt;br /&gt;
{{ChangelogItem|1.3.0-9.04715|Added DepthBufferFormat argument}}&lt;br /&gt;
{{ChangelogItem|1.3.0-9.04811|Added VideoCardMaxAnisotropy, SettingAnisotropicFiltering, SettingAntiAliasing,&amp;lt;br/&amp;gt; SettingHeatHaze, SettingGrassEffect and Setting32BitColor arguments}}&lt;br /&gt;
{{ChangelogItem|1.3.4-9.05731|Added SettingHUDMatchAspectRatio and SettingAspectRatio}}&lt;br /&gt;
{{ChangelogItem|1.4.1-9.07181|Added SettingFOV}}&lt;br /&gt;
{{ChangelogItem|1.4.1-9.07310|Added VideoCardNumRenderTargets}}&lt;br /&gt;
{{ChangelogItem|1.5.2-9.07816|Added UsingDepthBuffer}}&lt;br /&gt;
{{ChangelogItem|1.5.3-9.11199|Added SettingHighDetailVehicles}}&lt;br /&gt;
{{ChangelogItem|1.5.5-9.11814|Added SettingFullScreenStyle&amp;lt;br/&amp;gt;Fixed SettingWindowed}}&lt;br /&gt;
{{ChangelogItem|1.5.8-9.20508|Added SettingHighDetailPeds}}&lt;br /&gt;
{{ChangelogItem|1.5.8-9.20901|Added TotalPhysicalMemory}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Drawing_functions}}&lt;br /&gt;
&lt;br /&gt;
[[hu:dxGetStatus]]&lt;/div&gt;</summary>
		<author><name>Lopez</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetPedsLODDistance&amp;diff=75555</id>
		<title>SetPedsLODDistance</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetPedsLODDistance&amp;diff=75555"/>
		<updated>2022-10-07T21:23:13Z</updated>

		<summary type="html">&lt;p&gt;Lopez: change arg desc&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{New feature/item|3.0156|1.5.5|13771|This function sets the peds LOD distance.}}&lt;br /&gt;
[[File:Peds Lod Distance = 60.png|200px|thumb|right|60 units]]&lt;br /&gt;
[[File:Peds Lod Distance = 100.png|200px|thumb|right|100 units]]&lt;br /&gt;
[[File:Peds Lod Distance = 500.png|200px|thumb|right|500 units]]&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setPedsLODDistance ( float distance )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required arguments=== &lt;br /&gt;
*'''distance:''' the new peds LOD distance. This value is clamped to '''0''' – '''500'''. (Default for ''high_detail_peds'' on is '''500''', when off, it is '''60''').&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
This function returns ''true'' if the argument is valid. Returns ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example sets the peds LOD distance to 120.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;setPedsLODDistance( 120 )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[engineGetModelLODDistance]]&lt;br /&gt;
* [[engineSetModelLODDistance]]&lt;br /&gt;
{{Client world functions}}&lt;/div&gt;</summary>
		<author><name>Lopez</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetVehiclesLODDistance&amp;diff=75554</id>
		<title>SetVehiclesLODDistance</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetVehiclesLODDistance&amp;diff=75554"/>
		<updated>2022-10-07T21:21:31Z</updated>

		<summary type="html">&lt;p&gt;Lopez: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}__NOTOC__&lt;br /&gt;
{{New feature/item|3.0154|1.5.3|11199|&lt;br /&gt;
Sets the distance of vehicles LOD.&lt;br /&gt;
}}&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 setVehiclesLODDistance(float vehiclesDistance [, float trainsAndPlanesDistance = vehiclesDistance * 2.14])&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''vehiclesDistance:''' general distance used for most vehicles, this value is clamped to 0 – 500&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}} &lt;br /&gt;
*'''trainsAndPlanesDistance:''' distance used for trains and planes, this value is clamped to 0 – 500&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
This function returns ''true'' if arguments are valid. Returns ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler(&amp;quot;onClientResourceStart&amp;quot;,resourceRoot,function()&lt;br /&gt;
	setVehiclesLODDistance(10)&lt;br /&gt;
end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
* [[engineGetModelLODDistance]]&lt;br /&gt;
* [[engineSetModelLODDistance]]&lt;br /&gt;
{{Client world functions}}&lt;/div&gt;</summary>
		<author><name>Lopez</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetCoronaReflectionEnabled&amp;diff=75553</id>
		<title>SetCoronaReflectionEnabled</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetCoronaReflectionEnabled&amp;diff=75553"/>
		<updated>2022-10-07T21:05:44Z</updated>

		<summary type="html">&lt;p&gt;Lopez: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{Added feature/item|1.5.9|1.5.8|21251|This function sets visibility of corona reflection.}}&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 setCoronaReflectionEnabled ( marker theMarker, bool enabled )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[Marker]]:setCoronaReflectionEnabled||isCoronaReflectionEnabled}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theMarker:''' the corona marker that you wish set visibility of corona reflection&lt;br /&gt;
*'''enabled:''' whenever corona reflection should be visible&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if [[setMarkerType|marker type]] is ''corona'', ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Issues== &lt;br /&gt;
{{Issues|&lt;br /&gt;
{{Issue|2755|Corona reflections do not render on custom placed objects}}&lt;br /&gt;
{{Issue|2750|Corona reflections do not render on all roads}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{client marker functions}}&lt;/div&gt;</summary>
		<author><name>Lopez</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetCoronaReflectionsEnabled&amp;diff=75552</id>
		<title>SetCoronaReflectionsEnabled</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetCoronaReflectionsEnabled&amp;diff=75552"/>
		<updated>2022-10-07T21:04:13Z</updated>

		<summary type="html">&lt;p&gt;Lopez: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{Added feature/item|1.5.9|1.5.8|21251|This function sets visibility of corona reflections.}}&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 setCoronaReflectionsEnabled ( int enabled )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''enabled:'''&lt;br /&gt;
** '''0''': disabled&lt;br /&gt;
** '''1''': enabled&lt;br /&gt;
** '''2''': force enabled, even if there is no rain&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if passed arguments are correct, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Force enable corona reflections even if there is no rain&lt;br /&gt;
setCoronaReflectionsEnabled(2)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Issues== &lt;br /&gt;
{{Issues|&lt;br /&gt;
{{Issue|2755|Corona reflections do not render on custom placed objects}}&lt;br /&gt;
{{Issue|2750|Corona reflections do not render on all roads}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{client world functions}}&lt;/div&gt;</summary>
		<author><name>Lopez</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Translating&amp;diff=75527</id>
		<title>Translating</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Translating&amp;diff=75527"/>
		<updated>2022-09-27T14:13:12Z</updated>

		<summary type="html">&lt;p&gt;Lopez: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{ Outdated | &amp;quot;See https://multitheftauto.crowdin.com/multitheftauto&amp;quot; }}&lt;br /&gt;
&lt;br /&gt;
It's proposed that we have a way of translating MTA into different languages, and allowing our community to contribute their translations.&lt;br /&gt;
&lt;br /&gt;
==Why?==&lt;br /&gt;
We've seen a couple of people try to fork MTA to make arabic and polish translations. We want to discourage forking for such trivial reasons if we can. Also, we'd encourage more players to play MTA if they can understand it.&lt;br /&gt;
&lt;br /&gt;
==How==&lt;br /&gt;
The library ''gettext'' seems to be the standard way of doing this, at least in the Linux world.&lt;br /&gt;
&lt;br /&gt;
Writing our own seems to be a bad idea - we don't know enough about languages to do this.&lt;br /&gt;
&lt;br /&gt;
We should be able to use utf8 to encode the strings, meaning very little of our code should need to change. Most of our current support for unicode is done with utf8 so this seems easy. It remains to be seen how much needs to be changed to support this.&lt;br /&gt;
&lt;br /&gt;
==The code==&lt;br /&gt;
Gettext works by wrapping strings in calls to the ''gettext'' function.&lt;br /&gt;
So:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;[c++]&lt;br /&gt;
Print ( &amp;quot;Press Q to shut down the server!\n&amp;quot; );&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Becomes:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;[c++]&lt;br /&gt;
Print ( gettext(&amp;quot;Press Q to shut down the server!\n&amp;quot;) );&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Though, we probably don't want to include new line characters, so it becomes:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;[c++]&lt;br /&gt;
Print ( &amp;quot;%s\n&amp;quot;, gettext(&amp;quot;Press Q to shut down the server!&amp;quot;));&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Plus, it can be convenient to have a shorthand, and it seems that defining _ as gettext is conventional, so you end up with:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;[c++]&lt;br /&gt;
Print ( &amp;quot;%s\n&amp;quot;, _(&amp;quot;Press Q to shut down the server!&amp;quot;));&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Maybe we should make a short hand version of Print that always does a new line?&lt;br /&gt;
&lt;br /&gt;
==Generating the translation template==&lt;br /&gt;
From the code you can generate the template that lists the strings that need to be generated. gettext comes with a tool for this, and I've wrapped it up in a script that makes it more convenient. It's currently utils/build_gettext_catalog.py (though not yet committed).&lt;br /&gt;
&lt;br /&gt;
This scans all the cpp and h files in the MTA10 and MTA10_SERVER directories and passes them into the xgettext executable which generates a ''pot'' file, which looks something like the following:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
# SOME DESCRIPTIVE TITLE.&lt;br /&gt;
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER&lt;br /&gt;
# This file is distributed under the same license as the PACKAGE package.&lt;br /&gt;
# FIRST AUTHOR &amp;lt;EMAIL@ADDRESS&amp;gt;, YEAR.&lt;br /&gt;
#&lt;br /&gt;
#, fuzzy&lt;br /&gt;
msgid &amp;quot;&amp;quot;&lt;br /&gt;
msgstr &amp;quot;&amp;quot;&lt;br /&gt;
&amp;quot;Project-Id-Version: PACKAGE VERSION\n&amp;quot;&lt;br /&gt;
&amp;quot;Report-Msgid-Bugs-To: \n&amp;quot;&lt;br /&gt;
&amp;quot;POT-Creation-Date: 2010-12-20 19:27+0000\n&amp;quot;&lt;br /&gt;
&amp;quot;PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n&amp;quot;&lt;br /&gt;
&amp;quot;Last-Translator: FULL NAME &amp;lt;EMAIL@ADDRESS&amp;gt;\n&amp;quot;&lt;br /&gt;
&amp;quot;Language-Team: LANGUAGE &amp;lt;LL@li.org&amp;gt;\n&amp;quot;&lt;br /&gt;
&amp;quot;MIME-Version: 1.0\n&amp;quot;&lt;br /&gt;
&amp;quot;Content-Type: text/plain; charset=CHARSET\n&amp;quot;&lt;br /&gt;
&amp;quot;Content-Transfer-Encoding: 8bit\n&amp;quot;&lt;br /&gt;
&lt;br /&gt;
#. Couldn't load our mod&lt;br /&gt;
msgid &amp;quot;Press Q to shut down the server!&amp;quot;&lt;br /&gt;
msgstr &amp;quot;&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Notice that comments from the code are extracted and placed above the strings, so we can provide guidance for what each string's purpose is.&lt;br /&gt;
&lt;br /&gt;
==Editing==&lt;br /&gt;
The template itself isn't edited, I think. You can create a copy of it and generate a new translation by filling in the msgstr strings. There are editors, such as the cross platform poedit that deals with these files and handles various useful things such as validating them and merging them when new strings are added to the template. This seems pretty easy to use. It notices things such as missing formatting specifiers (%s etc) in strings.&lt;br /&gt;
&lt;br /&gt;
Once you've edited the file, you can save it as a .po file. This is basically identical to the .pot file, just has translations in it.&lt;br /&gt;
&lt;br /&gt;
These files are turned into .mo files which are compiled versions. Poedit does this for you, but I've made a script that does it in the utils directory.&lt;br /&gt;
&lt;br /&gt;
==Where?==&lt;br /&gt;
I've placed the translations in a root ''Translations'' directory (alongside MTA10 and MTA10_SERVER). The translations are shared between client and server, I'm not sure if this is a good or bad thing, but it could be changed. It might save work and disk space somewhat, though we probably want the translations to be placed in the server and client directories anyway.&lt;br /&gt;
&lt;br /&gt;
==Making it work==&lt;br /&gt;
To make it work, you link against libintl.lib (in vendor/gettext/libs) and have the dll libintl3.dll along side the executables.&lt;br /&gt;
&lt;br /&gt;
Currently I've only tested this in the CServerImpl.cpp file, adding this at the top:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;[c++]&lt;br /&gt;
#include &amp;lt;libintl.h&amp;gt;&lt;br /&gt;
#define _ gettext&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Then this in the constructor:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;[c++]&lt;br /&gt;
char* s = setlocale(LC_ALL, &amp;quot;&amp;quot;);&lt;br /&gt;
bindtextdomain(&amp;quot;messages&amp;quot;, &amp;quot;translations/&amp;quot;); // specifies the directory to look in&lt;br /&gt;
textdomain( &amp;quot;messages&amp;quot;);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Files==&lt;br /&gt;
We would ship the .mo files. Each language would have a directory in the Translations directory, e.g. en_US, fr_FR etc, inside which is a directory LC_MESSAGES, inside which is a messages.mo file. We can't really change anything except where this directory is and what the .mo file is called, the locale and the LC_MESSAGES directories have to be there. It seems.&lt;br /&gt;
&lt;br /&gt;
==What?==&lt;br /&gt;
We ideally allow every part of MTA client and server to be translated. The server is less important, but we ought to do it if we can.&lt;br /&gt;
&lt;br /&gt;
==User Interface==&lt;br /&gt;
We'd need to provide a user interface for changing language. We can use the system settings (somehow - gettext may do this for us?) to work out the right language. But often, users may be more comfortable with another language (or their translation might be awful).&lt;br /&gt;
&lt;br /&gt;
This would make most sense to be in the 'Interface' tab of the client settings. Server-side, we'd provide a config setting.&lt;br /&gt;
&lt;br /&gt;
==The hard work==&lt;br /&gt;
Once the system is set up, some people need to go through and mark up each string that we want to be translatable. This could be anyone really as coding isn't really required (except with some odd strings perhaps).&lt;br /&gt;
&lt;br /&gt;
==The really hard work==&lt;br /&gt;
Getting people to translate it is obviously hard work. But I imagine we have a lot of keen community members who will do this, if we release the relevant files and isnstruct them on how to do it. As the tools we're using are fairly standard, we may find that people already know how to use them if they've translated other projects.&lt;br /&gt;
&lt;br /&gt;
==What else?==&lt;br /&gt;
Perhaps we want to add a 'server language' setting that gets shown in the server browser. I'm not sure if we want to encourage such ghettoization, but it might be of benefit to our users.&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
Do we need strlen to not work on utf8 strings in 1.1? Could we just make it the same as utf8len (or whatever it's called)?&lt;br /&gt;
&lt;br /&gt;
[[Category:Development]]&lt;/div&gt;</summary>
		<author><name>Lopez</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Translating&amp;diff=75526</id>
		<title>Translating</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Translating&amp;diff=75526"/>
		<updated>2022-09-27T14:12:12Z</updated>

		<summary type="html">&lt;p&gt;Lopez: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{ Outdated | &amp;quot;See https://multitheftauto.crowdin.com/multitheftauto&amp;quot; }}&lt;br /&gt;
&lt;br /&gt;
It's proposed that we have a way of translating MTA into different languages, and allowing our community to contribute their translations.&lt;br /&gt;
&lt;br /&gt;
==Why?==&lt;br /&gt;
We've seen a couple of people try to fork MTA to make arabic and polish translations. We want to discourage forking for such trivial reasons if we can. Also, we'd encourage more players to play MTA if they can understand it.&lt;br /&gt;
&lt;br /&gt;
==How==&lt;br /&gt;
The library ''gettext'' seems to be the standard way of doing this, at least in the Linux world.&lt;br /&gt;
&lt;br /&gt;
Writing our own seems to be a bad idea - we don't know enough about languages to do this.&lt;br /&gt;
&lt;br /&gt;
We should be able to use utf8 to encode the strings, meaning very little of our code should need to change. Most of our current support for unicode is done with utf8 so this seems easy. It remains to be seen how much needs to be changed to support this.&lt;br /&gt;
&lt;br /&gt;
==The code==&lt;br /&gt;
Gettext works by wrapping strings in calls to the ''gettext'' function.&lt;br /&gt;
So:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;[c++]&lt;br /&gt;
Print ( &amp;quot;Press Q to shut down the server!\n&amp;quot; );&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Becomes:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;[c++]&lt;br /&gt;
Print ( gettext(&amp;quot;Press Q to shut down the server!\n&amp;quot;) );&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Though, we probably don't want to include new line characters, so it becomes:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;[c++]&lt;br /&gt;
Print ( &amp;quot;%s\n&amp;quot;, gettext(&amp;quot;Press Q to shut down the server!&amp;quot;));&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Plus, it can be convenient to have a shorthand, and it seems that defining _ as gettext is conventional, so you end up with:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;[c++]&lt;br /&gt;
Print ( &amp;quot;%s\n&amp;quot;, _(&amp;quot;Press Q to shut down the server!&amp;quot;));&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Maybe we should make a short hand version of Print that always does a new line?&lt;br /&gt;
&lt;br /&gt;
==Generating the translation template==&lt;br /&gt;
From the code you can generate the template that lists the strings that need to be generated. gettext comes with a tool for this, and I've wrapped it up in a script that makes it more convenient. It's currently utils/build_gettext_catalog.py (though not yet committed).&lt;br /&gt;
&lt;br /&gt;
This scans all the cpp and h files in the MTA10 and MTA10_SERVER directories and passes them into the xgettext executable which generates a ''pot'' file, which looks something like the following:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
# SOME DESCRIPTIVE TITLE.&lt;br /&gt;
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER&lt;br /&gt;
# This file is distributed under the same license as the PACKAGE package.&lt;br /&gt;
# FIRST AUTHOR &amp;lt;EMAIL@ADDRESS&amp;gt;, YEAR.&lt;br /&gt;
#&lt;br /&gt;
#, fuzzy&lt;br /&gt;
msgid &amp;quot;&amp;quot;&lt;br /&gt;
msgstr &amp;quot;&amp;quot;&lt;br /&gt;
&amp;quot;Project-Id-Version: PACKAGE VERSION\n&amp;quot;&lt;br /&gt;
&amp;quot;Report-Msgid-Bugs-To: \n&amp;quot;&lt;br /&gt;
&amp;quot;POT-Creation-Date: 2010-12-20 19:27+0000\n&amp;quot;&lt;br /&gt;
&amp;quot;PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n&amp;quot;&lt;br /&gt;
&amp;quot;Last-Translator: FULL NAME &amp;lt;EMAIL@ADDRESS&amp;gt;\n&amp;quot;&lt;br /&gt;
&amp;quot;Language-Team: LANGUAGE &amp;lt;LL@li.org&amp;gt;\n&amp;quot;&lt;br /&gt;
&amp;quot;MIME-Version: 1.0\n&amp;quot;&lt;br /&gt;
&amp;quot;Content-Type: text/plain; charset=CHARSET\n&amp;quot;&lt;br /&gt;
&amp;quot;Content-Transfer-Encoding: 8bit\n&amp;quot;&lt;br /&gt;
&lt;br /&gt;
#. Couldn't load our mod&lt;br /&gt;
msgid &amp;quot;Press Q to shut down the server!&amp;quot;&lt;br /&gt;
msgstr &amp;quot;&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Notice that comments from the code are extracted and placed above the strings, so we can provide guidance for what each string's purpose is.&lt;br /&gt;
&lt;br /&gt;
==Editing==&lt;br /&gt;
The template itself isn't edited, I think. You can create a copy of it and generate a new translation by filling in the msgstr strings. There are editors, such as the cross platform poedit that deals with these files and handles various useful things such as validating them and merging them when new strings are added to the template. This seems pretty easy to use. It notices things such as missing formatting specifiers (%s etc) in strings.&lt;br /&gt;
&lt;br /&gt;
Once you've edited the file, you can save it as a .po file. This is basically identical to the .pot file, just has translations in it.&lt;br /&gt;
&lt;br /&gt;
These files are turned into .mo files which are compiled versions. Poedit does this for you, but I've made a script that does it in the utils directory.&lt;br /&gt;
&lt;br /&gt;
==Where?==&lt;br /&gt;
I've placed the translations in a root ''Translations'' directory (alongside MTA10 and MTA10_SERVER). The translations are shared between client and server, I'm not sure if this is a good or bad thing, but it could be changed. It might save work and disk space somewhat, though we probably want the translations to be placed in the server and client directories anyway.&lt;br /&gt;
&lt;br /&gt;
==Making it work==&lt;br /&gt;
To make it work, you link against libintl.lib (in vendor/gettext/libs) and have the dll libintl3.dll along side the executables.&lt;br /&gt;
&lt;br /&gt;
Currently I've only tested this in the CServerImpl.cpp file, adding this at the top:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;[c++]&lt;br /&gt;
#include &amp;lt;libintl.h&amp;gt;&lt;br /&gt;
#define _ gettext&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Then this in the constructor:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;[c++]&lt;br /&gt;
char* s = setlocale(LC_ALL, &amp;quot;&amp;quot;);&lt;br /&gt;
bindtextdomain(&amp;quot;messages&amp;quot;, &amp;quot;translations/&amp;quot;); // specifies the directory to look in&lt;br /&gt;
textdomain( &amp;quot;messages&amp;quot;);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Files==&lt;br /&gt;
We would ship the .mo files. Each language would have a directory in the Translations directory, e.g. en_US, fr_FR etc, inside which is a directory LC_MESSAGES, inside which is a messages.mo file. We can't really change anything except where this directory is and what the .mo file is called, the locale and the LC_MESSAGES directories have to be there. It seems.&lt;br /&gt;
&lt;br /&gt;
==What?==&lt;br /&gt;
We ideally allow every part of MTA client and server to be translated. The server is less important, but we ought to do it if we can.&lt;br /&gt;
&lt;br /&gt;
==User Interface==&lt;br /&gt;
We'd need to provide a user interface for changing language. We can use the system settings (somehow - gettext may do this for us?) to work out the right language. But often, users may be more comfortable with another language (or their translation might be awful).&lt;br /&gt;
&lt;br /&gt;
This would make most sense to be in the 'Interface' tab of the client settings. Server-side, we'd provide a config setting.&lt;br /&gt;
&lt;br /&gt;
==The hard work==&lt;br /&gt;
Once the system is set up, some people need to go through and mark up each string that we want to be translatable. This could be anyone really as coding isn't really required (except with some odd strings perhaps).&lt;br /&gt;
&lt;br /&gt;
==The really hard work==&lt;br /&gt;
Getting people to translate it is obviously hard work. But I imagine we have a lot of keen community members who will do this, if we release the relevant files and isnstruct them on how to do it. As the tools we're using are fairly standard, we may find that people already know how to use them if they've translated other projects.&lt;br /&gt;
&lt;br /&gt;
==What else?==&lt;br /&gt;
Perhaps we want to add a 'server language' setting that gets shown in the server browser. I'm not sure if we want to encourage such ghettoization, but it might be of benefit to our users.&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
Do we need strlen to not work on utf8 strings in 1.1? Could we just make it the same as utf8len (or whatever it's called)?&lt;/div&gt;</summary>
		<author><name>Lopez</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Translating&amp;diff=75525</id>
		<title>Translating</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Translating&amp;diff=75525"/>
		<updated>2022-09-27T14:11:19Z</updated>

		<summary type="html">&lt;p&gt;Lopez: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{ Outdated }}&lt;br /&gt;
&lt;br /&gt;
It's proposed that we have a way of translating MTA into different languages, and allowing our community to contribute their translations.&lt;br /&gt;
&lt;br /&gt;
==Why?==&lt;br /&gt;
We've seen a couple of people try to fork MTA to make arabic and polish translations. We want to discourage forking for such trivial reasons if we can. Also, we'd encourage more players to play MTA if they can understand it.&lt;br /&gt;
&lt;br /&gt;
==How==&lt;br /&gt;
The library ''gettext'' seems to be the standard way of doing this, at least in the Linux world.&lt;br /&gt;
&lt;br /&gt;
Writing our own seems to be a bad idea - we don't know enough about languages to do this.&lt;br /&gt;
&lt;br /&gt;
We should be able to use utf8 to encode the strings, meaning very little of our code should need to change. Most of our current support for unicode is done with utf8 so this seems easy. It remains to be seen how much needs to be changed to support this.&lt;br /&gt;
&lt;br /&gt;
==The code==&lt;br /&gt;
Gettext works by wrapping strings in calls to the ''gettext'' function.&lt;br /&gt;
So:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;[c++]&lt;br /&gt;
Print ( &amp;quot;Press Q to shut down the server!\n&amp;quot; );&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Becomes:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;[c++]&lt;br /&gt;
Print ( gettext(&amp;quot;Press Q to shut down the server!\n&amp;quot;) );&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Though, we probably don't want to include new line characters, so it becomes:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;[c++]&lt;br /&gt;
Print ( &amp;quot;%s\n&amp;quot;, gettext(&amp;quot;Press Q to shut down the server!&amp;quot;));&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Plus, it can be convenient to have a shorthand, and it seems that defining _ as gettext is conventional, so you end up with:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;[c++]&lt;br /&gt;
Print ( &amp;quot;%s\n&amp;quot;, _(&amp;quot;Press Q to shut down the server!&amp;quot;));&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Maybe we should make a short hand version of Print that always does a new line?&lt;br /&gt;
&lt;br /&gt;
==Generating the translation template==&lt;br /&gt;
From the code you can generate the template that lists the strings that need to be generated. gettext comes with a tool for this, and I've wrapped it up in a script that makes it more convenient. It's currently utils/build_gettext_catalog.py (though not yet committed).&lt;br /&gt;
&lt;br /&gt;
This scans all the cpp and h files in the MTA10 and MTA10_SERVER directories and passes them into the xgettext executable which generates a ''pot'' file, which looks something like the following:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
# SOME DESCRIPTIVE TITLE.&lt;br /&gt;
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER&lt;br /&gt;
# This file is distributed under the same license as the PACKAGE package.&lt;br /&gt;
# FIRST AUTHOR &amp;lt;EMAIL@ADDRESS&amp;gt;, YEAR.&lt;br /&gt;
#&lt;br /&gt;
#, fuzzy&lt;br /&gt;
msgid &amp;quot;&amp;quot;&lt;br /&gt;
msgstr &amp;quot;&amp;quot;&lt;br /&gt;
&amp;quot;Project-Id-Version: PACKAGE VERSION\n&amp;quot;&lt;br /&gt;
&amp;quot;Report-Msgid-Bugs-To: \n&amp;quot;&lt;br /&gt;
&amp;quot;POT-Creation-Date: 2010-12-20 19:27+0000\n&amp;quot;&lt;br /&gt;
&amp;quot;PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n&amp;quot;&lt;br /&gt;
&amp;quot;Last-Translator: FULL NAME &amp;lt;EMAIL@ADDRESS&amp;gt;\n&amp;quot;&lt;br /&gt;
&amp;quot;Language-Team: LANGUAGE &amp;lt;LL@li.org&amp;gt;\n&amp;quot;&lt;br /&gt;
&amp;quot;MIME-Version: 1.0\n&amp;quot;&lt;br /&gt;
&amp;quot;Content-Type: text/plain; charset=CHARSET\n&amp;quot;&lt;br /&gt;
&amp;quot;Content-Transfer-Encoding: 8bit\n&amp;quot;&lt;br /&gt;
&lt;br /&gt;
#. Couldn't load our mod&lt;br /&gt;
msgid &amp;quot;Press Q to shut down the server!&amp;quot;&lt;br /&gt;
msgstr &amp;quot;&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Notice that comments from the code are extracted and placed above the strings, so we can provide guidance for what each string's purpose is.&lt;br /&gt;
&lt;br /&gt;
==Editing==&lt;br /&gt;
The template itself isn't edited, I think. You can create a copy of it and generate a new translation by filling in the msgstr strings. There are editors, such as the cross platform poedit that deals with these files and handles various useful things such as validating them and merging them when new strings are added to the template. This seems pretty easy to use. It notices things such as missing formatting specifiers (%s etc) in strings.&lt;br /&gt;
&lt;br /&gt;
Once you've edited the file, you can save it as a .po file. This is basically identical to the .pot file, just has translations in it.&lt;br /&gt;
&lt;br /&gt;
These files are turned into .mo files which are compiled versions. Poedit does this for you, but I've made a script that does it in the utils directory.&lt;br /&gt;
&lt;br /&gt;
==Where?==&lt;br /&gt;
I've placed the translations in a root ''Translations'' directory (alongside MTA10 and MTA10_SERVER). The translations are shared between client and server, I'm not sure if this is a good or bad thing, but it could be changed. It might save work and disk space somewhat, though we probably want the translations to be placed in the server and client directories anyway.&lt;br /&gt;
&lt;br /&gt;
==Making it work==&lt;br /&gt;
To make it work, you link against libintl.lib (in vendor/gettext/libs) and have the dll libintl3.dll along side the executables.&lt;br /&gt;
&lt;br /&gt;
Currently I've only tested this in the CServerImpl.cpp file, adding this at the top:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;[c++]&lt;br /&gt;
#include &amp;lt;libintl.h&amp;gt;&lt;br /&gt;
#define _ gettext&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Then this in the constructor:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;[c++]&lt;br /&gt;
char* s = setlocale(LC_ALL, &amp;quot;&amp;quot;);&lt;br /&gt;
bindtextdomain(&amp;quot;messages&amp;quot;, &amp;quot;translations/&amp;quot;); // specifies the directory to look in&lt;br /&gt;
textdomain( &amp;quot;messages&amp;quot;);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Files==&lt;br /&gt;
We would ship the .mo files. Each language would have a directory in the Translations directory, e.g. en_US, fr_FR etc, inside which is a directory LC_MESSAGES, inside which is a messages.mo file. We can't really change anything except where this directory is and what the .mo file is called, the locale and the LC_MESSAGES directories have to be there. It seems.&lt;br /&gt;
&lt;br /&gt;
==What?==&lt;br /&gt;
We ideally allow every part of MTA client and server to be translated. The server is less important, but we ought to do it if we can.&lt;br /&gt;
&lt;br /&gt;
==User Interface==&lt;br /&gt;
We'd need to provide a user interface for changing language. We can use the system settings (somehow - gettext may do this for us?) to work out the right language. But often, users may be more comfortable with another language (or their translation might be awful).&lt;br /&gt;
&lt;br /&gt;
This would make most sense to be in the 'Interface' tab of the client settings. Server-side, we'd provide a config setting.&lt;br /&gt;
&lt;br /&gt;
==The hard work==&lt;br /&gt;
Once the system is set up, some people need to go through and mark up each string that we want to be translatable. This could be anyone really as coding isn't really required (except with some odd strings perhaps).&lt;br /&gt;
&lt;br /&gt;
==The really hard work==&lt;br /&gt;
Getting people to translate it is obviously hard work. But I imagine we have a lot of keen community members who will do this, if we release the relevant files and isnstruct them on how to do it. As the tools we're using are fairly standard, we may find that people already know how to use them if they've translated other projects.&lt;br /&gt;
&lt;br /&gt;
==What else?==&lt;br /&gt;
Perhaps we want to add a 'server language' setting that gets shown in the server browser. I'm not sure if we want to encourage such ghettoization, but it might be of benefit to our users.&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
Do we need strlen to not work on utf8 strings in 1.1? Could we just make it the same as utf8len (or whatever it's called)?&lt;/div&gt;</summary>
		<author><name>Lopez</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=How_you_can_help&amp;diff=75524</id>
		<title>How you can help</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=How_you_can_help&amp;diff=75524"/>
		<updated>2022-09-27T14:00:49Z</updated>

		<summary type="html">&lt;p&gt;Lopez: /* Coding for MTA:SA */ fix link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
Multi Theft Auto has loads of areas in which you can help us. In turn, we'll be more than happy to help you get started with any ideas you have, help test them and - if they're good enough - release them to the whole community. This page outlines the key areas you could do something in, of course, there are many things we've not thought of, so think outside the box!&lt;br /&gt;
&lt;br /&gt;
==Coding for MTA:SA==&lt;br /&gt;
* Become a patch contributor by sending [https://github.com/multitheftauto/mtasa-blue/pulls pull requests] to MTA, containing requested features or bugfixes. ([https://github.com/multitheftauto/mtasa-blue/blob/master/CONTRIBUTING.md#contributors-guide Coding guidelines])&lt;br /&gt;
* Translate MTA:SA to your native language - https://translate.multitheftauto.com/&lt;br /&gt;
&lt;br /&gt;
==Scripting==&lt;br /&gt;
* Become a contributor to MTA's official resources by sending [https://github.com/multitheftauto/mtasa-resources/pulls pull requests] to our resources repository&lt;br /&gt;
* Create and [https://community.mtasa.com/ publish] a gamemode or useful script&lt;br /&gt;
**[[Scripting Introduction]]&lt;br /&gt;
**[https://www.lua.org/pil/index.html &amp;quot;Programming in Lua&amp;quot; Manual]&lt;br /&gt;
* Make a general purpose resource that provides useful functions to other resources.&lt;br /&gt;
&lt;br /&gt;
==Mapping==&lt;br /&gt;
* Create and [https://community.mtasa.com/ publish] a map for an existing gamemode, with the map editor.&lt;br /&gt;
**[[Resource:Editor|Map Editor Manual]]&lt;br /&gt;
&lt;br /&gt;
==Web development==&lt;br /&gt;
* Create your own system for statistics - using the [[PHP SDK]] as a basis. Join the [https://discord.gg/RygaCSD MTA discord] (or [https://discord.gg/GNN6PRtTnu development discord]) for help.&lt;br /&gt;
&lt;br /&gt;
==Documentation==&lt;br /&gt;
Before you make changes check out: [[Help:Editing Guidelines|Editing Guidelines]] and [[Help:MTA Wiki Specific Templates|Specific Templates]]&lt;br /&gt;
* Finish documentation for [[:Category:Incomplete|Incomplete functions]] - ask in #mta.scripting if you're not sure of something.&lt;br /&gt;
* Add examples to [[:Category:Needs Example|functions &amp;amp; events missing examples]] - please '''test''' them, and again, ask if you need help.&lt;br /&gt;
* Review and verify [[:Category:Needs Checking|pages that need checking]] - make sure highlighted issues are solved before removing pages from the category.&lt;br /&gt;
* Expand the pages that explain [[:Category:Scripting_Concepts|MTA core concepts]].&lt;br /&gt;
* Write [https://forum.mtasa.com/forum/123-tutorials/ tutorials] to help new people.&lt;br /&gt;
* Translate the wiki pages so people from other countries can get started in MTA too.&lt;br /&gt;
* Create documentation for undocumented functions and events [[Undocumented Items]]&lt;br /&gt;
* Keep 'changes in' [current work-in-progress: https://wiki.multitheftauto.com/wiki/Changes_in_1.6] for future releases updated.&lt;br /&gt;
&lt;br /&gt;
==Quality Assurance==&lt;br /&gt;
* [https://github.com/multitheftauto/mtasa-blue/issues Report issues] with the mod, make sure to do a search on the already reported issues first.&lt;br /&gt;
* Test and confirm existing reported issues.&lt;br /&gt;
* Use the newest build of MTA to detect and report new bugs, by going to 'Settings', 'Advanced', 'Update build type' and choosing 'Nightly' or get it regularly [https://nightly.mtasa.com/ from here].&lt;br /&gt;
* Any bugs which are related to a scripting function / event and present in the main release (rather than nightlies), document that bug by adding a [https://wiki.multitheftauto.com/wiki/Help:MTA_Wiki_Specific_Templates warning] to the wiki page to save other scripters a lot of time.&lt;br /&gt;
&lt;br /&gt;
==Specific tasks==&lt;br /&gt;
* Create a fuzzer to check for crashes in our scripting functions.&lt;br /&gt;
&lt;br /&gt;
==Grant==&lt;br /&gt;
You can donate to MTA:SA [https://mtasa.com/donate/manage.php here]&lt;br /&gt;
&lt;br /&gt;
[[ar:كيف_يمكنك_المساعدة]]&lt;br /&gt;
[[en:How you can help]]&lt;br /&gt;
[[ru:How you can help]]&lt;br /&gt;
[[pl:Jak możesz pomóc]]&lt;br /&gt;
[[uk:How you can help]]&lt;br /&gt;
[[es:Cómo puedes ayudar]]&lt;br /&gt;
[[hu:How you can help]]&lt;br /&gt;
[[tr:Nasıl yardımcı olabilirsiniz]]&lt;br /&gt;
[[pt-br:Como você pode ajudar]]&lt;/div&gt;</summary>
		<author><name>Lopez</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetCoronaReflectionsEnabled&amp;diff=75519</id>
		<title>SetCoronaReflectionsEnabled</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetCoronaReflectionsEnabled&amp;diff=75519"/>
		<updated>2022-09-25T11:19:56Z</updated>

		<summary type="html">&lt;p&gt;Lopez: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{Added feature/item|1.5.9|1.5.8|21251|This function sets visibility of corona reflections.}}&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 setCoronaReflectionsEnabled ( int enabled )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''enabled:'''&lt;br /&gt;
** '''0''': disabled&lt;br /&gt;
** '''1''': enabled&lt;br /&gt;
** '''2''': force enabled, even if there is no rain&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if passed arguments are correct, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Force enable corona reflections even if there is no rain&lt;br /&gt;
setCoronaReflectionsEnabled(2)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{client world functions}}&lt;/div&gt;</summary>
		<author><name>Lopez</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=IsCoronaReflectionEnabled&amp;diff=75518</id>
		<title>IsCoronaReflectionEnabled</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=IsCoronaReflectionEnabled&amp;diff=75518"/>
		<updated>2022-09-25T11:19:35Z</updated>

		<summary type="html">&lt;p&gt;Lopez: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{Added feature/item|1.5.9|1.5.8|21251|This function gets visibility of corona reflection.}}&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool isCoronaReflectionEnabled ( marker theMarker )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[Marker]]:isCoronaReflectionEnabled||setCoronaReflectionEnabled}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theMarker:''' marker&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
* Returns ''false'' is [[setMarkerType|marker type]] is not ''corona''.&lt;br /&gt;
* Returns ''true'' if corona reflection is enabled, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{client marker functions}}&lt;/div&gt;</summary>
		<author><name>Lopez</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetCoronaReflectionsEnabled&amp;diff=75517</id>
		<title>GetCoronaReflectionsEnabled</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetCoronaReflectionsEnabled&amp;diff=75517"/>
		<updated>2022-09-25T11:19:17Z</updated>

		<summary type="html">&lt;p&gt;Lopez: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{Added feature/item|1.5.9|1.5.8|21251|This function gets visibility of corona reflections.}}&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 getCoronaReflectionsEnabled ( )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
One of the following integers will be returned:&lt;br /&gt;
* '''0''': corona reflections are disabled&lt;br /&gt;
* '''1''': corona reflections are enabled&lt;br /&gt;
* '''2''': corona reflections are force enabled, even if there is no rain&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{client world functions}}&lt;/div&gt;</summary>
		<author><name>Lopez</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetCoronaReflectionEnabled&amp;diff=75516</id>
		<title>SetCoronaReflectionEnabled</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetCoronaReflectionEnabled&amp;diff=75516"/>
		<updated>2022-09-25T11:19:03Z</updated>

		<summary type="html">&lt;p&gt;Lopez: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{Added feature/item|1.5.9|1.5.8|21251|This function sets visibility of corona reflection.}}&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 setCoronaReflectionEnabled ( marker theMarker, bool enabled )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[Marker]]:setCoronaReflectionEnabled||isCoronaReflectionEnabled}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theMarker:''' the corona marker that you wish set visibility of corona reflection&lt;br /&gt;
*'''enabled:''' whenever corona reflection should be visible&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if [[setMarkerType|marker type]] is ''corona'', ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{client marker functions}}&lt;/div&gt;</summary>
		<author><name>Lopez</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=IsCoronaReflectionEnabled&amp;diff=75515</id>
		<title>IsCoronaReflectionEnabled</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=IsCoronaReflectionEnabled&amp;diff=75515"/>
		<updated>2022-09-25T11:13:31Z</updated>

		<summary type="html">&lt;p&gt;Lopez: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{Added feature/item|1.5.9|1.5.8|21251|Gets visibility of corona reflection.}}&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool isCoronaReflectionEnabled ( marker theMarker )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[Marker]]:isCoronaReflectionEnabled||setCoronaReflectionEnabled}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theMarker:''' marker&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
* Returns ''false'' is [[setMarkerType|marker type]] is not ''corona''.&lt;br /&gt;
* Returns ''true'' if corona reflection is enabled, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{client marker functions}}&lt;/div&gt;</summary>
		<author><name>Lopez</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetCoronaReflectionEnabled&amp;diff=75514</id>
		<title>SetCoronaReflectionEnabled</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetCoronaReflectionEnabled&amp;diff=75514"/>
		<updated>2022-09-25T11:13:14Z</updated>

		<summary type="html">&lt;p&gt;Lopez: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{Added feature/item|1.5.9|1.5.8|21251|Sets visibility of corona reflection.}}&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 setCoronaReflectionEnabled ( marker theMarker, bool enabled )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[Marker]]:setCoronaReflectionEnabled||isCoronaReflectionEnabled}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theMarker:''' the corona marker that you wish set visibility of corona reflection&lt;br /&gt;
*'''enabled:''' whenever corona reflection should be visible&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if [[setMarkerType|marker type]] is ''corona'', ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{client marker functions}}&lt;/div&gt;</summary>
		<author><name>Lopez</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetCoronaReflectionEnabled&amp;diff=75513</id>
		<title>SetCoronaReflectionEnabled</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetCoronaReflectionEnabled&amp;diff=75513"/>
		<updated>2022-09-25T11:11:48Z</updated>

		<summary type="html">&lt;p&gt;Lopez: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{Added feature/item|1.5.9|1.5.8|21251|Sets visibility of corona reflection.}}&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 setCoronaReflectionEnabled ( marker theMarker, bool enabled )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[Marker]]:setCoronaReflectionEnabled||isCoronaReflectionEnabled}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theMarker:''' the corona marker that you wish set visibility of corona reflection&lt;br /&gt;
*'''enabled:''' whenever corona reflection should be visible&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if marker type is ''corona'', ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{client marker functions}}&lt;/div&gt;</summary>
		<author><name>Lopez</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=IsCoronaReflectionEnabled&amp;diff=75512</id>
		<title>IsCoronaReflectionEnabled</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=IsCoronaReflectionEnabled&amp;diff=75512"/>
		<updated>2022-09-25T11:11:07Z</updated>

		<summary type="html">&lt;p&gt;Lopez: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{Added feature/item|1.5.9|1.5.8|21251|Gets visibility of corona reflection.}}&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool isCoronaReflectionEnabled ( marker theMarker )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[Marker]]:isCoronaReflectionEnabled||setCoronaReflectionEnabled}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theMarker:''' marker&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
* Returns ''false'' is marker type is not ''corona''.&lt;br /&gt;
* Returns ''true'' if corona reflection is enabled, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{client marker functions}}&lt;/div&gt;</summary>
		<author><name>Lopez</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetCoronaReflectionEnabled&amp;diff=75511</id>
		<title>SetCoronaReflectionEnabled</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetCoronaReflectionEnabled&amp;diff=75511"/>
		<updated>2022-09-25T11:09:05Z</updated>

		<summary type="html">&lt;p&gt;Lopez: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{Added feature/item|1.5.9|1.5.8|21251|Sets visibility of corona reflection.}}&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 setCoronaReflectionEnabled ( marker theMarker, bool enabled )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theMarker:''' the corona marker that you wish set visibility of corona reflection&lt;br /&gt;
*'''enabled:''' whenever corona reflection should be visible&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if marker type is ''corona'', ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{client marker functions}}&lt;/div&gt;</summary>
		<author><name>Lopez</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetCoronaReflectionEnabled&amp;diff=75510</id>
		<title>SetCoronaReflectionEnabled</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetCoronaReflectionEnabled&amp;diff=75510"/>
		<updated>2022-09-25T11:08:51Z</updated>

		<summary type="html">&lt;p&gt;Lopez: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{Added feature/item|1.5.9|1.5.8|21251|Sets visibility of corona reflection.}}&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 setCoronaReflectionEnabled ( marker theMarker, bool enabled )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*''theMarker:''' the corona marker that you wish set visibility of corona reflection&lt;br /&gt;
*'''enabled:''' whenever corona reflection should be visible&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if marker type is ''corona'', ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{client marker functions}}&lt;/div&gt;</summary>
		<author><name>Lopez</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=IsCoronaReflectionEnabled&amp;diff=75509</id>
		<title>IsCoronaReflectionEnabled</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=IsCoronaReflectionEnabled&amp;diff=75509"/>
		<updated>2022-09-25T11:07:57Z</updated>

		<summary type="html">&lt;p&gt;Lopez: Created page with &amp;quot;{{Client function}} __NOTOC__ {{Added feature/item|1.5.9|1.5.8|21251|Gets visibility of corona reflection.}}  ==Syntax==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; bool isCoronaReflectionEnabled ( marker theMarker ) &amp;lt;/syntaxhighlight&amp;gt;   ===Required Arguments===  *'''theMarker:''' marker  ===Returns=== * Returns ''false'' is marker type is not ''corona''. * Returns ''true'' if corona reflection is enabled, ''false'' otherwise.  ==See Also== {{client marker functions}}&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{Added feature/item|1.5.9|1.5.8|21251|Gets visibility of corona reflection.}}&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 isCoronaReflectionEnabled ( marker theMarker )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theMarker:''' marker&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
* Returns ''false'' is marker type is not ''corona''.&lt;br /&gt;
* Returns ''true'' if corona reflection is enabled, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{client marker functions}}&lt;/div&gt;</summary>
		<author><name>Lopez</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetCoronaReflectionEnabled&amp;diff=75508</id>
		<title>SetCoronaReflectionEnabled</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetCoronaReflectionEnabled&amp;diff=75508"/>
		<updated>2022-09-25T11:05:58Z</updated>

		<summary type="html">&lt;p&gt;Lopez: Created page with &amp;quot;{{Client function}} __NOTOC__ {{Added feature/item|1.5.9|1.5.8|21251|Sets visibility of corona reflection.}}  ==Syntax==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; bool setCoronaReflectionEnabled ( marker theMarker, bool enabled ) &amp;lt;/syntaxhighlight&amp;gt;   ===Required Arguments===  *'''bEnabled:''' whenever corona reflection should be visible  ===Returns=== Returns ''true'' if marker type is ''corona'', ''false'' otherwise.  ==See Also== {{client marker functions}}&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{Added feature/item|1.5.9|1.5.8|21251|Sets visibility of corona reflection.}}&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 setCoronaReflectionEnabled ( marker theMarker, bool enabled )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''bEnabled:''' whenever corona reflection should be visible&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if marker type is ''corona'', ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{client marker functions}}&lt;/div&gt;</summary>
		<author><name>Lopez</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetCoronaReflectionsEnabled&amp;diff=75507</id>
		<title>GetCoronaReflectionsEnabled</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetCoronaReflectionsEnabled&amp;diff=75507"/>
		<updated>2022-09-25T11:02:08Z</updated>

		<summary type="html">&lt;p&gt;Lopez: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{Added feature/item|1.5.9|1.5.8|21251|Gets visibility of corona reflections.}}&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 getCoronaReflectionsEnabled ( )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
One of the following integers will be returned:&lt;br /&gt;
* '''0''': corona reflections are disabled&lt;br /&gt;
* '''1''': corona reflections are enabled&lt;br /&gt;
* '''2''': corona reflections are force enabled, even if there is no rain&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{client world functions}}&lt;/div&gt;</summary>
		<author><name>Lopez</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetCoronaReflectionsEnabled&amp;diff=75506</id>
		<title>SetCoronaReflectionsEnabled</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetCoronaReflectionsEnabled&amp;diff=75506"/>
		<updated>2022-09-25T11:01:56Z</updated>

		<summary type="html">&lt;p&gt;Lopez: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{Added feature/item|1.5.9|1.5.8|21251|Sets visibility of corona reflections.}}&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 setCoronaReflectionsEnabled ( int enabled )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''enabled:'''&lt;br /&gt;
** '''0''': disabled&lt;br /&gt;
** '''1''': enabled&lt;br /&gt;
** '''2''': force enabled, even if there is no rain&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if passed arguments are correct, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Force enable corona reflections even if there is no rain&lt;br /&gt;
setCoronaReflectionsEnabled(2)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{client world functions}}&lt;/div&gt;</summary>
		<author><name>Lopez</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Client_marker_functions&amp;diff=75505</id>
		<title>Template:Client marker functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Client_marker_functions&amp;diff=75505"/>
		<updated>2022-09-25T10:59:59Z</updated>

		<summary type="html">&lt;p&gt;Lopez: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[createMarker]]&lt;br /&gt;
*[[getMarkerColor]]&lt;br /&gt;
*[[getMarkerCount]]&lt;br /&gt;
*[[getMarkerIcon]]&lt;br /&gt;
*[[getMarkerSize]]&lt;br /&gt;
*[[getMarkerTarget]]&lt;br /&gt;
*[[getMarkerType]]&lt;br /&gt;
*[[isCoronaReflectionEnabled]]&lt;br /&gt;
*[[isElementWithinMarker]]&lt;br /&gt;
*[[setCoronaReflectionEnabled]]&lt;br /&gt;
*[[setMarkerColor]]&lt;br /&gt;
*[[setMarkerIcon]]&lt;br /&gt;
*[[setMarkerSize]]&lt;br /&gt;
*[[setMarkerTarget]]&lt;br /&gt;
*[[setMarkerType]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Functions templates]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Lopez</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Client_world_functions&amp;diff=75504</id>
		<title>Template:Client world functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Client_world_functions&amp;diff=75504"/>
		<updated>2022-09-25T10:58:24Z</updated>

		<summary type="html">&lt;p&gt;Lopez: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* [[areTrafficLightsLocked]]&lt;br /&gt;
* [[createSWATRope]]&lt;br /&gt;
* [[getAircraftMaxHeight]]&lt;br /&gt;
* [[getAircraftMaxVelocity]]&lt;br /&gt;
* [[getBirdsEnabled]]&lt;br /&gt;
* [[getCloudsEnabled]]&lt;br /&gt;
* [[getCoronaReflectionsEnabled]]&lt;br /&gt;
* [[getFarClipDistance]]&lt;br /&gt;
* [[getFogDistance]]&lt;br /&gt;
* [[getGameSpeed]]&lt;br /&gt;
* [[getGarageBoundingBox]]&lt;br /&gt;
* [[getGaragePosition]]&lt;br /&gt;
* [[getGarageSize]]&lt;br /&gt;
* [[getGravity]]&lt;br /&gt;
* [[getGroundPosition]]&lt;br /&gt;
* [[getHeatHaze]]&lt;br /&gt;
* [[getInteriorFurnitureEnabled]]&lt;br /&gt;
* [[getInteriorSoundsEnabled]]&lt;br /&gt;
* [[getJetpackMaxHeight]]&lt;br /&gt;
* [[getMinuteDuration]]&lt;br /&gt;
* [[getMoonSize]]&lt;br /&gt;
* [[getNearClipDistance]]&lt;br /&gt;
* [[getOcclusionsEnabled]]&lt;br /&gt;
* [[getPedsLODDistance]]&lt;br /&gt;
* [[getPlayerBlurLevel]]&lt;br /&gt;
* [[getRainLevel]]&lt;br /&gt;
{{Added feature/item|1.5.9|1.5.8|20675|&lt;br /&gt;
* [[getRoofPosition]]&lt;br /&gt;
}}&lt;br /&gt;
* [[getScreenFromWorldPosition]]&lt;br /&gt;
* [[getSunColor]]&lt;br /&gt;
* [[getSunSize]]&lt;br /&gt;
* [[getTime]]&lt;br /&gt;
* [[getTrafficLightState]]&lt;br /&gt;
* [[getVehiclesLODDistance]]&lt;br /&gt;
* [[getWeather]]&lt;br /&gt;
* [[getWindVelocity]]&lt;br /&gt;
* [[getWorldFromScreenPosition]]&lt;br /&gt;
* [[getZoneName]]&lt;br /&gt;
* [[isAmbientSoundEnabled]]&lt;br /&gt;
* [[isGarageOpen]]&lt;br /&gt;
* [[isLineOfSightClear]]&lt;br /&gt;
* [[isWorldSoundEnabled]]&lt;br /&gt;
* [[isWorldSpecialPropertyEnabled]]&lt;br /&gt;
* [[processLineOfSight]]&lt;br /&gt;
* [[removeWorldModel]]&lt;br /&gt;
* [[resetAmbientSounds]]&lt;br /&gt;
* [[resetBlurLevel]]&lt;br /&gt;
* [[resetColorFilter]]&lt;br /&gt;
* [[resetFarClipDistance]]&lt;br /&gt;
* [[resetFogDistance]]&lt;br /&gt;
* [[resetHeatHaze]]&lt;br /&gt;
* [[resetMoonSize]]&lt;br /&gt;
* [[resetNearClipDistance]]&lt;br /&gt;
* [[resetPedsLODDistance]]&lt;br /&gt;
* [[resetRainLevel]]&lt;br /&gt;
* [[resetSkyGradient]]&lt;br /&gt;
* [[resetSunColor]]&lt;br /&gt;
* [[resetSunSize]]&lt;br /&gt;
* [[resetVehiclesLODDistance]]&lt;br /&gt;
* [[resetWindVelocity]]&lt;br /&gt;
* [[resetWorldSounds]]&lt;br /&gt;
* [[restoreAllWorldModels]]&lt;br /&gt;
* [[restoreWorldModel]]&lt;br /&gt;
* [[setAircraftMaxHeight]]&lt;br /&gt;
* [[setAircraftMaxVelocity]]&lt;br /&gt;
* [[setAmbientSoundEnabled]]&lt;br /&gt;
* [[setBirdsEnabled]]&lt;br /&gt;
* [[setCloudsEnabled]]&lt;br /&gt;
* [[setColorFilter]]&lt;br /&gt;
* [[setCoronaReflectionsEnabled]]&lt;br /&gt;
* [[setFarClipDistance]]&lt;br /&gt;
* [[setFogDistance]]&lt;br /&gt;
* [[setGameSpeed]]&lt;br /&gt;
* [[setGarageOpen]]&lt;br /&gt;
* [[setGravity]]&lt;br /&gt;
* [[setHeatHaze]]&lt;br /&gt;
* [[setInteriorFurnitureEnabled]]&lt;br /&gt;
* [[setInteriorSoundsEnabled]]&lt;br /&gt;
* [[setJetpackMaxHeight]]&lt;br /&gt;
* [[setMinuteDuration]]&lt;br /&gt;
* [[setMoonSize]]&lt;br /&gt;
* [[setNearClipDistance]]&lt;br /&gt;
* [[setOcclusionsEnabled]]&lt;br /&gt;
* [[setPedsLODDistance]]&lt;br /&gt;
* [[setPlayerBlurLevel]]&lt;br /&gt;
* [[setRainLevel]]&lt;br /&gt;
* [[setSkyGradient]]&lt;br /&gt;
* [[setSunColor]]&lt;br /&gt;
* [[setSunSize]]&lt;br /&gt;
* [[setTime]]&lt;br /&gt;
* [[setTrafficLightsLocked]]&lt;br /&gt;
* [[setTrafficLightState]]&lt;br /&gt;
* [[setVehiclesLODDistance]]&lt;br /&gt;
* [[setWeather]]&lt;br /&gt;
* [[setWeatherBlended]]&lt;br /&gt;
* [[setWindVelocity]]&lt;br /&gt;
* [[setWorldSoundEnabled]]&lt;br /&gt;
* [[setWorldSpecialPropertyEnabled]]&lt;br /&gt;
* [[testLineAgainstWater]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Functions templates]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Lopez</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetCoronaReflectionsEnabled&amp;diff=75503</id>
		<title>SetCoronaReflectionsEnabled</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetCoronaReflectionsEnabled&amp;diff=75503"/>
		<updated>2022-09-25T10:56:23Z</updated>

		<summary type="html">&lt;p&gt;Lopez: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{New feature/item|1.5.9|1.5.8|21251|Sets visibility of corona reflections.}}&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 setCoronaReflectionsEnabled ( int enabled )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''enabled:'''&lt;br /&gt;
** '''0''': disabled&lt;br /&gt;
** '''1''': enabled&lt;br /&gt;
** '''2''': force enabled, even if there is no rain&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if passed arguments are correct, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Force enable corona reflections even if there is no rain&lt;br /&gt;
setCoronaReflectionsEnabled(2)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{client world functions}}&lt;/div&gt;</summary>
		<author><name>Lopez</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetCoronaReflectionsEnabled&amp;diff=75502</id>
		<title>GetCoronaReflectionsEnabled</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetCoronaReflectionsEnabled&amp;diff=75502"/>
		<updated>2022-09-25T10:55:26Z</updated>

		<summary type="html">&lt;p&gt;Lopez: Created page with &amp;quot;{{Client function}} __NOTOC__ {{New feature/item|1.5.9|1.5.8|21251|Gets visibility of corona reflections.}}  ==Syntax==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; int getCoronaReflectionsEnabled ( ) &amp;lt;/syntaxhighlight&amp;gt;   ===Returns=== One of the following integers will be returned: * '''0''': corona reflections are disabled * '''1''': corona reflections are enabled * '''2''': corona reflections are force enabled, even if there is no rain  ==See Also== {{client world functions}}&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{New feature/item|1.5.9|1.5.8|21251|Gets visibility of corona reflections.}}&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 getCoronaReflectionsEnabled ( )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
One of the following integers will be returned:&lt;br /&gt;
* '''0''': corona reflections are disabled&lt;br /&gt;
* '''1''': corona reflections are enabled&lt;br /&gt;
* '''2''': corona reflections are force enabled, even if there is no rain&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{client world functions}}&lt;/div&gt;</summary>
		<author><name>Lopez</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetCoronaReflectionsEnabled&amp;diff=75501</id>
		<title>SetCoronaReflectionsEnabled</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetCoronaReflectionsEnabled&amp;diff=75501"/>
		<updated>2022-09-25T10:52:34Z</updated>

		<summary type="html">&lt;p&gt;Lopez: Created page with &amp;quot;{{Client function}} __NOTOC__ {{New feature/item|1.5.9|1.5.8|21251|Sets visibility of corona reflections.}}  ==Syntax==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; bool setCoronaReflectionsEnabled ( int enabled ) &amp;lt;/syntaxhighlight&amp;gt;   ===Required Arguments===  *'''enabled:''' ** 0 - disabled ** 1 - enabled ** 2 - force enabled, even if there is no rain  ===Returns=== Returns ''true'' if passed arguments are correct, ''false'' otherwise.  ==Example==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; -- For...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{New feature/item|1.5.9|1.5.8|21251|Sets visibility of corona reflections.}}&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 setCoronaReflectionsEnabled ( int enabled )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''enabled:'''&lt;br /&gt;
** 0 - disabled&lt;br /&gt;
** 1 - enabled&lt;br /&gt;
** 2 - force enabled, even if there is no rain&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if passed arguments are correct, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Force enable corona reflections even if there is no rain&lt;br /&gt;
setCoronaReflectionsEnabled(2)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{client world functions}}&lt;/div&gt;</summary>
		<author><name>Lopez</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Code_snippet_for_extracting_weapon_stats&amp;diff=75491</id>
		<title>Code snippet for extracting weapon stats</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Code_snippet_for_extracting_weapon_stats&amp;diff=75491"/>
		<updated>2022-09-15T22:05:51Z</updated>

		<summary type="html">&lt;p&gt;Lopez: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Code snippet which might be used to extract weapon stats:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
count = 22&lt;br /&gt;
statid = 3&lt;br /&gt;
&lt;br /&gt;
addCommandHandler(&amp;quot;dump&amp;quot;, function ()&lt;br /&gt;
    while (count &amp;lt; 33) do&lt;br /&gt;
        hFile = fileOpen ( &amp;quot;dump.txt&amp;quot; )&lt;br /&gt;
        fileSetPos(hFile, fileGetSize ( hFile ))&lt;br /&gt;
        i = count&lt;br /&gt;
        fileWrite(hFile, &amp;quot;// &amp;quot; .. i .. &amp;quot; - &amp;quot; .. getWeaponNameFromID( i ) .. &amp;quot; Stat: &amp;quot; .. statid )&lt;br /&gt;
        fileWrite(hFile, &amp;quot;\r\n&amp;quot;)&lt;br /&gt;
        for k,v in ipairs(props) do&lt;br /&gt;
            outputChatBox(v)&lt;br /&gt;
            fileWrite(hFile, Dump(v))&lt;br /&gt;
            fileWrite(hFile, &amp;quot;\r\n&amp;quot;)&lt;br /&gt;
        end&lt;br /&gt;
        fileClose(hFile)&lt;br /&gt;
        count = count + 1&lt;br /&gt;
    end&lt;br /&gt;
end)&lt;br /&gt;
&lt;br /&gt;
function Array()&lt;br /&gt;
    if (statid == 3) then&lt;br /&gt;
        return &amp;quot;OriginalHitmanData[&amp;quot;&lt;br /&gt;
    elseif ( statid == 2 ) then&lt;br /&gt;
        return &amp;quot;OriginalGangsterData[&amp;quot;&lt;br /&gt;
    else&lt;br /&gt;
        return &amp;quot;OriginalWeaponData[&amp;quot;&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function Dump(strInfo)&lt;br /&gt;
    i = count&lt;br /&gt;
    -- Special case for Vectors&lt;br /&gt;
    if ( strInfo == &amp;quot;fire_offset&amp;quot;) then&lt;br /&gt;
        fx, fy, fz = getWeaponProperty(i, statid, strInfo)&lt;br /&gt;
        return Array() .. i .. &amp;quot;].&amp;quot; .. strInfo .. &amp;quot; = CVector ( &amp;quot; .. floatify ( fx ) .. &amp;quot;, &amp;quot; .. floatify ( fy ) .. &amp;quot;, &amp;quot; .. floatify ( fz ) .. &amp;quot; );&amp;quot;&lt;br /&gt;
    end&lt;br /&gt;
    -- Avoids compile errors ( Cannot convert from x to y )&lt;br /&gt;
    if ( strInfo == &amp;quot;skill_level&amp;quot; ) then&lt;br /&gt;
        return Array() .. i .. &amp;quot;].&amp;quot; .. strInfo .. &amp;quot; = (eWeaponSkill) &amp;quot; .. getWeaponProperty(i, statid, strInfo) .. &amp;quot;;&amp;quot;&lt;br /&gt;
    end&lt;br /&gt;
    if ( strInfo == &amp;quot;weapon_slot&amp;quot; ) then&lt;br /&gt;
        return Array() .. i .. &amp;quot;].&amp;quot; .. strInfo .. &amp;quot; = (eWeaponSlot) &amp;quot; .. getWeaponProperty(i, statid, strInfo) .. &amp;quot;;&amp;quot;&lt;br /&gt;
    end&lt;br /&gt;
    if ( strInfo == &amp;quot;fire_type&amp;quot; ) then&lt;br /&gt;
        return Array() .. i .. &amp;quot;].&amp;quot; .. strInfo .. &amp;quot; = (eFireType) &amp;quot; .. getWeaponProperty(i, statid, strInfo) .. &amp;quot;;&amp;quot;&lt;br /&gt;
    end&lt;br /&gt;
    -- end&lt;br /&gt;
    -- Avoids Conversion from Double to float warnings.&lt;br /&gt;
    if ( strInfo == &amp;quot;weapon_range&amp;quot; or strInfo == &amp;quot;target_range&amp;quot; or strInfo == &amp;quot;accuracy&amp;quot; or strInfo == &amp;quot;move_speed&amp;quot; or strInfo == &amp;quot;anim_loop_start&amp;quot; or&lt;br /&gt;
strInfo == &amp;quot;anim_loop_stop&amp;quot; or strInfo == &amp;quot;anim_loop_bullet_fire&amp;quot; or strInfo == &amp;quot;anim2_loop_start&amp;quot; or strInfo == &amp;quot;anim2_loop_stop&amp;quot; or strInfo ==&lt;br /&gt;
&amp;quot;anim2_loop_bullet_fire&amp;quot; or strInfo == &amp;quot;anim_breakout_time&amp;quot; or strInfo == &amp;quot;firing_speed&amp;quot; or strInfo == &amp;quot;radius&amp;quot; or strInfo == &amp;quot;life_span&amp;quot; or strInfo ==&lt;br /&gt;
&amp;quot;spread&amp;quot;) then return Array() .. i .. &amp;quot;].&amp;quot; .. strInfo .. &amp;quot; = &amp;quot; .. floatify ( getWeaponProperty(i, statid, strInfo) ) .. &amp;quot;;&amp;quot; end&lt;br /&gt;
    -- Default&lt;br /&gt;
    return Array() .. i .. &amp;quot;].&amp;quot; .. strInfo .. &amp;quot; = &amp;quot; .. getWeaponProperty(i, statid, strInfo) .. &amp;quot;;&amp;quot;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Avoids conversion from Double to float warnings.&lt;br /&gt;
function floatify ( fVal )&lt;br /&gt;
    if ( fVal == math.floor( fVal ) or fVal == math.ceil( fVal ) ) then&lt;br /&gt;
        return fVal .. &amp;quot;.0f&amp;quot;&lt;br /&gt;
    end&lt;br /&gt;
    return fVal .. &amp;quot;f&amp;quot;&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(mtasa-blue source code contains link to this page)&lt;br /&gt;
&lt;br /&gt;
(moved from [https://github.com/multitheftauto/mtasa-blue/blob/c58c3678f263d810f61eb5aecba48e6c4b4dce0c/Client/game_sa/CWeaponStatManagerSA.cpp#L153-L219 multitheftauto/mtasa-blue/blob/c58c3678f263d810f61eb5aecba48e6c4b4dce0c/Client/game_sa/CWeaponStatManagerSA.cpp#L153-L219])&lt;br /&gt;
&lt;br /&gt;
[[Category:Development]]&lt;/div&gt;</summary>
		<author><name>Lopez</name></author>
	</entry>
</feed>