<?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=Strix</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=Strix"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Strix"/>
	<updated>2026-04-22T11:19:09Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Shared_function&amp;diff=45078</id>
		<title>Template:Shared function</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Shared_function&amp;diff=45078"/>
		<updated>2015-04-28T16:13:53Z</updated>

		<summary type="html">&lt;p&gt;Strix: Undo revision 45075 by Ahemnassar (talk)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pageclass class=&amp;quot;both&amp;quot; subcaption=&amp;quot;Shared function&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
&amp;lt;lowercasetitle&amp;gt;&amp;lt;/lowercasetitle&amp;gt;&lt;br /&gt;
&amp;lt;includeonly&amp;gt;[[Category:Server functions]][[Category:Client functions]]&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Strix</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RU/dbConnect&amp;diff=44799</id>
		<title>RU/dbConnect</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RU/dbConnect&amp;diff=44799"/>
		<updated>2015-03-12T21:44:44Z</updated>

		<summary type="html">&lt;p&gt;Strix: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Translate}}&lt;br /&gt;
{{RU/Server function}}&lt;br /&gt;
Эта функция открывает подключение к базе данных и возвращает элемент, который может быть использован с [[RU/dbQuery|dbQuery]]. Для отключения используйте [[RU/destroyElement|destroyElement]].&lt;br /&gt;
{{RU/Note|Connecting and disconnecting many times can have a performance impact on the server. For optimal performance it is recommended that you use dbConnect only once when the resource starts, and share the connection element with the whole script.}}&lt;br /&gt;
{{RU/Note|dbConnect на Linux MySQL требует libmysqlclient.so.15 (для MTA 1.3), или libmysqlclient.so.16 (для MTA 1.4)}}&lt;br /&gt;
==Синтаксис== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element dbConnect ( string databaseType, string host [, string username = &amp;quot;&amp;quot;, string password = &amp;quot;&amp;quot;, string options = &amp;quot;&amp;quot; ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{RU/OOP||[[Connection]]}}&lt;br /&gt;
===Обязательные параметры===&lt;br /&gt;
*'''databaseType:''' Тип базы данных. Может быть ''sqlite'' или ''mysql''&lt;br /&gt;
*'''host:''' The target to connect to. The format of this depends on the database type.&lt;br /&gt;
** Для SQLite it is a [[filepath]] to a SQLite database file. If the filepath starts with &amp;quot;:/&amp;quot; then the server's global databases directory is used. The file will be created if it does not exist.&lt;br /&gt;
** Для MySQL it is a list of key=value pairs separated by semicolons. Supported keys are:&lt;br /&gt;
*** '''dbname''': Name of the database to use e.g. ''dbname=test''&lt;br /&gt;
*** '''host''': Host address e.g. ''host=127.0.0.1''&lt;br /&gt;
*** '''port''': Host port e.g. ''port=1234'' (optional, defaults to standard MySQL port if not used)&lt;br /&gt;
*** '''unix_socket''': Unix socket or named pipe to use (optional, thankgoodness)&lt;br /&gt;
&lt;br /&gt;
===Необязательные параметры===&lt;br /&gt;
*'''username:''' Обычно требуется для MySQL, игнорируется для SQLite &lt;br /&gt;
*'''password:''' Обычно требуется для MySQL, игнорируется для SQLite &lt;br /&gt;
*'''options :''' List of key=value pairs separated by semicolons. Supported keys are:&lt;br /&gt;
**'''share''' which can be set to 0 or 1. (Default value for SQLite is &amp;quot;share=1&amp;quot;, for MySQL is &amp;quot;share=0&amp;quot;). When set to 1, the connection is shared and will be used by other calls to dbConnect with the same host string. This is usually a good thing for SQLite connections, but not so good for MySQL unless care is taken.&lt;br /&gt;
**'''batch''' which can be set to 0 or 1. (Default is &amp;quot;batch=1&amp;quot;). When set to 1, queries called in the same frame are automatically batched together which can significantly speed up inserts/updates. The downside is you lose control of the feature that is used to achieve batching (For SQLite it is transactions, for MySQL it is autocommit mode). Therefore, if you use transactions, lock tables or control autocommit yourself, you may want to disable this feature.&lt;br /&gt;
**'''autoreconnect''' which can be set to 0 or 1. (Default value &amp;quot;autoreconnect=1&amp;quot;). When set to 1, dropped connections will automatically be reconnected. Note that session variables, user variables, table locks and temporary tables will be reset because of the reconnection. So if you use these fancy features, you will need to turn autoreconnect off and cope with dropped connections some other way.&lt;br /&gt;
**'''log''' which can be set to 0 or 1. (Default value &amp;quot;log&amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt;1&amp;quot;). When set to 0, activity from this connection will not be recorded in the [[Server_Commands#debugdb|database debug log file]].&lt;br /&gt;
**'''tag''' (Default value &amp;quot;tag&amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt;script&amp;quot;). A string which helps identify activity from this connection in the [[Server_Commands#debugdb|database debug log file]].&lt;br /&gt;
**'''suppress''' A comma separated list of error codes to ignore. (eg. &amp;quot;suppress&amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt;1062,1169&amp;quot;).&lt;br /&gt;
**'''charset''' If you want to communicate with the server using a character set different from the default, you'll need to indicate which one. (eg. &amp;quot;charset&amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt;utf8&amp;quot;). (used only in MySQL)&lt;br /&gt;
&lt;br /&gt;
===Возвращает===&lt;br /&gt;
Возвращает элемент подключения к базе данных, если проблем нет, в противном случае ''false''.&lt;br /&gt;
&lt;br /&gt;
==Пример==&lt;br /&gt;
This example opens a connection to a SQLite database file in the current resource&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
test_db = dbConnect( &amp;quot;sqlite&amp;quot;, &amp;quot;file.db&amp;quot; )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This example opens a connection to a SQLite database file in another resource&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
test_db = dbConnect( &amp;quot;sqlite&amp;quot;, &amp;quot;:resname/file.db&amp;quot; )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This example opens a connection to a SQLite database file in the global databases directory&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
test_db = dbConnect( &amp;quot;sqlite&amp;quot;, &amp;quot;:/file.db&amp;quot; )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This example opens a connection to a SQLite database file in a sub directory of the global databases directory&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
test_db = dbConnect( &amp;quot;sqlite&amp;quot;, &amp;quot;:/example/sub/dir/file.db&amp;quot; )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This example opens a connection to a MySQL database called 'frank' at server ip 1.2.3.4 and allows the connection to be shared. Note that changing the database or other connection dependent settings affect all connections that are shared.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
test_db = dbConnect( &amp;quot;mysql&amp;quot;, &amp;quot;dbname=frank;host=1.2.3.4&amp;quot;, &amp;quot;username&amp;quot;, &amp;quot;password&amp;quot;, &amp;quot;share=1&amp;quot; )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This example opens a connection to a SQLite database is disallows sharing of the connection&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
test_db = dbConnect( &amp;quot;sqlite&amp;quot;, &amp;quot;file.db&amp;quot;, &amp;quot;&amp;quot;, &amp;quot;&amp;quot;, &amp;quot;share=0&amp;quot; )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Требования==&lt;br /&gt;
{{RU/Requirements|1.1.1-9.03328|n/a}}&lt;br /&gt;
&lt;br /&gt;
==Список изменений==&lt;br /&gt;
{{ChangelogHeader}}&lt;br /&gt;
{{ChangelogItem|1.3.1-9.04817|Добавлены опции 'log', 'tag' и 'suppress'}}&lt;br /&gt;
{{ChangelogItem|1.3.5-9.06386|Добавлена опция 'charset'}}&lt;br /&gt;
&lt;br /&gt;
==Смотрите также==&lt;br /&gt;
{{RU/Registry_functions}}&lt;br /&gt;
&lt;br /&gt;
[[en:dbConnect]]&lt;/div&gt;</summary>
		<author><name>Strix</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RU/dbConnect&amp;diff=44798</id>
		<title>RU/dbConnect</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RU/dbConnect&amp;diff=44798"/>
		<updated>2015-03-12T21:44:22Z</updated>

		<summary type="html">&lt;p&gt;Strix: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Translate|RU}}&lt;br /&gt;
{{RU/Server function}}&lt;br /&gt;
Эта функция открывает подключение к базе данных и возвращает элемент, который может быть использован с [[RU/dbQuery|dbQuery]]. Для отключения используйте [[RU/destroyElement|destroyElement]].&lt;br /&gt;
{{RU/Note|Connecting and disconnecting many times can have a performance impact on the server. For optimal performance it is recommended that you use dbConnect only once when the resource starts, and share the connection element with the whole script.}}&lt;br /&gt;
{{RU/Note|dbConnect на Linux MySQL требует libmysqlclient.so.15 (для MTA 1.3), или libmysqlclient.so.16 (для MTA 1.4)}}&lt;br /&gt;
==Синтаксис== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element dbConnect ( string databaseType, string host [, string username = &amp;quot;&amp;quot;, string password = &amp;quot;&amp;quot;, string options = &amp;quot;&amp;quot; ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{RU/OOP||[[Connection]]}}&lt;br /&gt;
===Обязательные параметры===&lt;br /&gt;
*'''databaseType:''' Тип базы данных. Может быть ''sqlite'' или ''mysql''&lt;br /&gt;
*'''host:''' The target to connect to. The format of this depends on the database type.&lt;br /&gt;
** Для SQLite it is a [[filepath]] to a SQLite database file. If the filepath starts with &amp;quot;:/&amp;quot; then the server's global databases directory is used. The file will be created if it does not exist.&lt;br /&gt;
** Для MySQL it is a list of key=value pairs separated by semicolons. Supported keys are:&lt;br /&gt;
*** '''dbname''': Name of the database to use e.g. ''dbname=test''&lt;br /&gt;
*** '''host''': Host address e.g. ''host=127.0.0.1''&lt;br /&gt;
*** '''port''': Host port e.g. ''port=1234'' (optional, defaults to standard MySQL port if not used)&lt;br /&gt;
*** '''unix_socket''': Unix socket or named pipe to use (optional, thankgoodness)&lt;br /&gt;
&lt;br /&gt;
===Необязательные параметры===&lt;br /&gt;
*'''username:''' Обычно требуется для MySQL, игнорируется для SQLite &lt;br /&gt;
*'''password:''' Обычно требуется для MySQL, игнорируется для SQLite &lt;br /&gt;
*'''options :''' List of key=value pairs separated by semicolons. Supported keys are:&lt;br /&gt;
**'''share''' which can be set to 0 or 1. (Default value for SQLite is &amp;quot;share=1&amp;quot;, for MySQL is &amp;quot;share=0&amp;quot;). When set to 1, the connection is shared and will be used by other calls to dbConnect with the same host string. This is usually a good thing for SQLite connections, but not so good for MySQL unless care is taken.&lt;br /&gt;
**'''batch''' which can be set to 0 or 1. (Default is &amp;quot;batch=1&amp;quot;). When set to 1, queries called in the same frame are automatically batched together which can significantly speed up inserts/updates. The downside is you lose control of the feature that is used to achieve batching (For SQLite it is transactions, for MySQL it is autocommit mode). Therefore, if you use transactions, lock tables or control autocommit yourself, you may want to disable this feature.&lt;br /&gt;
**'''autoreconnect''' which can be set to 0 or 1. (Default value &amp;quot;autoreconnect=1&amp;quot;). When set to 1, dropped connections will automatically be reconnected. Note that session variables, user variables, table locks and temporary tables will be reset because of the reconnection. So if you use these fancy features, you will need to turn autoreconnect off and cope with dropped connections some other way.&lt;br /&gt;
**'''log''' which can be set to 0 or 1. (Default value &amp;quot;log&amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt;1&amp;quot;). When set to 0, activity from this connection will not be recorded in the [[Server_Commands#debugdb|database debug log file]].&lt;br /&gt;
**'''tag''' (Default value &amp;quot;tag&amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt;script&amp;quot;). A string which helps identify activity from this connection in the [[Server_Commands#debugdb|database debug log file]].&lt;br /&gt;
**'''suppress''' A comma separated list of error codes to ignore. (eg. &amp;quot;suppress&amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt;1062,1169&amp;quot;).&lt;br /&gt;
**'''charset''' If you want to communicate with the server using a character set different from the default, you'll need to indicate which one. (eg. &amp;quot;charset&amp;lt;nowiki&amp;gt;=&amp;lt;/nowiki&amp;gt;utf8&amp;quot;). (used only in MySQL)&lt;br /&gt;
&lt;br /&gt;
===Возвращает===&lt;br /&gt;
Возвращает элемент подключения к базе данных, если проблем нет, в противном случае ''false''.&lt;br /&gt;
&lt;br /&gt;
==Пример==&lt;br /&gt;
This example opens a connection to a SQLite database file in the current resource&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
test_db = dbConnect( &amp;quot;sqlite&amp;quot;, &amp;quot;file.db&amp;quot; )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This example opens a connection to a SQLite database file in another resource&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
test_db = dbConnect( &amp;quot;sqlite&amp;quot;, &amp;quot;:resname/file.db&amp;quot; )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This example opens a connection to a SQLite database file in the global databases directory&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
test_db = dbConnect( &amp;quot;sqlite&amp;quot;, &amp;quot;:/file.db&amp;quot; )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This example opens a connection to a SQLite database file in a sub directory of the global databases directory&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
test_db = dbConnect( &amp;quot;sqlite&amp;quot;, &amp;quot;:/example/sub/dir/file.db&amp;quot; )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This example opens a connection to a MySQL database called 'frank' at server ip 1.2.3.4 and allows the connection to be shared. Note that changing the database or other connection dependent settings affect all connections that are shared.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
test_db = dbConnect( &amp;quot;mysql&amp;quot;, &amp;quot;dbname=frank;host=1.2.3.4&amp;quot;, &amp;quot;username&amp;quot;, &amp;quot;password&amp;quot;, &amp;quot;share=1&amp;quot; )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This example opens a connection to a SQLite database is disallows sharing of the connection&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
test_db = dbConnect( &amp;quot;sqlite&amp;quot;, &amp;quot;file.db&amp;quot;, &amp;quot;&amp;quot;, &amp;quot;&amp;quot;, &amp;quot;share=0&amp;quot; )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Требования==&lt;br /&gt;
{{RU/Requirements|1.1.1-9.03328|n/a}}&lt;br /&gt;
&lt;br /&gt;
==Список изменений==&lt;br /&gt;
{{ChangelogHeader}}&lt;br /&gt;
{{ChangelogItem|1.3.1-9.04817|Добавлены опции 'log', 'tag' и 'suppress'}}&lt;br /&gt;
{{ChangelogItem|1.3.5-9.06386|Добавлена опция 'charset'}}&lt;br /&gt;
&lt;br /&gt;
==Смотрите также==&lt;br /&gt;
{{RU/Registry_functions}}&lt;br /&gt;
&lt;br /&gt;
[[en:dbConnect]]&lt;/div&gt;</summary>
		<author><name>Strix</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Introduction_to_Scripting_the_GUI&amp;diff=44792</id>
		<title>Introduction to Scripting the GUI</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Introduction_to_Scripting_the_GUI&amp;diff=44792"/>
		<updated>2015-03-10T09:02:03Z</updated>

		<summary type="html">&lt;p&gt;Strix: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- place holder --&amp;gt;&lt;br /&gt;
One important feature in MTA:SA is the ability to script customized GUI (Graphic User Interface). The GUI consists of windows, button, edit boxes, check boxes... Almost every standard form components in graphical environments. They can be displayed while the user is in game, and used for inputs and outputs in place of traditional commands. &lt;br /&gt;
&lt;br /&gt;
[[Image:AdminGUI.png|thumb|Admin Console GUI]]&lt;br /&gt;
&lt;br /&gt;
==A tutorial to make a login window==&lt;br /&gt;
In this tutorial we'll make a simple login window, with two input boxes and a button. The window appears when the player joins the game, and once the button is clicked, the player is spawned. The tutorial will continue the gamemode we made in [[Scripting Introduction|Introduction to Scripting]] ''(If you have used the [[Scripting Introduction|Introduction to Scripting]], you will need to remove or comment the [[spawnPlayer]] line in the &amp;quot;joinHandler&amp;quot; function in your code, as we will be replacing it with a gui alternative in this tutorial)''. We'll also take a look at client-side scripting. &lt;br /&gt;
&lt;br /&gt;
===Draw the window===&lt;br /&gt;
All the GUI must be made client side. It is also a good practice to keep all the client scripts in a separate folder. &lt;br /&gt;
&lt;br /&gt;
Browse to /Your MTA Server/mods/deathmatch/resources/myserver/ directory, and create a folder named &amp;quot;client&amp;quot;. Under /client/ directory, create a text file and name it &amp;quot;gui.lua&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
In this file we will write a funtion that draws the window. To create a window we will use [[guiCreateWindow]]:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function createLoginWindow()&lt;br /&gt;
	-- define the X and Y positions of the window&lt;br /&gt;
	local X = 0.375&lt;br /&gt;
	local Y = 0.375&lt;br /&gt;
	-- define the width and height of the window&lt;br /&gt;
	local Width = 0.25&lt;br /&gt;
	local Height = 0.25&lt;br /&gt;
	-- create the window and save its element value into the variable 'wdwLogin'&lt;br /&gt;
	-- click on the function's name to read its documentation&lt;br /&gt;
	wdwLogin = guiCreateWindow(X, Y, Width, Height, &amp;quot;Please Log In&amp;quot;, true)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Relative and Absolute===&lt;br /&gt;
Note that the final argument passed to guiCreateWindow in the above example is ''true''. This indicates that the coordinates and dimensions of the window are '''relative''', meaning they are a ''percentage'' of the total screen size. This means that if the far left side of the screen is 0, and the far right is 1, an X position of 0.5 would represent the centre point of the screen. Similarly, if the top of the screen is 0 and the bottom is 1, a Y position of 0.2 would be 20% of the way down the screen. The same principles apply to both Width and Height as well (with a Width value of 0.5 meaning the window will be half as wide as the screen).&lt;br /&gt;
&lt;br /&gt;
The alternative to using relative values is using '''absolute''' (by passing ''false'' instead of true to guiCreateWindow). Absolute values are calculated as the total number of pixels from the top-left corner of the parent (if no gui element parent is specified, the parent is the screen itself). If we assume a screen resolution of 1920x1200, the far left side of the screen being 0 pixels and the far right being 1920 pixels, an X position of 960 will represent the centre point of the screen. Similarly, if the top of the screen is 0 pixels and the bottom is 1200, a Y position of 20 would be 20 pixels down from the top of the screen. The same principles apply to both Width and Height as well (with a Width value of 50 meaning the window will be 50 pixels wide). ''You can use [[guiGetScreenSize]] and a little maths to calculate certain absolute positions.''&lt;br /&gt;
&lt;br /&gt;
The differences between using relative and absolute values is quite simple; gui created using absolute values will always remain exactly the same pixel size and position, while gui created using relative values will always be a percentage of its parent's size.&lt;br /&gt;
&lt;br /&gt;
Absolute is generally easier to maintain when editing code by hand, however your choice of type depends on the situation you are using it for.&lt;br /&gt;
&lt;br /&gt;
For the purposes of this introduction we will be using relative values.&lt;br /&gt;
&lt;br /&gt;
===Adding the components===&lt;br /&gt;
Next, we'll add the text labels (saying &amp;quot;username:&amp;quot; and &amp;quot;password:&amp;quot;), edit boxes (for entering your data) and a button to log in.&lt;br /&gt;
&lt;br /&gt;
To create buttons we use [[guiCreateButton]] and to create edit boxes use [[guiCreateEdit]]:&lt;br /&gt;
&lt;br /&gt;
'''Note that we are now writing more code for our existing 'createLoginWindow' function. This is not a new function and is meant to replace what you already have.''' &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function createLoginWindow()&lt;br /&gt;
	local X = 0.375&lt;br /&gt;
	local Y = 0.375&lt;br /&gt;
	local Width = 0.25&lt;br /&gt;
	local Height = 0.25&lt;br /&gt;
	wdwLogin = guiCreateWindow(X, Y, Width, Height, &amp;quot;Please Log In&amp;quot;, true)&lt;br /&gt;
	&lt;br /&gt;
	-- define new X and Y positions for the first label&lt;br /&gt;
	X = 0.0825&lt;br /&gt;
	Y = 0.2&lt;br /&gt;
	-- define new Width and Height values for the first label&lt;br /&gt;
	Width = 0.25&lt;br /&gt;
	Height = 0.25&lt;br /&gt;
	-- create the first label, note the final argument passed is 'wdwLogin' meaning the window&lt;br /&gt;
	-- we created above is the parent of this label (so all the position and size values are now relative to the position of that window)&lt;br /&gt;
	guiCreateLabel(X, Y, Width, Height, &amp;quot;Username&amp;quot;, true, wdwLogin)&lt;br /&gt;
	-- alter the Y value, so the second label is slightly below the first&lt;br /&gt;
	Y = 0.5&lt;br /&gt;
	guiCreateLabel(X, Y, Width, Height, &amp;quot;Password&amp;quot;, true, wdwLogin)&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
	X = 0.415&lt;br /&gt;
	Y = 0.2&lt;br /&gt;
	Width = 0.5&lt;br /&gt;
	Height = 0.15&lt;br /&gt;
	edtUser = guiCreateEdit(X, Y, Width, Height, &amp;quot;&amp;quot;, true, wdwLogin)&lt;br /&gt;
	Y = 0.5&lt;br /&gt;
	edtPass = guiCreateEdit(X, Y, Width, Height, &amp;quot;&amp;quot;, true, wdwLogin)&lt;br /&gt;
	-- set the maximum character length for the username and password fields to 50&lt;br /&gt;
	guiEditSetMaxLength(edtUser, 50)&lt;br /&gt;
	guiEditSetMaxLength(edtPass, 50)&lt;br /&gt;
	&lt;br /&gt;
	X = 0.415&lt;br /&gt;
	Y = 0.7&lt;br /&gt;
	Width = 0.25&lt;br /&gt;
	Height = 0.2&lt;br /&gt;
	btnLogin = guiCreateButton(X, Y, Width, Height, &amp;quot;Log In&amp;quot;, true, wdwLogin)&lt;br /&gt;
	&lt;br /&gt;
	-- make the window invisible&lt;br /&gt;
	guiSetVisible(wdwLogin, false)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Note that every GUI component created is a child of the window, this is done by specifying the parent element (wdwLogin, in this case) when creating the component. &lt;br /&gt;
&lt;br /&gt;
This is very useful because not only does it mean that all the components are attached to the window and will move with it, but also that any changes done to the parent window will be applied down the tree to these child components. For example, we can now hide all of the GUI we just created by simply hiding the window:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
guiSetVisible(wdwLogin, false) --hides all the GUI we made so we can show them to the player at the appropriate moment. &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Using the function we wrote===&lt;br /&gt;
The createLoginWindow function is now complete, but it won't do anything until we call it. It is recommended to create all GUI when the client resource starts, hide them, and show them to the player later when needed. Therefore, we'll write an event handler for &amp;quot;[[onClientResourceStart]]&amp;quot; to create the window:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- attach the event handler to the root element of the resource&lt;br /&gt;
-- this means it will only trigger when its own resource is started&lt;br /&gt;
addEventHandler(&amp;quot;onClientResourceStart&amp;quot;, getResourceRootElement(), &lt;br /&gt;
	function ()&lt;br /&gt;
		createLoginWindow()&lt;br /&gt;
	end&lt;br /&gt;
)	&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As this is a log in window, we now need to show the window when the player joins the game. &lt;br /&gt;
This can be done using the same event, &amp;quot;[[onClientResourceStart]]&amp;quot;, so we can modify the above code to include showing the window:&lt;br /&gt;
&lt;br /&gt;
'''Note that we are now writing more code for our existing 'onClientResourceStart' handler. This is not a new event handler and is meant to replace what you already have.''' &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler(&amp;quot;onClientResourceStart&amp;quot;, getResourceRootElement(), &lt;br /&gt;
	function ()&lt;br /&gt;
		-- create the log in window and its components&lt;br /&gt;
		createLoginWindow()&lt;br /&gt;
&lt;br /&gt;
		-- output a brief welcome message to the player&lt;br /&gt;
                outputChatBox(&amp;quot;Welcome to My MTA:SA Server, please log in.&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
		-- if the GUI was successfully created, then show the GUI to the player&lt;br /&gt;
	        if (wdwLogin ~= nil) then&lt;br /&gt;
			guiSetVisible(wdwLogin, true)&lt;br /&gt;
		else&lt;br /&gt;
			-- if the GUI hasnt been properly created, tell the player&lt;br /&gt;
			outputChatBox(&amp;quot;An unexpected error has occurred and the log in GUI has not been created.&amp;quot;)&lt;br /&gt;
	        end &lt;br /&gt;
&lt;br /&gt;
		-- enable the players cursor (so they can select and click on the components)&lt;br /&gt;
	        showCursor(true)&lt;br /&gt;
		-- set the input focus onto the GUI, allowing players (for example) to press 'T' without the chatbox opening&lt;br /&gt;
	        guiSetInputEnabled(true)&lt;br /&gt;
	end&lt;br /&gt;
)	&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that we have a simple security check before making the window visible, so in the unlikely event that the window has not been created, meaning wdwLogin is not a valid element, we don't get an error and just inform the player what has happened. &lt;br /&gt;
In the next step, we will create the button functionality for the log in button.&lt;br /&gt;
&lt;br /&gt;
==Scripting the button==&lt;br /&gt;
Now that we have created our GUI and shown it to the player, we need to make it work. &lt;br /&gt;
&lt;br /&gt;
===Detecting the click===&lt;br /&gt;
When the player clicks on any part of the GUI, the event &amp;quot;[[onClientGUIClick]]&amp;quot; will be triggered for the GUI component you clicked on. This allows us to easily detect any clicks on the GUI elements we want to use.&lt;br /&gt;
For example, we can attach the event to the btnLogin button to catch any clicks on it:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- attach the event onClientGUIClick to btnLogin and set it to trigger the 'clientSubmitLogin' function&lt;br /&gt;
addEventHandler(&amp;quot;onClientGUIClick&amp;quot;, btnLogin, clientSubmitLogin, false)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
'''Note the final argument passed is &amp;quot;false&amp;quot;. This indicates that the event will only trigger directly on btnLogin, not if the event has propagated up or down the tree. Setting this to &amp;quot;true&amp;quot; while attaching to gui elements will mean that clicking on any element in the same branch will trigger this event.'''&lt;br /&gt;
&lt;br /&gt;
This line of code can now be added inside the createLoginWindow function. It is a common mistake to try and attach events to non-existant GUI elements, so make sure you always attach your events '''after''' the gui element (in this case, the button) has been created:&lt;br /&gt;
&lt;br /&gt;
'''Note that we are now writing more code for our existing 'createLoginWindow' function.''' &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function createLoginWindow()&lt;br /&gt;
	-- create all our GUI elements&lt;br /&gt;
	...&lt;br /&gt;
&lt;br /&gt;
	-- now add our onClientGUIClick event to the button we just created&lt;br /&gt;
	addEventHandler(&amp;quot;onClientGUIClick&amp;quot;, btnLogin, clientSubmitLogin, false)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Managing the click===&lt;br /&gt;
Now that we can detect when the player clicks on the button, we need to write code to manage what happens when they do.&lt;br /&gt;
In our [[onClientGUIClick]] event handle, we told it to call the function clientSubmitLogin whenever btnLogin is clicked.&lt;br /&gt;
Therefore, we can now use the function clientSubmitLogin to control what happens when the button is clicked:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- create the function and define the 'button' and 'state' parameters&lt;br /&gt;
-- (these are passed automatically by onClientGUIClick)&lt;br /&gt;
function clientSubmitLogin(button,state)&lt;br /&gt;
	-- if our login button was clicked with the left mouse button, and the state of the mouse button is up&lt;br /&gt;
	if button == &amp;quot;left&amp;quot; and state == &amp;quot;up&amp;quot; then&lt;br /&gt;
		-- move the input focus back onto the game (allowing players to move around, open the chatbox, etc)&lt;br /&gt;
		guiSetInputEnabled(false)&lt;br /&gt;
		-- hide the window and all the components&lt;br /&gt;
		guiSetVisible(wdwLogin, false)&lt;br /&gt;
		-- hide the mouse cursor&lt;br /&gt;
		showCursor(false)&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Now, when the button is clicked, the window will be hidden and all controls will be returned to the player. Next, we will tell the server to allow the player to spawn.&lt;br /&gt;
&lt;br /&gt;
===Triggering the server===&lt;br /&gt;
Triggering the server can be done using [[triggerServerEvent]]. This allows you to trigger a specified event on the server from the client. The same can be done in reverse using [[triggerClientEvent]].&lt;br /&gt;
Here, we use the [[triggerServerEvent]] function to call our own custom event on the server, named &amp;quot;submitLogin&amp;quot;, which will then control the spawning of the player serverside.&lt;br /&gt;
&lt;br /&gt;
'''Note that we are now writing more code for our existing 'clientSubmitLogin' function. This is not a new function and is meant to replace what you already have.''' &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function clientSubmitLogin(button,state)&lt;br /&gt;
	if button == &amp;quot;left&amp;quot; and state == &amp;quot;up&amp;quot; then&lt;br /&gt;
		-- get the text entered in the 'username' field&lt;br /&gt;
		local username = guiGetText(edtUser)&lt;br /&gt;
		-- get the text entered in the 'password' field&lt;br /&gt;
		local password = guiGetText(edtPass)&lt;br /&gt;
&lt;br /&gt;
		-- if the username and password both exist&lt;br /&gt;
		if username and password then&lt;br /&gt;
			-- trigger the server event 'submitLogin' and pass the username and password to it&lt;br /&gt;
			triggerServerEvent(&amp;quot;submitLogin&amp;quot;, getRootElement(), username, password)&lt;br /&gt;
&lt;br /&gt;
			-- hide the gui, hide the cursor and return control to the player&lt;br /&gt;
			guiSetInputEnabled(false)&lt;br /&gt;
			guiSetVisible(wdwLogin, false)&lt;br /&gt;
			showCursor(false)&lt;br /&gt;
		else&lt;br /&gt;
			-- otherwise, output a message to the player, do not trigger the server&lt;br /&gt;
			-- and do not hide the gui&lt;br /&gt;
			outputChatBox(&amp;quot;Please enter a username and password.&amp;quot;)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Creating the serverside event===&lt;br /&gt;
At this point we now have all the code needed on the client side, so open up your serverside 'script.lua' file (from the [[Scripting Introduction|Introduction to Scripting]]) or another suitable serverside file to work with.&lt;br /&gt;
&lt;br /&gt;
On the server side, recall that we are spawning the player as soon as they login.&lt;br /&gt;
So, first of all, we will need to define the custom event that we used before on the client. This can be done using [[addEvent]] and [[addEventHandler]].&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- create our loginHandler function, with username and password parameters (passed from the client gui)&lt;br /&gt;
function loginHandler(username,password)&lt;br /&gt;
&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- define our custom event, and allow it to be triggered from the client ('true')&lt;br /&gt;
addEvent(&amp;quot;submitLogin&amp;quot;,true)&lt;br /&gt;
-- add an event handler so that when submitLogin is triggered, the function loginHandler is called&lt;br /&gt;
addEventHandler(&amp;quot;submitLogin&amp;quot;,root,loginHandler)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Logging in===&lt;br /&gt;
Now we have a function that is called through the custom event 'submitLogin', we can start to work on logging in and spawning the player, using our 'loginHandler' function:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function loginHandler(username,password)&lt;br /&gt;
	-- check that the username and password are correct&lt;br /&gt;
	if username == &amp;quot;user&amp;quot; and password == &amp;quot;apple&amp;quot; then&lt;br /&gt;
		-- the player has successfully logged in, so spawn them&lt;br /&gt;
		if (client) then&lt;br /&gt;
			spawnPlayer(client, 1959.55, -1714.46, 10)&lt;br /&gt;
			fadeCamera(client, true)&lt;br /&gt;
                        setCameraTarget(client, client)&lt;br /&gt;
			outputChatBox(&amp;quot;Welcome to My Server.&amp;quot;, client)&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		-- if the username or password are not correct, output a message to the player&lt;br /&gt;
		outputChatBox(&amp;quot;Invalid username and password. Please re-connect and try again.&amp;quot;,client)&lt;br /&gt;
        end			&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
addEvent(&amp;quot;submitLogin&amp;quot;,true)&lt;br /&gt;
addEventHandler(&amp;quot;submitLogin&amp;quot;,root,loginHandler)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
'''For the purposes of this tutorial, a very basic username and password system is shown. For a more comprehensive alternative, you can use the Account System or a MySQL database.'''&lt;br /&gt;
&lt;br /&gt;
Also note the use of the variable &amp;quot;client&amp;quot;, it's an internal variable used by MTA to identify the player who triggered the event. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Finally, do not forget to include the new gui.lua file in the meta.xml of the main resource, and label it as a client script:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;script src=&amp;quot;client/gui.lua&amp;quot; type=&amp;quot;client&amp;quot; /&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At this point, we now have a basic login window that checks the player's username and password when the login button is clicked. If they are correct, the player is automatically spawned.&lt;br /&gt;
&lt;br /&gt;
For further help with GUI, see the [[:Category:GUI_Tutorials|GUI tutorials]].&lt;br /&gt;
&lt;br /&gt;
[[Category:GUI_Tutorials]]&lt;br /&gt;
[[it:Introduzione_allo_scripting_della_GUI]]&lt;br /&gt;
[[ru:Introduction to Scripting the GUI]]&lt;br /&gt;
[[es:Introducción a la Programación de GUI]]&lt;/div&gt;</summary>
		<author><name>Strix</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=EngineLoadTXD&amp;diff=44762</id>
		<title>EngineLoadTXD</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=EngineLoadTXD&amp;diff=44762"/>
		<updated>2015-02-28T08:35:13Z</updated>

		<summary type="html">&lt;p&gt;Strix: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{Note box|Please note the loading order that is used in the examples as other orders can cause collisions, textures or the DFF not to load due to technical limitations}}&lt;br /&gt;
&lt;br /&gt;
This function loads a RenderWare Texture Dictionary (TXD) file into GTA. The texture dictionary can then be used to provide textures.&lt;br /&gt;
&lt;br /&gt;
This is a client side function. Be sure to transfer your TXD file by including it in the meta file.&lt;br /&gt;
&lt;br /&gt;
See here for [[Optimize_Custom_TXD|tips on reducing the size of TXD files]].&lt;br /&gt;
&lt;br /&gt;
{{New feature/item|3.0141|1.4.1|7088|&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
txd engineLoadTXD ( string txd_file / string raw_data [, bool filteringEnabled = true ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
[[Image:Filtering.jpg|thumb|Difference between texture filtering modes (left = filtering disabled, right = filtering enabled).|284x230px]]&lt;br /&gt;
{{OOP||[[TXD|EngineTXD]]}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''txd_file / raw_data:''' The [[filepath]] to the TXD file you want to load or whole data buffer of the TXD file.&lt;br /&gt;
}}&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
*'''filteringEnabled:''' Whether to enable texture filtering.&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a [[TXD]] if the file was loaded, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
'''Example 1:''' This example loads a combination of a custom DFF and TXD file to replace the Euros vehicle in-game. The collisions are embedded inside the DFF file.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
outputChatBox ( &amp;quot;&amp;gt; replacing the euros vehicle&amp;quot; )&lt;br /&gt;
&lt;br /&gt;
txd = engineLoadTXD ( &amp;quot;data/euros.txd&amp;quot; )&lt;br /&gt;
engineImportTXD ( txd, 587 )&lt;br /&gt;
dff = engineLoadDFF ( &amp;quot;data/euros.dff&amp;quot;, 0 )&lt;br /&gt;
engineReplaceModel ( dff, 587 )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Example 2:''' This example loads a combination of custom COL, TXD and DFF files to replace an in-game model of a set of floors.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
outputChatBox ( &amp;quot;&amp;gt; loading floor objects&amp;quot; )&lt;br /&gt;
col_floors = engineLoadCOL ( &amp;quot;models/office_floors.col&amp;quot; )&lt;br /&gt;
engineReplaceCOL ( col_floors, 3781 )&lt;br /&gt;
txd_floors = engineLoadTXD ( &amp;quot;models/office_floors.txd&amp;quot; )&lt;br /&gt;
engineImportTXD ( txd_floors, 3781 )&lt;br /&gt;
dff_floors = engineLoadDFF ( &amp;quot;models/office_floors.dff&amp;quot;, 0 )&lt;br /&gt;
engineReplaceModel ( dff_floors, 3781 )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Engine_functions}}&lt;/div&gt;</summary>
		<author><name>Strix</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Admin_functions&amp;diff=44761</id>
		<title>Template:Admin functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Admin_functions&amp;diff=44761"/>
		<updated>2015-02-28T08:29:57Z</updated>

		<summary type="html">&lt;p&gt;Strix: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[addBan]]&lt;br /&gt;
*[[banPlayer]]&lt;br /&gt;
*[[getBanAdmin]]&lt;br /&gt;
*[[getBanIP]]&lt;br /&gt;
*[[getBanNick]]&lt;br /&gt;
*[[getBanReason]]&lt;br /&gt;
*[[getBans]]&lt;br /&gt;
*[[getBanSerial]]&lt;br /&gt;
*[[getBanTime]]&lt;br /&gt;
*[[getBanUsername]]&lt;br /&gt;
*[[getUnbanTime]]&lt;br /&gt;
*[[isBan]]&lt;br /&gt;
*[[kickPlayer]]&lt;br /&gt;
*[[setBanAdmin]]&lt;br /&gt;
*{{New items|3.0141|1.4.1 r7093|[[setBanNick]]}}&lt;br /&gt;
*[[setBanReason]]&lt;br /&gt;
*[[setUnbanTime]]&lt;br /&gt;
*[[removeBan]]&lt;br /&gt;
*[[reloadBans]]&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Functions templates]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Strix</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetBanNick&amp;diff=44760</id>
		<title>SetBanNick</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetBanNick&amp;diff=44760"/>
		<updated>2015-02-28T08:28:17Z</updated>

		<summary type="html">&lt;p&gt;Strix: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server function}}&lt;br /&gt;
{{Needs Example}}&lt;br /&gt;
&lt;br /&gt;
{{New feature/item|3.0141|1.4.1|7093|This function sets a new nick for a [[ban]].}}&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setBanNick ( ban theBan, string theNick )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theBan:''' The [[ban]] you want to change the nick of.&lt;br /&gt;
*'''theNick:''' A string representing the nick you want to set the ban to.&lt;br /&gt;
&lt;br /&gt;
=== Returns ===&lt;br /&gt;
Returns ''true'' if changed, ''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;
--todo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
{{Admin_functions}}&lt;/div&gt;</summary>
		<author><name>Strix</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Admin_functions&amp;diff=44756</id>
		<title>Template:Admin functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Admin_functions&amp;diff=44756"/>
		<updated>2015-02-26T10:31:43Z</updated>

		<summary type="html">&lt;p&gt;Strix: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[addBan]]&lt;br /&gt;
*[[banPlayer]]&lt;br /&gt;
*[[getBanAdmin]]&lt;br /&gt;
*[[getBanIP]]&lt;br /&gt;
*[[getBanNick]]&lt;br /&gt;
*[[getBanReason]]&lt;br /&gt;
*[[getBans]]&lt;br /&gt;
*[[getBanSerial]]&lt;br /&gt;
*[[getBanTime]]&lt;br /&gt;
*[[getBanUsername]]&lt;br /&gt;
*[[getUnbanTime]]&lt;br /&gt;
*[[isBan]]&lt;br /&gt;
*[[kickPlayer]]&lt;br /&gt;
*[[setBanAdmin]]&lt;br /&gt;
*{{New items|3.0150|1.5.0 r7089|[[setBanNick]]}}&lt;br /&gt;
*[[setBanReason]]&lt;br /&gt;
*[[setUnbanTime]]&lt;br /&gt;
*[[removeBan]]&lt;br /&gt;
*[[reloadBans]]&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Functions templates]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Strix</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=EngineLoadCOL&amp;diff=44741</id>
		<title>EngineLoadCOL</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=EngineLoadCOL&amp;diff=44741"/>
		<updated>2015-02-26T07:15:48Z</updated>

		<summary type="html">&lt;p&gt;Strix: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{Note box|Please note the loading order that is used in the examples as other orders can cause collisions, textures or the DFF not to load due to technical limitations}}&lt;br /&gt;
&lt;br /&gt;
This function loads a RenderWare Collision (COL 1/2/3) file into GTA. The collisions can then be used to provide collisions for in-game objects.&lt;br /&gt;
&lt;br /&gt;
For vehicles, please omit this function by embedding your [[COL]] file into your [[DFF]] file. This way, you can be sure that the COL file is correctly (and automatically) loaded when calling [[engineLoadDFF]].&lt;br /&gt;
&lt;br /&gt;
This is a client side function. Be sure to transfer your COL file by including it in the meta file.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' collision libraries (.col files containing multiple collision models) are not supported. See [[COL]] for details.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
col engineLoadCOL ( string col_file ) &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[COL|EngineCOL]]}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''col_file:''' The [[filepath]] to the [[COL]] file you want to load&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a [[COL]] if the file was loaded, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
{{New feature/item|3.0150|1.4.1|7088|&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
col engineLoadCOL ( string col_file / string raw_data ) &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''col_file / raw_data:''' The [[filepath]] to the [[COL]] file you want to load or whole data buffer of the COL file.&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a [[COL]] if the file was loaded, ''false'' otherwise.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
'''Example 1:''' This example loads a combination of a custom DFF and TXD file to replace the Euros vehicle in-game. The collisions are embedded inside the DFF file.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
outputChatBox ( &amp;quot;&amp;gt; replacing the euros vehicle&amp;quot; )&lt;br /&gt;
&lt;br /&gt;
txd = engineLoadTXD ( &amp;quot;data/euros.txd&amp;quot; )&lt;br /&gt;
engineImportTXD ( txd, 587 )&lt;br /&gt;
dff = engineLoadDFF ( &amp;quot;data/euros.dff&amp;quot;, 0 )&lt;br /&gt;
engineReplaceModel ( dff, 587 )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Example 2:''' This example loads a combination of custom COL, TXD and DFFfiles to replace an in-game model of a set of floors.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
outputChatBox ( &amp;quot;&amp;gt; loading floor objects&amp;quot; )&lt;br /&gt;
col_floors = engineLoadCOL ( &amp;quot;models/office_floors.col&amp;quot; )&lt;br /&gt;
engineReplaceCOL ( col_floors, 3781 )&lt;br /&gt;
txd_floors = engineLoadTXD ( &amp;quot;models/office_floors.txd&amp;quot; )&lt;br /&gt;
engineImportTXD ( txd_floors, 3781 )&lt;br /&gt;
dff_floors = engineLoadDFF ( &amp;quot;models/office_floors.dff&amp;quot;, 0 )&lt;br /&gt;
engineReplaceModel ( dff_floors, 3781 )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Engine_functions}}&lt;/div&gt;</summary>
		<author><name>Strix</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=EngineLoadTXD&amp;diff=44740</id>
		<title>EngineLoadTXD</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=EngineLoadTXD&amp;diff=44740"/>
		<updated>2015-02-26T07:15:00Z</updated>

		<summary type="html">&lt;p&gt;Strix: This function automatically determines raw data&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{Note box|Please note the loading order that is used in the examples as other orders can cause collisions, textures or the DFF not to load due to technical limitations}}&lt;br /&gt;
&lt;br /&gt;
This function loads a RenderWare Texture Dictionary (TXD) file into GTA. The texture dictionary can then be used to provide textures.&lt;br /&gt;
&lt;br /&gt;
This is a client side function. Be sure to transfer your TXD file by including it in the meta file.&lt;br /&gt;
&lt;br /&gt;
See here for [[Optimize_Custom_TXD|tips on reducing the size of TXD files]].&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
txd engineLoadTXD ( string txd_file [, bool filteringEnabled = true ] ) &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
[[Image:Filtering.jpg|thumb|Difference between texture filtering modes (left = filtering disabled, right = filtering enabled).|284x230px]]&lt;br /&gt;
{{OOP||[[TXD|EngineTXD]]}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''txd_file:''' The [[filepath]] to the txd file you want to load&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
*'''filteringEnabled:''' Whether to enable texture filtering.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a [[TXD]] if the file was loaded, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
{{New feature/item|3.0150|1.4.1|7088|&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
txd engineLoadTXD ( string txd_file / string raw_data [, bool filteringEnabled = true ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''txd_file / raw_data:''' The [[filepath]] to the TXD file you want to load or whole data buffer of the TXD file.&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
*'''filteringEnabled:''' Whether to enable texture filtering.&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a [[TXD]] if the file was loaded, ''false'' otherwise.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
'''Example 1:''' This example loads a combination of a custom DFF and TXD file to replace the Euros vehicle in-game. The collisions are embedded inside the DFF file.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
outputChatBox ( &amp;quot;&amp;gt; replacing the euros vehicle&amp;quot; )&lt;br /&gt;
&lt;br /&gt;
txd = engineLoadTXD ( &amp;quot;data/euros.txd&amp;quot; )&lt;br /&gt;
engineImportTXD ( txd, 587 )&lt;br /&gt;
dff = engineLoadDFF ( &amp;quot;data/euros.dff&amp;quot;, 0 )&lt;br /&gt;
engineReplaceModel ( dff, 587 )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Example 2:''' This example loads a combination of custom COL, TXD and DFF files to replace an in-game model of a set of floors.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
outputChatBox ( &amp;quot;&amp;gt; loading floor objects&amp;quot; )&lt;br /&gt;
col_floors = engineLoadCOL ( &amp;quot;models/office_floors.col&amp;quot; )&lt;br /&gt;
engineReplaceCOL ( col_floors, 3781 )&lt;br /&gt;
txd_floors = engineLoadTXD ( &amp;quot;models/office_floors.txd&amp;quot; )&lt;br /&gt;
engineImportTXD ( txd_floors, 3781 )&lt;br /&gt;
dff_floors = engineLoadDFF ( &amp;quot;models/office_floors.dff&amp;quot;, 0 )&lt;br /&gt;
engineReplaceModel ( dff_floors, 3781 )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Engine_functions}}&lt;/div&gt;</summary>
		<author><name>Strix</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=EngineLoadDFF&amp;diff=44739</id>
		<title>EngineLoadDFF</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=EngineLoadDFF&amp;diff=44739"/>
		<updated>2015-02-26T07:13:16Z</updated>

		<summary type="html">&lt;p&gt;Strix: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{Note box|Please note the loading order that is used in the examples as other orders can cause collisions, textures or the DFF not to load due to technical limitations}}&lt;br /&gt;
&lt;br /&gt;
This function loads a RenderWare Model (DFF) file into GTA.&lt;br /&gt;
&lt;br /&gt;
* To successfully load vehicle models, it is necessary to pass the vehicle model id to the function so any embedded DFF extensions (such as collisions) will be loaded correctly.&lt;br /&gt;
* To successfully load your model with textures, be sure to use [[engineLoadTXD]] and [[engineImportTXD]] before calling this function.&lt;br /&gt;
&lt;br /&gt;
This is a client side function. Be sure to transfer your DFF file by including it in the meta file.&lt;br /&gt;
&lt;br /&gt;
The returned [[DFF]] element is an element in the element tree, just like vehicles and objects. When the dff is destroyed, ie on resource unload or using [[destroyElement]], any elements that use the DFF, such as vehicles or objects will be reset.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
dff engineLoadDFF ( string dff_file, int model_id ) &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[DFF|EngineDFF]]}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''dff_file:''' The [[filepath]] to the DFF file you want to load&lt;br /&gt;
*'''model_id:''' The model id that should be associated with the dff. (This value is ignored after 1.3.1 and can be set to zero for all models)&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a [[DFF]] element if the dff file loaded, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
{{New feature/item|3.0150|1.4.1|7088|&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
dff engineLoadDFF ( string dff_file / string raw_data )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''dff_file / raw_data:''' The [[filepath]] to the DFF file you want to load or whole data buffer of the DFF file.&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a [[DFF]] element if the dff file loaded, ''false'' otherwise.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
'''Example 1:''' This example loads a combination of a custom DFF and TXD file to replace the Euros vehicle in-game. The collisions are embedded inside the DFF file.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
outputChatBox ( &amp;quot;&amp;gt; replacing the euros vehicle&amp;quot; )&lt;br /&gt;
&lt;br /&gt;
txd = engineLoadTXD ( &amp;quot;data/euros.txd&amp;quot; )&lt;br /&gt;
engineImportTXD ( txd, 587 )&lt;br /&gt;
dff = engineLoadDFF ( &amp;quot;data/euros.dff&amp;quot;, 0 )&lt;br /&gt;
engineReplaceModel ( dff, 587 )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Example 2:''' This example loads a combination of custom TXD, COL and DFF files to replace an in-game model of a set of floors.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
outputChatBox ( &amp;quot;&amp;gt; loading floor objects&amp;quot; )&lt;br /&gt;
col_floors = engineLoadCOL ( &amp;quot;models/office_floors.col&amp;quot; )&lt;br /&gt;
engineReplaceCOL ( col_floors, 3781 )&lt;br /&gt;
txd_floors = engineLoadTXD ( &amp;quot;models/office_floors.txd&amp;quot; )&lt;br /&gt;
engineImportTXD ( txd_floors, 3781 )&lt;br /&gt;
dff_floors = engineLoadDFF ( &amp;quot;models/office_floors.dff&amp;quot;, 0 )&lt;br /&gt;
engineReplaceModel ( dff_floors, 3781 )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Engine_functions}}&lt;/div&gt;</summary>
		<author><name>Strix</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=EngineLoadDFF&amp;diff=44738</id>
		<title>EngineLoadDFF</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=EngineLoadDFF&amp;diff=44738"/>
		<updated>2015-02-26T07:12:50Z</updated>

		<summary type="html">&lt;p&gt;Strix: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{Note box|Please note the loading order that is used in the examples as other orders can cause collisions, textures or the DFF not to load due to technical limitations}}&lt;br /&gt;
&lt;br /&gt;
This function loads a RenderWare Model (DFF) file into GTA.&lt;br /&gt;
&lt;br /&gt;
* To successfully load vehicle models, it is necessary to pass the vehicle model id to the function so any embedded DFF extensions (such as collisions) will be loaded correctly.&lt;br /&gt;
* To successfully load your model with textures, be sure to use [[engineLoadTXD]] and [[engineImportTXD]] before calling this function.&lt;br /&gt;
&lt;br /&gt;
This is a client side function. Be sure to transfer your DFF file by including it in the meta file.&lt;br /&gt;
&lt;br /&gt;
The returned [[DFF]] element is an element in the element tree, just like vehicles and objects. When the dff is destroyed, ie on resource unload or using [[destroyElement]], any elements that use the DFF, such as vehicles or objects will be reset.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
dff engineLoadDFF ( string dff_file, int model_id ) &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[DFF|EngineDFF]]}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''dff_file:''' The [[filepath]] to the DFF file you want to load&lt;br /&gt;
*'''model_id:''' The model id that should be associated with the dff. (This value is ignored after 1.3.1 and can be set to zero for all models)&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a [[DFF]] element if the dff file loaded, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
{{New feature/item|3.0150|1.4.1|7088|&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
dff engineLoadDFF ( string dff_file / string raw_data, int model_id [, bool is_raw = false ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''dff_file / raw_data:''' The [[filepath]] to the DFF file you want to load or whole data buffer of the DFF file.&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a [[DFF]] element if the dff file loaded, ''false'' otherwise.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
'''Example 1:''' This example loads a combination of a custom DFF and TXD file to replace the Euros vehicle in-game. The collisions are embedded inside the DFF file.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
outputChatBox ( &amp;quot;&amp;gt; replacing the euros vehicle&amp;quot; )&lt;br /&gt;
&lt;br /&gt;
txd = engineLoadTXD ( &amp;quot;data/euros.txd&amp;quot; )&lt;br /&gt;
engineImportTXD ( txd, 587 )&lt;br /&gt;
dff = engineLoadDFF ( &amp;quot;data/euros.dff&amp;quot;, 0 )&lt;br /&gt;
engineReplaceModel ( dff, 587 )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Example 2:''' This example loads a combination of custom TXD, COL and DFF files to replace an in-game model of a set of floors.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
outputChatBox ( &amp;quot;&amp;gt; loading floor objects&amp;quot; )&lt;br /&gt;
col_floors = engineLoadCOL ( &amp;quot;models/office_floors.col&amp;quot; )&lt;br /&gt;
engineReplaceCOL ( col_floors, 3781 )&lt;br /&gt;
txd_floors = engineLoadTXD ( &amp;quot;models/office_floors.txd&amp;quot; )&lt;br /&gt;
engineImportTXD ( txd_floors, 3781 )&lt;br /&gt;
dff_floors = engineLoadDFF ( &amp;quot;models/office_floors.dff&amp;quot;, 0 )&lt;br /&gt;
engineReplaceModel ( dff_floors, 3781 )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Engine_functions}}&lt;/div&gt;</summary>
		<author><name>Strix</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetSoundVolume&amp;diff=44700</id>
		<title>SetSoundVolume</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetSoundVolume&amp;diff=44700"/>
		<updated>2015-02-17T19:14:17Z</updated>

		<summary type="html">&lt;p&gt;Strix: removed unnecessary section&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
This function is used to change the volume level of the specified [[sound]] [[element]].&lt;br /&gt;
Use a player element to control a players voice with this function.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setSoundVolume ( element theSound, float volume )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[sound]]:setVolume|volume|getSoundVolume}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theSound:''' The [[sound]] [[element]] which volume you want to modify.&lt;br /&gt;
*'''volume:''' A [[float]]ing point number representing the desired volume level. Range is from '''0.0''' to '''1.0'''&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the [[sound]] [[element]] volume was successfully changed, ''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;
function wasted (killer, weapon, bodypart)&lt;br /&gt;
        local sound = playSound(&amp;quot;sounds/wasted.mp3&amp;quot;) --Play wasted.mp3 from the sounds folder&lt;br /&gt;
        setSoundVolume(sound, 0.5) -- set the sound volume to 50%&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
addEventHandler(&amp;quot;onClientPlayerWasted&amp;quot;, getLocalPlayer(), wasted) --add the event handler &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.2|Added player element for voice control}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client_audio_functions}}&lt;br /&gt;
[[AR:setSoundVolume]]&lt;/div&gt;</summary>
		<author><name>Strix</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=IsMTAWindowActive&amp;diff=44547</id>
		<title>IsMTAWindowActive</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=IsMTAWindowActive&amp;diff=44547"/>
		<updated>2015-02-11T18:05:33Z</updated>

		<summary type="html">&lt;p&gt;Strix: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
This function returns whether any system windows that take focus are active. This includes:&lt;br /&gt;
* Chatbox input&lt;br /&gt;
* Console window&lt;br /&gt;
* Main menu&lt;br /&gt;
* Transferbox&lt;br /&gt;
To get the status of the debug view, see [[isDebugViewActive]].&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 isMTAWindowActive ()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP|[[GUI_widgets|GuiElement]].isMTAWindowActive|mtaWindowsActive}}&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the focus is on the MTA window, ''false'' if it isn't.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This piece of script will kill a player if he has any of the above system windows open&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function dontAllowAnyOpenWindow ()&lt;br /&gt;
	if isMTAWindowActive ()	then&lt;br /&gt;
		 setElementHealth ( getLocalPlayer(), 0.0 )&lt;br /&gt;
	end	 &lt;br /&gt;
end&lt;br /&gt;
setTimer ( dontAllowAnyOpenWindow, 50, 0 )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
==See Also==&lt;br /&gt;
{{GUI_functions}}&lt;br /&gt;
[[ru:isMTAWindowActive]]&lt;/div&gt;</summary>
		<author><name>Strix</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RU/isMTAWindowActive&amp;diff=44546</id>
		<title>RU/isMTAWindowActive</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RU/isMTAWindowActive&amp;diff=44546"/>
		<updated>2015-02-11T18:04:44Z</updated>

		<summary type="html">&lt;p&gt;Strix: Created page with &amp;quot;__NOTOC__  {{RU/Client function}} Эта функция проверяет, активно ли какое-либо системное окно.  Системные окна: ...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{RU/Client function}}&lt;br /&gt;
Эта функция проверяет, активно ли какое-либо системное окно.&lt;br /&gt;
&lt;br /&gt;
Системные окна:&lt;br /&gt;
* Поле ввода чата&lt;br /&gt;
* Консоль&lt;br /&gt;
* Главное меню&lt;br /&gt;
* Прогресс передачи&lt;br /&gt;
Чтобы проверить состояние отладчика, смотрите [[isDebugViewActive]].&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 isMTAWindowActive ()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{RU/OOP|[[GUI_widgets|GuiElement]].isMTAWindowActive|mtaWindowsActive}}&lt;br /&gt;
&lt;br /&gt;
===Возвращает===&lt;br /&gt;
* ''true'', если какое-либо из MTA окон активно;&lt;br /&gt;
* ''false'', если это не так.&lt;br /&gt;
&lt;br /&gt;
==Пример== &lt;br /&gt;
Этот код убивает игрока, если он откроет какое-либо системное окно.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function dontAllowAnyOpenWindow ()&lt;br /&gt;
	if isMTAWindowActive ()	then&lt;br /&gt;
		 setElementHealth ( getLocalPlayer(), 0.0 )&lt;br /&gt;
	end	 &lt;br /&gt;
end&lt;br /&gt;
setTimer ( dontAllowAnyOpenWindow, 50, 0 )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Смотрите также==&lt;br /&gt;
{{RU/GUI_functions}}&lt;br /&gt;
[[en:isMTAWindowActive]]&lt;/div&gt;</summary>
		<author><name>Strix</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=IsMTAWindowActive&amp;diff=44545</id>
		<title>IsMTAWindowActive</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=IsMTAWindowActive&amp;diff=44545"/>
		<updated>2015-02-11T17:57:06Z</updated>

		<summary type="html">&lt;p&gt;Strix: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
This function returns whether any system windows that take focus are active. This includes:&lt;br /&gt;
* Chatbox input&lt;br /&gt;
* Console window&lt;br /&gt;
* Main menu&lt;br /&gt;
* Transferbox&lt;br /&gt;
To get the status of the debug view, see [[isDebugViewActive]].&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 isMTAWindowActive ()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP|[[GUI_widgets|GuiElement]].isMTAWindowActive|mtaWindowsActive}}&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the focus is on the MTA window, ''false'' if it isn't.&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;
This piece of script will kill a player if he has any of the above system windows open&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function dontAllowAnyOpenWindow ()&lt;br /&gt;
	if isMTAWindowActive ()	then&lt;br /&gt;
		 setElementHealth ( getLocalPlayer(), 0.0 )&lt;br /&gt;
	end	 &lt;br /&gt;
end&lt;br /&gt;
setTimer ( dontAllowAnyOpenWindow, 50, 0 )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
==See Also==&lt;br /&gt;
{{GUI_functions}}&lt;br /&gt;
[[ru:isMTAWindowActive]]&lt;/div&gt;</summary>
		<author><name>Strix</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiCreateButton&amp;diff=44544</id>
		<title>GuiCreateButton</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiCreateButton&amp;diff=44544"/>
		<updated>2015-02-11T17:53:28Z</updated>

		<summary type="html">&lt;p&gt;Strix: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
This function allows creation of a GUI Button, which is a clickable item as part of GUI.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element guiCreateButton ( float x, float y, float width, float height, string text, bool relative, [ element parent = nil ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[Element/GUI/Button|GuiButton]]}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
[[Image:Button.png|thumb|GUI Test Button]]&lt;br /&gt;
*'''x:''' A float of the 2D x position of the GUI button on a player's screen.  This is affected by the ''relative'' argument.&lt;br /&gt;
*'''y:''' A float of the 2D y position of the GUI button on a player's screen. This is affected by the ''relative'' argument.&lt;br /&gt;
*'''width:''' A float of the width of the GUI button. This is affected by the ''relative'' argument.&lt;br /&gt;
*'''height:''' A float of the height of the GUI button. This is affected by the ''relative'' argument.&lt;br /&gt;
*'''text:''' A string of the text that will be displayed as a label on the button.&lt;br /&gt;
*'''relative:''' This is whether sizes and positioning are relative.  If this is ''true'', then all ''x, y, width'' and ''height'' floats must be between 0 and 1, representing sizes relative to the parent.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}} &lt;br /&gt;
*'''parent:''' This is the parent that the gui button is attached to.  If the ''relative'' argument is true, sizes and positioning will be made relative to this parent. If the ''relative'' argument is false, positioning will be the number of offset pixels from the parent's origin. If no parent is passed, the parent will become the screen - causing positioning and sizing according to screen positioning.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns an [[element]] of the created [[Element/GUI/Button|button]] if it was successfully created, false otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example creates an edit box alongside an &amp;quot;Output!&amp;quot; button.  When the button is clicked, it will output the message in the edit box into the Chat Box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
--create our button&lt;br /&gt;
button = guiCreateButton( 0.7, 0.1, 0.2, 0.1, &amp;quot;Output!&amp;quot;, true )&lt;br /&gt;
--Create an edit box and define it as &amp;quot;editBox&amp;quot;.&lt;br /&gt;
editBox = guiCreateEdit( 0.3, 0.1, 0.4, 0.1, &amp;quot;Type your message here!&amp;quot;, true )&lt;br /&gt;
-- and attach our button to the outputEditBox function&lt;br /&gt;
addEventHandler ( &amp;quot;onClientGUIClick&amp;quot;, editBox, outputEditBox )&lt;br /&gt;
guiEditSetMaxLength ( editBox, 128 ) --the max chatbox length is 128, so force this&lt;br /&gt;
&lt;br /&gt;
--setup our function to output the message to the chatbox&lt;br /&gt;
function outputEditBox ()&lt;br /&gt;
        local text = guiGetText ( editBox )--get the text from the edit box&lt;br /&gt;
        outputChatBox ( text ) --output that text&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onClientGUIClick&amp;quot;, button, outputEditBox )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{GUI_functions}}&lt;br /&gt;
[[ru:guiCreateButton]]&lt;/div&gt;</summary>
		<author><name>Strix</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RU/guiCreateButton&amp;diff=44543</id>
		<title>RU/guiCreateButton</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RU/guiCreateButton&amp;diff=44543"/>
		<updated>2015-02-11T17:49:58Z</updated>

		<summary type="html">&lt;p&gt;Strix: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{RU/Client function}}&lt;br /&gt;
Эта функция позволяет создавать GUI кнопки.&lt;br /&gt;
&lt;br /&gt;
==Синтаксис== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element guiCreateButton ( float x, float y, float width, float height, string text, bool relative, [ element parent = nil ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{RU/OOP||[[Element/GUI/Button|GuiButton]]}}&lt;br /&gt;
&lt;br /&gt;
===Обязательные аргументы=== &lt;br /&gt;
[[Image:Button.png|thumb|Пример кнопки.]]&lt;br /&gt;
*'''x:''' Позиция GUI кнопки по оси X на экране игрока. Зависит от аргумента ''relative''.&lt;br /&gt;
*'''y:''' Позиция GUI кнопки по оси Y на экране игрока. Зависит от аргумента ''relative''.&lt;br /&gt;
*'''width:''' Ширина GUI кнопки. Зависит от аргумента ''relative''.&lt;br /&gt;
*'''height:''' Высота GUI кнопки. Зависит от аргумента ''relative''.&lt;br /&gt;
*'''text:''' Текст, который будет отображаться на кнопке.&lt;br /&gt;
*'''relative:''' Определяет, относительны ли позиция и размер. Если указано ''true'', то значения аргументов ''x, y, width'' и ''height'' должны быть между 0 и 1, относительны к размеру родителя.&lt;br /&gt;
&lt;br /&gt;
===Необязательные аргументы=== &lt;br /&gt;
{{RU/OptionalArg}} &lt;br /&gt;
*'''parent:''' Родитель, к которому прикреплена GUI кнопка.  Если значение аргумента ''relative'' – ''true'', размеры и позиция будут относительны к родителю. Если ''relative'' – ''false'', позиция кнопки будет количеством пикселей от позиции родителя. Если родитель не был указан, родителем станет сам экран – соответственно позиция и размеры будут относительны ему.&lt;br /&gt;
&lt;br /&gt;
===Возвращает===&lt;br /&gt;
[[Элемент]] созданной кнопки, если она была успешно создана, иначе ''false''.&lt;br /&gt;
&lt;br /&gt;
==Пример== &lt;br /&gt;
Данный пример создаёт поле ввода рядом с кнопкой &amp;quot;Отправить!&amp;quot;. При нажатии на кнопку, сообщение из поля ввода выводится в чат.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- создадим нашу кнопку&lt;br /&gt;
button = guiCreateButton( 0.7, 0.1, 0.2, 0.1, &amp;quot;Отправить!&amp;quot;, true )&lt;br /&gt;
-- создадим поле ввода и определим его как &amp;quot;editBox&amp;quot;.&lt;br /&gt;
editBox = guiCreateEdit( 0.3, 0.1, 0.4, 0.1, &amp;quot;Введите своё сообщение здесь!&amp;quot;, true )&lt;br /&gt;
-- прикрепим нашу кнопку к функции outputEditBox&lt;br /&gt;
addEventHandler ( &amp;quot;onClientGUIClick&amp;quot;, editBox, outputEditBox )&lt;br /&gt;
guiEditSetMaxLength ( editBox, 128 ) -- максимальная длина сообщения в чате 128, поэтому ограничим поле ввода&lt;br /&gt;
&lt;br /&gt;
--настроим нашу функцию так, чтобы она отправляла сообщения в чат&lt;br /&gt;
function outputEditBox ()&lt;br /&gt;
        local text = guiGetText ( editBox ) -- получим текст из поля ввода&lt;br /&gt;
        outputChatBox ( text ) -- выводим этот текст&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onClientGUIClick&amp;quot;, button, outputEditBox )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Смотрите также==&lt;br /&gt;
{{RU/GUI_functions}}&lt;br /&gt;
[[en:guiCreateButton]]&lt;/div&gt;</summary>
		<author><name>Strix</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:RU/GUI_functions&amp;diff=44542</id>
		<title>Template:RU/GUI functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:RU/GUI_functions&amp;diff=44542"/>
		<updated>2015-02-11T17:48:31Z</updated>

		<summary type="html">&lt;p&gt;Strix: /* Кнопки */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
* [[getChatboxLayout]]&lt;br /&gt;
* [[guiBringToFront]]&lt;br /&gt;
* [[guiCreateFont]]&lt;br /&gt;
* [[guiGetAlpha]]&lt;br /&gt;
* [[guiGetEnabled]]&lt;br /&gt;
* [[guiGetFont]]&lt;br /&gt;
* [[guiGetInputEnabled]]&lt;br /&gt;
* [[guiGetInputMode]]&lt;br /&gt;
* [[guiGetPosition]]&lt;br /&gt;
* [[guiGetProperties]]&lt;br /&gt;
* [[guiGetProperty]]&lt;br /&gt;
* [[guiGetScreenSize]]&lt;br /&gt;
* [[guiGetSize]]&lt;br /&gt;
* [[guiGetText]]&lt;br /&gt;
* [[guiGetVisible]]&lt;br /&gt;
* [[guiMoveToBack]]&lt;br /&gt;
* [[guiSetAlpha]]&lt;br /&gt;
* [[guiSetEnabled]]&lt;br /&gt;
* [[guiSetFont]]&lt;br /&gt;
* [[guiSetInputEnabled]]&lt;br /&gt;
* [[guiSetInputMode]]&lt;br /&gt;
* [[guiSetPosition]]&lt;br /&gt;
* [[guiSetProperty]]&lt;br /&gt;
* [[guiSetSize]]&lt;br /&gt;
* [[guiSetText]]&lt;br /&gt;
* [[guiSetVisible]]&lt;br /&gt;
* [[isChatBoxInputActive]]&lt;br /&gt;
* [[isConsoleActive]]&lt;br /&gt;
* [[isDebugViewActive]]&lt;br /&gt;
* [[isMainMenuActive]]&lt;br /&gt;
* [[isMTAWindowActive]]&lt;br /&gt;
* [[isTransferBoxActive]]&lt;br /&gt;
&lt;br /&gt;
===Кнопки===&lt;br /&gt;
* [[RU/guiCreateButton|guiCreateButton]]&lt;br /&gt;
&lt;br /&gt;
===Флажки===&lt;br /&gt;
* [[guiCheckBoxGetSelected]]&lt;br /&gt;
* [[guiCheckBoxSetSelected]]&lt;br /&gt;
* [[guiCreateCheckBox]]&lt;br /&gt;
&lt;br /&gt;
===Списки===&lt;br /&gt;
* [[guiCreateComboBox]]&lt;br /&gt;
* [[guiComboBoxAddItem]]&lt;br /&gt;
* [[guiComboBoxClear]]&lt;br /&gt;
* [[guiComboBoxGetItemText]]&lt;br /&gt;
* [[guiComboBoxSetItemText]]&lt;br /&gt;
* [[guiComboBoxRemoveItem]]&lt;br /&gt;
* [[guiComboBoxGetSelected]]&lt;br /&gt;
* [[guiComboBoxSetSelected]]&lt;br /&gt;
&lt;br /&gt;
===Редактируемые поля===&lt;br /&gt;
* [[guiCreateEdit]]&lt;br /&gt;
* [[guiEditSetMasked]]&lt;br /&gt;
* [[guiEditSetMaxLength]]&lt;br /&gt;
* [[guiEditSetReadOnly]]&lt;br /&gt;
* [[guiEditSetCaretIndex]]&lt;br /&gt;
{{New feature/item|3.0135|1.3.5|6054|&lt;br /&gt;
* [[guiEditGetCaretIndex]]&lt;br /&gt;
}}&lt;br /&gt;
===Таблицы===&lt;br /&gt;
* [[guiCreateGridList]]&lt;br /&gt;
* [[guiGridListAddColumn]]&lt;br /&gt;
* [[guiGridListAddRow]]&lt;br /&gt;
* [[guiGridListAutoSizeColumn]]&lt;br /&gt;
* [[guiGridListClear]]&lt;br /&gt;
* [[guiGridListGetItemData]]&lt;br /&gt;
* [[guiGridListGetItemText]]&lt;br /&gt;
* [[guiGridListGetRowCount]]&lt;br /&gt;
* [[guiGridListGetSelectedItem]]&lt;br /&gt;
* [[guiGridListInsertRowAfter]]&lt;br /&gt;
* [[guiGridListRemoveColumn]]&lt;br /&gt;
* [[guiGridListRemoveRow]]&lt;br /&gt;
* [[guiGridListSetItemData]]&lt;br /&gt;
* [[guiGridListSetItemText]]&lt;br /&gt;
* [[guiGridListSetScrollBars]]&lt;br /&gt;
* [[guiGridListSetSelectedItem]]&lt;br /&gt;
* [[guiGridListSetSelectionMode]]&lt;br /&gt;
* [[guiGridListSetSortingEnabled]]&lt;br /&gt;
* [[guiGridListGetSelectedCount]]&lt;br /&gt;
* [[guiGridListGetSelectedItems]]&lt;br /&gt;
* [[guiGridListSetColumnWidth]]&lt;br /&gt;
* [[guiGridListGetColumnCount]]&lt;br /&gt;
* [[guiGridListGetItemColor]]&lt;br /&gt;
* [[guiGridListSetItemColor]]&lt;br /&gt;
{{New feature/item|3.0132|1.3.1|4944|&lt;br /&gt;
* [[guiGridListGetColumnTitle]]&lt;br /&gt;
* [[guiGridListSetColumnTitle]]&lt;br /&gt;
}}&lt;br /&gt;
{{New feature/item|3.0132|1.3.1|5087|&lt;br /&gt;
* [[guiGridListGetHorizontalScrollPosition]]&lt;br /&gt;
* [[guiGridListSetHorizontalScrollPosition]]&lt;br /&gt;
* [[guiGridListGetVerticalScrollPosition]]&lt;br /&gt;
* [[guiGridListSetVerticalScrollPosition]]&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
===Памятки===&lt;br /&gt;
* [[guiCreateMemo]]&lt;br /&gt;
* [[guiMemoSetReadOnly]]&lt;br /&gt;
* [[guiMemoSetCaretIndex]]&lt;br /&gt;
{{New feature/item|3.0135|1.3.5|6054|&lt;br /&gt;
* [[guiMemoGetCaretIndex]]&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
===Прогресс бары===&lt;br /&gt;
* [[guiCreateProgressBar]]&lt;br /&gt;
* [[guiProgressBarGetProgress]]&lt;br /&gt;
* [[guiProgressBarSetProgress]]&lt;br /&gt;
&lt;br /&gt;
===Переключатели===&lt;br /&gt;
* [[guiCreateRadioButton]]&lt;br /&gt;
* [[guiRadioButtonGetSelected]]&lt;br /&gt;
* [[guiRadioButtonSetSelected]]&lt;br /&gt;
&lt;br /&gt;
===Полосы прокрутки===&lt;br /&gt;
* [[guiCreateScrollBar]]&lt;br /&gt;
* [[guiScrollBarGetScrollPosition]]&lt;br /&gt;
* [[guiScrollBarSetScrollPosition]]&lt;br /&gt;
&lt;br /&gt;
===Панели прокрутки===&lt;br /&gt;
* [[guiCreateScrollPane]]&lt;br /&gt;
* [[guiScrollPaneGetHorizontalScrollPosition]]&lt;br /&gt;
* [[guiScrollPaneGetVerticalScrollPosition]]&lt;br /&gt;
* [[guiScrollPaneSetHorizontalScrollPosition]]&lt;br /&gt;
* [[guiScrollPaneSetScrollBars]]&lt;br /&gt;
* [[guiScrollPaneSetVerticalScrollPosition]]&lt;br /&gt;
&lt;br /&gt;
===Статические изображения===&lt;br /&gt;
* [[guiCreateStaticImage]]&lt;br /&gt;
* [[guiStaticImageGetNativeSize]]&lt;br /&gt;
* [[guiStaticImageLoadImage]]&lt;br /&gt;
&lt;br /&gt;
===Панели вкладок===&lt;br /&gt;
* [[guiCreateTabPanel]]&lt;br /&gt;
* [[guiGetSelectedTab]]&lt;br /&gt;
* [[guiSetSelectedTab]]&lt;br /&gt;
&lt;br /&gt;
===Вкладки===&lt;br /&gt;
* [[guiCreateTab]]&lt;br /&gt;
* [[guiDeleteTab]]&lt;br /&gt;
&lt;br /&gt;
===Текстовые метки===&lt;br /&gt;
* [[guiCreateLabel]]&lt;br /&gt;
* [[guiLabelGetFontHeight]]&lt;br /&gt;
* [[guiLabelGetTextExtent]]&lt;br /&gt;
* [[guiLabelSetColor]]&lt;br /&gt;
* [[guiLabelSetHorizontalAlign]]&lt;br /&gt;
* [[guiLabelSetVerticalAlign]]&lt;br /&gt;
{{New feature/item|3.0132|1.3.1|4670|&lt;br /&gt;
* [[guiLabelGetColor]]&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
===Окна===&lt;br /&gt;
* [[guiCreateWindow]]&lt;br /&gt;
* [[guiWindowSetMovable]]&lt;br /&gt;
* [[guiWindowSetSizable]]&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>Strix</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiCreateButton&amp;diff=44541</id>
		<title>GuiCreateButton</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiCreateButton&amp;diff=44541"/>
		<updated>2015-02-11T17:46:34Z</updated>

		<summary type="html">&lt;p&gt;Strix: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
This function allows creation of a GUI Button, which is a clickable item as part of GUI.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element guiCreateButton ( float x, float y, float width, float height, string text, bool relative, [ element parent = nil ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[Element/GUI/Button|GuiButton]]}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
[[Image:Button.png|thumb|GUI Test Button]]&lt;br /&gt;
*'''x:''' A float of the 2D x position of the GUI button on a player's screen.  This is affected by the ''relative'' argument.&lt;br /&gt;
*'''y:''' A float of the 2D y position of the GUI button on a player's screen. This is affected by the ''relative'' argument.&lt;br /&gt;
*'''width:''' A float of the width of the GUI button. This is affected by the ''relative'' argument.&lt;br /&gt;
*'''height:''' A float of the height of the GUI button. This is affected by the ''relative'' argument.&lt;br /&gt;
*'''text:''' A string of the text that will be displayed as a label on the button.&lt;br /&gt;
*'''relative:''' This is whether sizes and positioning are relative.  If this is ''true'', then all x,y,width,height floats must be between 0 and 1, representing sizes relative to the parent.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Only include this section below if there are optional arguments --&amp;gt;&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}} &lt;br /&gt;
*'''parent:''' This is the parent that the gui button is attached to.  If the ''relative'' argument is true, sizes and positioning will be made relative to this parent. If the ''relative'' argument is false, positioning will be the number of offset pixels from the parent's origin. If no parent is passed, the parent will become the screen - causing positioning and sizing according to screen positioning.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns an element of the created button if it was successfully created, false otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example creates an edit box alongside an &amp;quot;Output!&amp;quot; button.  When the button is clicked, it will output the message in the edit box into the Chat Box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
--create our button&lt;br /&gt;
button = guiCreateButton( 0.7, 0.1, 0.2, 0.1, &amp;quot;Output!&amp;quot;, true )&lt;br /&gt;
--Create an edit box and define it as &amp;quot;editBox&amp;quot;.&lt;br /&gt;
editBox = guiCreateEdit( 0.3, 0.1, 0.4, 0.1, &amp;quot;Type your message here!&amp;quot;, true )&lt;br /&gt;
-- and attach our button to the outputEditBox function&lt;br /&gt;
addEventHandler ( &amp;quot;onClientGUIClick&amp;quot;, editBox, outputEditBox )&lt;br /&gt;
guiEditSetMaxLength ( editBox, 128 ) --the max chatbox length is 128, so force this&lt;br /&gt;
&lt;br /&gt;
--setup our function to output the message to the chatbox&lt;br /&gt;
function outputEditBox ()&lt;br /&gt;
        local text = guiGetText ( editBox )--get the text from the edit box&lt;br /&gt;
        outputChatBox ( text ) --output that text&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onClientGUIClick&amp;quot;, button, outputEditBox )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{GUI_functions}}&lt;br /&gt;
[[ru:guiCreateButton]]&lt;/div&gt;</summary>
		<author><name>Strix</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RU/guiCreateButton&amp;diff=44540</id>
		<title>RU/guiCreateButton</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RU/guiCreateButton&amp;diff=44540"/>
		<updated>2015-02-11T17:46:22Z</updated>

		<summary type="html">&lt;p&gt;Strix: Created page with &amp;quot;__NOTOC__  {{RU/Client function}} Эта функция позволяет создавать GUI кнопки.  ==Синтаксис==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; element guiCreateButton ...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{RU/Client function}}&lt;br /&gt;
Эта функция позволяет создавать GUI кнопки.&lt;br /&gt;
&lt;br /&gt;
==Синтаксис== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element guiCreateButton ( float x, float y, float width, float height, string text, bool relative, [ element parent = nil ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{RU/OOP||[[Element/GUI/Button|GuiButton]]}}&lt;br /&gt;
&lt;br /&gt;
===Обязательные аргументы=== &lt;br /&gt;
[[Image:Button.png|thumb|Пример кнопки.]]&lt;br /&gt;
*'''x:''' Позиция GUI кнопки по оси X на экране игрока. Зависит от аргумента ''relative''.&lt;br /&gt;
*'''y:''' Позиция GUI кнопки по оси Y на экране игрока. Зависит от аргумента ''relative''.&lt;br /&gt;
*'''width:''' Ширина GUI кнопки. Зависит от аргумента ''relative''.&lt;br /&gt;
*'''height:''' Высота GUI кнопки. Зависит от аргумента ''relative''.&lt;br /&gt;
*'''text:''' Текст, который будет отображаться на кнопке.&lt;br /&gt;
*'''relative:''' Определяет, относительны ли позиция и размер. Если указано ''true'', то значения аргументов ''x, y, width'' и ''height'' должны быть между 0 и 1, относительны к размеру родителя.&lt;br /&gt;
&lt;br /&gt;
===Необязательные аргументы=== &lt;br /&gt;
{{RU/OptionalArg}} &lt;br /&gt;
*'''parent:''' Родитель, к которому прикреплена GUI кнопка.  Если значение аргумента ''relative'' – ''true'', размеры и позиция будут относительны к родителю. Если ''relative'' – ''false'', позиция кнопки будет количеством пикселей от позиции родителя. Если родитель не был указан, родителем станет сам экран – соответственно позиция и размеры будут относительны ему.&lt;br /&gt;
&lt;br /&gt;
===Возвращает===&lt;br /&gt;
[[Элемент]] созданной кнопки, если она была успешно создана, иначе ''false''.&lt;br /&gt;
&lt;br /&gt;
==Пример== &lt;br /&gt;
Данный пример создаёт поле ввода рядом с кнопкой &amp;quot;Отправить!&amp;quot;. При нажатии на кнопку, сообщение из поля ввода выводится в чат.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- создадим нашу кнопку&lt;br /&gt;
button = guiCreateButton( 0.7, 0.1, 0.2, 0.1, &amp;quot;Отправить!&amp;quot;, true )&lt;br /&gt;
-- создадим поле ввода и определим его как &amp;quot;editBox&amp;quot;.&lt;br /&gt;
editBox = guiCreateEdit( 0.3, 0.1, 0.4, 0.1, &amp;quot;Введите своё сообщение здесь!&amp;quot;, true )&lt;br /&gt;
-- прикрепим нашу кнопку к функции outputEditBox&lt;br /&gt;
addEventHandler ( &amp;quot;onClientGUIClick&amp;quot;, editBox, outputEditBox )&lt;br /&gt;
guiEditSetMaxLength ( editBox, 128 ) -- максимальная длина сообщения в чате 128, поэтому ограничим поле ввода&lt;br /&gt;
&lt;br /&gt;
--настроим нашу функцию так, чтобы она отправляла сообщения в чат&lt;br /&gt;
function outputEditBox ()&lt;br /&gt;
        local text = guiGetText ( editBox ) -- получим текст с поля ввода&lt;br /&gt;
        outputChatBox ( text ) -- выводим этот текст&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onClientGUIClick&amp;quot;, button, outputEditBox )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Смотрите также==&lt;br /&gt;
{{RU/GUI_functions}}&lt;br /&gt;
[[en:guiCreateButton]]&lt;/div&gt;</summary>
		<author><name>Strix</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiCreateButton&amp;diff=44539</id>
		<title>GuiCreateButton</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiCreateButton&amp;diff=44539"/>
		<updated>2015-02-11T17:43:33Z</updated>

		<summary type="html">&lt;p&gt;Strix: Added OOP syntax and link to the ru page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
This function allows creation of a GUI Button, which is a clickable item as part of GUI.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element guiCreateButton ( float x, float y, float width, float height, string text, bool relative, [ element parent = nil ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||GuiButton}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
[[Image:Button.png|thumb|GUI Test Button]]&lt;br /&gt;
*'''x:''' A float of the 2D x position of the GUI button on a player's screen.  This is affected by the ''relative'' argument.&lt;br /&gt;
*'''y:''' A float of the 2D y position of the GUI button on a player's screen. This is affected by the ''relative'' argument.&lt;br /&gt;
*'''width:''' A float of the width of the GUI button. This is affected by the ''relative'' argument.&lt;br /&gt;
*'''height:''' A float of the height of the GUI button. This is affected by the ''relative'' argument.&lt;br /&gt;
*'''text:''' A string of the text that will be displayed as a label on the button.&lt;br /&gt;
*'''relative:''' This is whether sizes and positioning are relative.  If this is ''true'', then all x,y,width,height floats must be between 0 and 1, representing sizes relative to the parent.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Only include this section below if there are optional arguments --&amp;gt;&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}} &lt;br /&gt;
*'''parent:''' This is the parent that the gui button is attached to.  If the ''relative'' argument is true, sizes and positioning will be made relative to this parent. If the ''relative'' argument is false, positioning will be the number of offset pixels from the parent's origin. If no parent is passed, the parent will become the screen - causing positioning and sizing according to screen positioning.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns an element of the created button if it was successfully created, false otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example creates an edit box alongside an &amp;quot;Output!&amp;quot; button.  When the button is clicked, it will output the message in the edit box into the Chat Box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
--create our button&lt;br /&gt;
button = guiCreateButton( 0.7, 0.1, 0.2, 0.1, &amp;quot;Output!&amp;quot;, true )&lt;br /&gt;
--Create an edit box and define it as &amp;quot;editBox&amp;quot;.&lt;br /&gt;
editBox = guiCreateEdit( 0.3, 0.1, 0.4, 0.1, &amp;quot;Type your message here!&amp;quot;, true )&lt;br /&gt;
-- and attach our button to the outputEditBox function&lt;br /&gt;
addEventHandler ( &amp;quot;onClientGUIClick&amp;quot;, editBox, outputEditBox )&lt;br /&gt;
guiEditSetMaxLength ( editBox, 128 ) --the max chatbox length is 128, so force this&lt;br /&gt;
&lt;br /&gt;
--setup our function to output the message to the chatbox&lt;br /&gt;
function outputEditBox ()&lt;br /&gt;
        local text = guiGetText ( editBox )--get the text from the edit box&lt;br /&gt;
        outputChatBox ( text ) --output that text&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onClientGUIClick&amp;quot;, button, outputEditBox )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{GUI_functions}}&lt;br /&gt;
[[ru:guiCreateButton]]&lt;/div&gt;</summary>
		<author><name>Strix</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetMarkerType&amp;diff=44466</id>
		<title>SetMarkerType</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetMarkerType&amp;diff=44466"/>
		<updated>2015-02-11T10:11:43Z</updated>

		<summary type="html">&lt;p&gt;Strix: Fix OOP&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function changes a marker's type. The type controls how the marker is displayed in the game. It's important that you use marker types that users are used to from the single player game. For example, checkpoints are used in races, rings are used for aircraft races, arrows are used for entering buildings etc. &lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setMarkerType ( marker theMarker, string markerType )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[Marker]]:setMarkerType|markerType|getMarkerType}}&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
* '''theMarker''': A [[marker]] element referencing the specified marker.&lt;br /&gt;
* '''markerType''': A string denoting the marker type. Valid values are:&lt;br /&gt;
{{Marker types}}&lt;br /&gt;
&lt;br /&gt;
==Returns==&lt;br /&gt;
Returns ''true'' if the marker type was changed, ''false'' if it wasn't or marker values were invalid.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This function changes all existing markers' type to the specified one.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function changeAllMarkersType ( newMarkerType )&lt;br /&gt;
	-- we store a table with all markers&lt;br /&gt;
	local allMarkers = getElementsByType( &amp;quot;marker&amp;quot; )&lt;br /&gt;
	-- for each marker in it,&lt;br /&gt;
	for index, aMarker in ipairs(allMarkers) do&lt;br /&gt;
		-- set its type to the one passed to this function&lt;br /&gt;
		setMarkerType( aMarker, newMarkerType )&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Marker functions}}&lt;/div&gt;</summary>
		<author><name>Strix</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetMarkerType&amp;diff=44465</id>
		<title>GetMarkerType</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetMarkerType&amp;diff=44465"/>
		<updated>2015-02-11T10:10:55Z</updated>

		<summary type="html">&lt;p&gt;Strix: Fix OOP&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function returns a marker's type.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;string getMarkerType ( marker theMarker )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[Marker]]:getMarkerType|markerType|setMarkerType}}&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
* '''theMarker''': A [[marker]] element referencing the specified marker.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
* Returns one of the following strings:&lt;br /&gt;
{{Marker_types}}&lt;br /&gt;
&lt;br /&gt;
If an invalid marker is specified, ''false'' is returned.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client and server&amp;quot; class=&amp;quot;both&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This function creates a default marker at a given position and outputs its type.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function createMarkerAndOutputType ( x, y, z )&lt;br /&gt;
	-- we create the marker&lt;br /&gt;
	local theMarker = createMarker ( x, y, z )&lt;br /&gt;
	-- if the marker was created,&lt;br /&gt;
	if ( theMarker ) then&lt;br /&gt;
		-- then get its type,&lt;br /&gt;
		local markerType = getMarkerType ( theMarker )&lt;br /&gt;
		-- and output it.&lt;br /&gt;
		outputChatBox ( &amp;quot;It's a &amp;quot; .. markerType .. &amp;quot; marker!&amp;quot; )&lt;br /&gt;
	end&lt;br /&gt;
	-- return the created marker element (or false) where this function was called&lt;br /&gt;
	return theMarker&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Marker functions}}&lt;/div&gt;</summary>
		<author><name>Strix</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RU/getEffectDensity&amp;diff=44430</id>
		<title>RU/getEffectDensity</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RU/getEffectDensity&amp;diff=44430"/>
		<updated>2015-02-09T10:43:36Z</updated>

		<summary type="html">&lt;p&gt;Strix: fix syntax&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{RU/Client function}}&lt;br /&gt;
{{New items|3.014|1.4 r6208|&lt;br /&gt;
Получает текущий уровень концентрации (плотности) эффекта.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Синтаксис==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
float getEffectDensity ( effect theEffect )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{RU/OOP||[[effect]]:getDensity|density|setEffectDensity}}&lt;br /&gt;
&lt;br /&gt;
===Обязательные аргументы=== &lt;br /&gt;
*'''theEffect:''' [[Эффект]], плотность которого нужно получить.&lt;br /&gt;
&lt;br /&gt;
===Пример=== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;ges&amp;quot;, &lt;br /&gt;
function (cmd)&lt;br /&gt;
   local x, y, z = getElementPosition (localPlayer)&lt;br /&gt;
   local effect = createEffect (&amp;quot;smoke30lit&amp;quot;, x, y, z)&lt;br /&gt;
   setEffectSpeed (effect, 2)&lt;br /&gt;
   getEffectDensity (effect)&lt;br /&gt;
end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Смотрите также ==&lt;br /&gt;
{{RU/Client_Effects_functions}}&lt;br /&gt;
[[en:getEffectDensity]]&lt;/div&gt;</summary>
		<author><name>Strix</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RU/getEffectDensity&amp;diff=44429</id>
		<title>RU/getEffectDensity</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RU/getEffectDensity&amp;diff=44429"/>
		<updated>2015-02-09T10:42:33Z</updated>

		<summary type="html">&lt;p&gt;Strix: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{RU/Client function}}&lt;br /&gt;
{{New items|3.014|1.4 r6208|&lt;br /&gt;
Получает текущий уровень концентрации (плотности) эффекта.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Синтаксис==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
float getEffectDenstity( effect theEffect )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{RU/OOP||[[effect]]:getDensity|density|setEffectDensity}}&lt;br /&gt;
&lt;br /&gt;
===Обязательные аргументы=== &lt;br /&gt;
*'''theEffect:''' [[Эффект]], плотность которого нужно получить.&lt;br /&gt;
&lt;br /&gt;
===Пример=== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;ges&amp;quot;, &lt;br /&gt;
function (cmd)&lt;br /&gt;
   local x, y, z = getElementPosition (localPlayer)&lt;br /&gt;
   local effect = createEffect (&amp;quot;smoke30lit&amp;quot;, x, y, z)&lt;br /&gt;
   setEffectSpeed (effect, 2)&lt;br /&gt;
   getEffectDensity (effect)&lt;br /&gt;
end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Смотрите также ==&lt;br /&gt;
{{RU/Client_Effects_functions}}&lt;br /&gt;
[[en:getEffectDensity]]&lt;/div&gt;</summary>
		<author><name>Strix</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=ES/AddAccount&amp;diff=44428</id>
		<title>ES/AddAccount</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ES/AddAccount&amp;diff=44428"/>
		<updated>2015-02-09T10:41:54Z</updated>

		<summary type="html">&lt;p&gt;Strix: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
Esta función agrega una cuenta a la lista de cuentas registradas del servidor.&lt;br /&gt;
&lt;br /&gt;
==Sintaxis== &lt;br /&gt;
{{New feature/item|3|1.0|848|&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
account addAccount ( string nombre, string contraseña )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
===Argumentos Requeridos=== &lt;br /&gt;
*'''nombre:''' El nombre de la cuenta que deseas crear, normalmente se hace coincidir con el nombre del jugador(no es obligatorio que coincida).&lt;br /&gt;
*'''contraseña:''' La contraseña con la cual se va a acceder a la cuenta.&lt;br /&gt;
&lt;br /&gt;
===Devuelve===&lt;br /&gt;
{{New feature/item|3|1.0|848|&lt;br /&gt;
Devuelve el elemento ''account'' (cuenta) si la cuenta fue creada satisfactoriamente, ''false'' si la cuenta ya existía o si ocurrió un error.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Ejemplo== &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;
'''Ejemplo 1:''' Esto permite que los jugadores se registren usando el comando /register &amp;lt;contraseña&amp;gt;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function registerPlayer ( source, commandName, password )&lt;br /&gt;
	-- Revisar si el campo de contraseña es válido&lt;br /&gt;
	if ( password ~= &amp;quot;&amp;quot; and password ~= nil ) then&lt;br /&gt;
		-- Crear una cuenta, y guardar la variable cuenta de forma local.&lt;br /&gt;
		local accountAdded = addAccount( getPlayerName(source), password )&lt;br /&gt;
		if ( accountAdded ) then&lt;br /&gt;
			-- Si todo funcionó, entonces al jugador se le anuncia.&lt;br /&gt;
			outputChatBox ( &amp;quot;Gracias, &amp;quot; .. getPlayerName(source) .. &amp;quot;, ahora que estas registrado, logueate con /login&amp;quot;, source )&lt;br /&gt;
		else&lt;br /&gt;
			-- Si algo salió mal, al jugador se le anuncia también.&lt;br /&gt;
			outputChatBox ( &amp;quot;Error creando cuenta, contacta al administrador del servidor.&amp;quot;, source )&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		-- Si hubo error en el sintaxis, anunciarlo también.&lt;br /&gt;
		outputChatBox ( &amp;quot;Error creando cuenta, sintaxis correcto: /register &amp;lt;contrasena&amp;gt;&amp;quot;, source )&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;register&amp;quot;, registerPlayer ) -- Agrega un comando para registrarse.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''A diferencia del primero, el código siguiente permite a los jugadores crear una cuenta con un nombre distinto a su actual nick.'''&lt;br /&gt;
&lt;br /&gt;
'''Ejemplo 2:''' Esto permite a los jugadores registrarse en el servidor usando el comando /register &amp;lt;nombre&amp;gt; &amp;lt;contraseña&amp;gt;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function registerPlayer ( source, commandName, username, password )&lt;br /&gt;
        if(password ~= &amp;quot;&amp;quot; and password ~= nil and username ~= &amp;quot;&amp;quot; and username ~= nil) then&lt;br /&gt;
                local accountAdded = addAccount(username,password)&lt;br /&gt;
                if(accountAdded) then&lt;br /&gt;
                        outputChatBox(&amp;quot;Gracias, &amp;quot; .. getPlayerName(source) .. &amp;quot;, ahora que estas registrado, logueate con /login&amp;quot;,source)&lt;br /&gt;
                else&lt;br /&gt;
                        outputChatBox(&amp;quot;Error creando cuenta, contacta al administrador del servidor.&amp;quot;,source)&lt;br /&gt;
                end&lt;br /&gt;
        else&lt;br /&gt;
                outputChatBox(&amp;quot;Error creando cuenta, sintaxis correcto: /register &amp;lt;nombre&amp;gt; &amp;lt;contrasena&amp;gt;&amp;quot;,source)&lt;br /&gt;
        end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;register&amp;quot;, registerPlayer ) -- Agrega un comando para registrarse.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Ejemplo 3:''' Este código permite a los jugadores registrarse(crear una cuenta) sólo una sola vez usando /register &amp;lt;nombre&amp;gt; &amp;lt;contraseña&amp;gt;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local bRegisteredOnce = false&lt;br /&gt;
&lt;br /&gt;
function registerPlayer ( source, commandName, username, password )&lt;br /&gt;
        if(password ~= &amp;quot;&amp;quot; and password ~= nil and username ~= &amp;quot;&amp;quot; and username ~= nil and bRegisteredOnce == false) then&lt;br /&gt;
                local accountAdded = addAccount(username,password)&lt;br /&gt;
                if(accountAdded) then&lt;br /&gt;
                        outputChatBox(&amp;quot;Gracias, &amp;quot; .. getPlayerName(source) .. &amp;quot;, ahora que estas registrado, logueate con /login&amp;quot;,source)&lt;br /&gt;
                        bRegisteredOnce = true&lt;br /&gt;
                else&lt;br /&gt;
                        outputChatBox(&amp;quot;Error creando cuenta, contacta al administrador del servidor.&amp;quot;,source)&lt;br /&gt;
                end&lt;br /&gt;
        else&lt;br /&gt;
                if bRegisteredOnce == true then&lt;br /&gt;
                    outputChatBox(&amp;quot;Ya registraste una cuenta en este servidor!&amp;quot;,source)&lt;br /&gt;
                else&lt;br /&gt;
                    outputChatBox(&amp;quot;Error creando cuenta, sintaxis correcto: /register &amp;lt;nombre&amp;gt; &amp;lt;contrasena&amp;gt;&amp;quot;,source)&lt;br /&gt;
                end&lt;br /&gt;
        end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;register&amp;quot;, registerPlayer ) -- Agrega un comando para registrarse.&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Ver También==&lt;br /&gt;
&amp;lt;!-- Change FunctionArea to the area that this function is in on the main function list page, e.g. Server, Player, Vehicle etc --&amp;gt;&lt;br /&gt;
{{Funciones_de_Cuenta}}&lt;br /&gt;
&lt;br /&gt;
[[en:addAccount]]&lt;br /&gt;
[[pl:addAccount]]&lt;br /&gt;
[[ru:addAccount]]&lt;/div&gt;</summary>
		<author><name>Strix</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RU/addAccount&amp;diff=44427</id>
		<title>RU/addAccount</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RU/addAccount&amp;diff=44427"/>
		<updated>2015-02-09T10:41:32Z</updated>

		<summary type="html">&lt;p&gt;Strix: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{RU/Server function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
Данная функция добавляет [[аккаунт]] на сервер.&lt;br /&gt;
&lt;br /&gt;
==Синтаксис== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
account addAccount ( string name, string pass )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{RU/OOP|Данная функция является статической функцией класса Account.|[[Account]].add||}}&lt;br /&gt;
===Обязательные аргументы=== &lt;br /&gt;
*'''name:''' Имя аккаунта, который вы хотите добавить, обычно это имя игрока.&lt;br /&gt;
*'''pass:''' Пароль от аккаунта.&lt;br /&gt;
&lt;br /&gt;
===Возвращает===&lt;br /&gt;
Возвращает [[аккаунт]] или ''false'', если аккаунт уже существует.&lt;br /&gt;
&lt;br /&gt;
===Ограничения===&lt;br /&gt;
*'''name:'''&lt;br /&gt;
** Минимальная длина имени аккаунта - 1 символ.&lt;br /&gt;
** Имена аккаунтов чувствительны к регистру.&lt;br /&gt;
** Имя аккаунта не может быть &amp;quot;*****&amp;quot;&lt;br /&gt;
*'''pass:'''&lt;br /&gt;
** Минимальная длина пароля аккаунта - 1 символ.&lt;br /&gt;
** Максимальная длина пароля аккаунта - 30 символов.&lt;br /&gt;
** Пароль от аккаунта не может быть &amp;quot;*****&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==Пример== &lt;br /&gt;
'''Пример 1:''' Этот пример показывает регистрацию на сервере командой /register &amp;lt;password&amp;gt;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function registerPlayer ( source, commandName, password )&lt;br /&gt;
	-- Проверим не пустой ли пароль&lt;br /&gt;
	if ( password ~= &amp;quot;&amp;quot; and password ~= nil ) then&lt;br /&gt;
		-- Попытаемся добавить учетную запись&lt;br /&gt;
		local accountAdded = addAccount( getPlayerName(source), password )&lt;br /&gt;
		if ( accountAdded ) then&lt;br /&gt;
			--  Сообщим пользователю&lt;br /&gt;
			outputChatBox ( &amp;quot;Спасибо, &amp;quot; .. getPlayerName(source) .. &amp;quot;, теперь вы зарегистрированы, вы можете войти используя /login&amp;quot;, source )&lt;br /&gt;
		else&lt;br /&gt;
			-- Сообщим пользователю то, что он ошибся при вводе&lt;br /&gt;
			outputChatBox ( &amp;quot;Ошибка в создании аккаунта, свяжитесь с администратором.&amp;quot;, source )&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		-- Покажем пользователю как нужно вводить&lt;br /&gt;
		outputChatBox ( &amp;quot;Ошибка в создании аккаунта, правильный синтаксис: /register &amp;lt;пароль&amp;gt;&amp;quot;, source )&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;register&amp;quot;, registerPlayer ) -- создадим команду /register&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
'''Пример 2:''' Этот пример показывает регистрацию на сервере командой /register &amp;lt;password&amp;gt;.&lt;br /&gt;
'''Этот пример отличается от первого тем, что в нем пользователь может задать себе имя.'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function registerPlayer ( source, commandName, username, password )&lt;br /&gt;
        if(password ~= &amp;quot;&amp;quot; and password ~= nil and username ~= &amp;quot;&amp;quot; and username ~= nil) then&lt;br /&gt;
                local accountAdded = addAccount(username,password)&lt;br /&gt;
                if(accountAdded) then&lt;br /&gt;
                        outputChatBox(&amp;quot;Спасибо, &amp;quot; .. getPlayerName(source) .. &amp;quot;, теперь вы зарегистрированы, вы можете войти используя /login&amp;quot;,source)&lt;br /&gt;
                else&lt;br /&gt;
                        outputChatBox(&amp;quot;Ошибка в создании аккаунта, свяжитесь с администратором.&amp;quot;,source)&lt;br /&gt;
                end&lt;br /&gt;
        else&lt;br /&gt;
                outputChatBox(&amp;quot;Ошибка в создании аккаунта, правильный синтаксис: /register &amp;lt;nick&amp;gt; &amp;lt;pass&amp;gt;&amp;quot;,source)&lt;br /&gt;
        end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;register&amp;quot;, registerPlayer ) -- создадим команду /register&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Пример 3:''' Этот пример показывает регистрацию на сервере командой /register &amp;lt;password&amp;gt;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local bRegisteredOnce = false&lt;br /&gt;
&lt;br /&gt;
function registerPlayer ( source, commandName, username, password )&lt;br /&gt;
        if(password ~= &amp;quot;&amp;quot; and password ~= nil and username ~= &amp;quot;&amp;quot; and username ~= nil and bRegisteredOnce == false) then&lt;br /&gt;
                local accountAdded = addAccount(username,password)&lt;br /&gt;
                if(accountAdded) then&lt;br /&gt;
                        outputChatBox(&amp;quot;Спасибо, &amp;quot; .. getPlayerName(source) .. &amp;quot;, теперь вы зарегистрированы, вы можете войти используя /login&amp;quot;,source)&lt;br /&gt;
                        bRegisteredOnce = true&lt;br /&gt;
                else&lt;br /&gt;
                        outputChatBox(&amp;quot;Ошибка в создании аккаунта, свяжитесь с администратором.&amp;quot;,source)&lt;br /&gt;
                end&lt;br /&gt;
        else&lt;br /&gt;
                if bRegisteredOnce == true then&lt;br /&gt;
                    outputChatBox(&amp;quot;Вы уже зарегистрированы на сервере!&amp;quot;,source)&lt;br /&gt;
                else&lt;br /&gt;
                    outputChatBox(&amp;quot;Ошибка в создании аккаунта, правильный синтаксис: /register &amp;lt;nick&amp;gt; &amp;lt;pass&amp;gt;&amp;quot;,source)&lt;br /&gt;
                end&lt;br /&gt;
        end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;register&amp;quot;, registerPlayer ) -- создадим команду /register&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Смотрите также==&lt;br /&gt;
{{RU/Account_functions}}&lt;br /&gt;
&lt;br /&gt;
[[en:addAccount]]&lt;br /&gt;
[[es:addAccount]]&lt;br /&gt;
[[pl:addAccount]]&lt;/div&gt;</summary>
		<author><name>Strix</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RU/addAccount&amp;diff=44426</id>
		<title>RU/addAccount</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RU/addAccount&amp;diff=44426"/>
		<updated>2015-02-09T10:41:06Z</updated>

		<summary type="html">&lt;p&gt;Strix: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{RU/Server function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
Данная функция добавляет [[аккаунт]] на сервер.&lt;br /&gt;
&lt;br /&gt;
==Синтаксис== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
account addAccount ( string name, string pass )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{RU/OOP|Данная функция является статической функцией класса Account.|[[Account]].add||}}&lt;br /&gt;
===Обязательные аргументы=== &lt;br /&gt;
*'''name:''' Имя аккаунта, который вы хотите добавить, обычно это имя игрока.&lt;br /&gt;
*'''pass:''' Пароль от аккаунта.&lt;br /&gt;
&lt;br /&gt;
===Возвращает===&lt;br /&gt;
Возвращает [[аккаунт]] или ''false'', если аккаунт уже существует.&lt;br /&gt;
&lt;br /&gt;
===Ограничения===&lt;br /&gt;
*'''name:'''&lt;br /&gt;
** Минимальная длина имени аккаунта - 1 символ.&lt;br /&gt;
** Имена аккаунтов чувствительны к регистру.&lt;br /&gt;
** Имя аккаунта не может быть &amp;quot;*****&amp;quot;&lt;br /&gt;
*'''pass:'''&lt;br /&gt;
** Минимальная длина пароля аккаунта - 1 символ.&lt;br /&gt;
** Максимальная длина пароля аккаунта - 30 символов.&lt;br /&gt;
** Пароль от аккаунта не может быть &amp;quot;*****&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==Пример== &lt;br /&gt;
'''Пример 1:''' Этот пример показывает регистрацию на сервере командой /register &amp;lt;password&amp;gt;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function registerPlayer ( source, commandName, password )&lt;br /&gt;
	-- Проверим не пустой ли пароль&lt;br /&gt;
	if ( password ~= &amp;quot;&amp;quot; and password ~= nil ) then&lt;br /&gt;
		-- Попытаемся добавить учетную запись&lt;br /&gt;
		local accountAdded = addAccount( getPlayerName(source), password )&lt;br /&gt;
		if ( accountAdded ) then&lt;br /&gt;
			--  Сообщим пользователю&lt;br /&gt;
			outputChatBox ( &amp;quot;Спасибо, &amp;quot; .. getPlayerName(source) .. &amp;quot;, теперь вы зарегистрированы, вы можете войти используя /login&amp;quot;, source )&lt;br /&gt;
		else&lt;br /&gt;
			-- Сообщим пользователю то, что он ошибся при вводе&lt;br /&gt;
			outputChatBox ( &amp;quot;Ошибка в создании аккаунта, свяжитесь с администратором.&amp;quot;, source )&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		-- Покажем пользователю как нужно вводить&lt;br /&gt;
		outputChatBox ( &amp;quot;Ошибка в создании аккаунта, правильный синтаксис: /register &amp;lt;пароль&amp;gt;&amp;quot;, source )&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;register&amp;quot;, registerPlayer ) -- создадим команду /register&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
'''Пример 2:''' Этот пример показывает регистрацию на сервере командой /register &amp;lt;password&amp;gt;.&lt;br /&gt;
'''Этот пример отличается от первого тем, что в нем пользователь может задать себе имя.'''&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function registerPlayer ( source, commandName, username, password )&lt;br /&gt;
        if(password ~= &amp;quot;&amp;quot; and password ~= nil and username ~= &amp;quot;&amp;quot; and username ~= nil) then&lt;br /&gt;
                local accountAdded = addAccount(username,password)&lt;br /&gt;
                if(accountAdded) then&lt;br /&gt;
                        outputChatBox(&amp;quot;Спасибо, &amp;quot; .. getPlayerName(source) .. &amp;quot;, теперь вы зарегистрированы, вы можете войти используя /login&amp;quot;,source)&lt;br /&gt;
                else&lt;br /&gt;
                        outputChatBox(&amp;quot;Ошибка в создании аккаунта, свяжитесь с администратором.&amp;quot;,source)&lt;br /&gt;
                end&lt;br /&gt;
        else&lt;br /&gt;
                outputChatBox(&amp;quot;Ошибка в создании аккаунта, правильный синтаксис: /register &amp;lt;nick&amp;gt; &amp;lt;pass&amp;gt;&amp;quot;,source)&lt;br /&gt;
        end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;register&amp;quot;, registerPlayer ) -- создадим команду /register&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Пример 3:''' Этот пример показывает регистрацию на сервере командой /register &amp;lt;password&amp;gt;.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local bRegisteredOnce = false&lt;br /&gt;
&lt;br /&gt;
function registerPlayer ( source, commandName, username, password )&lt;br /&gt;
        if(password ~= &amp;quot;&amp;quot; and password ~= nil and username ~= &amp;quot;&amp;quot; and username ~= nil and bRegisteredOnce == false) then&lt;br /&gt;
                local accountAdded = addAccount(username,password)&lt;br /&gt;
                if(accountAdded) then&lt;br /&gt;
                        outputChatBox(&amp;quot;Спасибо, &amp;quot; .. getPlayerName(source) .. &amp;quot;, теперь вы зарегистрированы, вы можете войти используя /login&amp;quot;,source)&lt;br /&gt;
                        bRegisteredOnce = true&lt;br /&gt;
                else&lt;br /&gt;
                        outputChatBox(&amp;quot;Ошибка в создании аккаунта, свяжитесь с администратором.&amp;quot;,source)&lt;br /&gt;
                end&lt;br /&gt;
        else&lt;br /&gt;
                if bRegisteredOnce == true then&lt;br /&gt;
                    outputChatBox(&amp;quot;Вы уже зарегистрированы на сервере!&amp;quot;,source)&lt;br /&gt;
                else&lt;br /&gt;
                    outputChatBox(&amp;quot;Ошибка в создании аккаунта, правильный синтаксис: /register &amp;lt;nick&amp;gt; &amp;lt;pass&amp;gt;&amp;quot;,source)&lt;br /&gt;
                end&lt;br /&gt;
        end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;register&amp;quot;, registerPlayer ) -- создадим команду /register&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Смотрите также==&lt;br /&gt;
{{RU/Account_functions}}&lt;br /&gt;
&lt;br /&gt;
[[en:addAccount]]&lt;br /&gt;
[[es:addAccount]]&lt;/div&gt;</summary>
		<author><name>Strix</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetEffectDensity&amp;diff=44425</id>
		<title>GetEffectDensity</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetEffectDensity&amp;diff=44425"/>
		<updated>2015-02-09T10:37:31Z</updated>

		<summary type="html">&lt;p&gt;Strix: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{New items|3.014|1.4 r6208|&lt;br /&gt;
This function gets the density of certain [[effect]].&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;
float getEffectDensity ( effect theEffect )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[effect]]:getDensity|density|setEffectDensity}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theEffect:''' The [[effect]] to get density of.&lt;br /&gt;
&lt;br /&gt;
===Example===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;[Lua]&lt;br /&gt;
addCommandHandler(&amp;quot;ses&amp;quot;, &lt;br /&gt;
function (cmd)&lt;br /&gt;
   local density = 4&lt;br /&gt;
   local x, y, z = getElementPosition (localPlayer)&lt;br /&gt;
   local effect = createEffect (&amp;quot;cement&amp;quot;, x, y, z)&lt;br /&gt;
   setEffectDensity (effect, density)&lt;br /&gt;
   getEffectDensity (effect)&lt;br /&gt;
end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{Client_Effects_functions}}&lt;br /&gt;
[[ru:getEffectDensity]]&lt;/div&gt;</summary>
		<author><name>Strix</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:RU/Client_Effects_functions&amp;diff=44424</id>
		<title>Template:RU/Client Effects functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:RU/Client_Effects_functions&amp;diff=44424"/>
		<updated>2015-02-09T10:34:59Z</updated>

		<summary type="html">&lt;p&gt;Strix: Created page with &amp;quot;*createEffect *fxAddBlood *fxAddBulletImpact *fxAddBulletSplash *RU/fxAddDebris|fxAdd...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[RU/createEffect|createEffect]]&lt;br /&gt;
*[[RU/fxAddBlood|fxAddBlood]]&lt;br /&gt;
*[[RU/fxAddBulletImpact|fxAddBulletImpact]]&lt;br /&gt;
*[[RU/fxAddBulletSplash|fxAddBulletSplash]]&lt;br /&gt;
*[[RU/fxAddDebris|fxAddDebris]]&lt;br /&gt;
*[[RU/fxAddFootSplash|fxAddFootSplash]]&lt;br /&gt;
*[[RU/fxAddGlass|fxAddGlass]]&lt;br /&gt;
*[[RU/fxAddGunshot|fxAddGunshot]]&lt;br /&gt;
*[[RU/fxAddPunchImpact|fxAddPunchImpact]]&lt;br /&gt;
*[[RU/fxAddSparks|fxAddSparks]]&lt;br /&gt;
*[[RU/fxAddTankFire|fxAddTankFire]]&lt;br /&gt;
*[[RU/fxAddTyreBurst|fxAddTyreBurst]]&lt;br /&gt;
*[[RU/fxAddWaterHydrant|fxAddWaterHydrant]]&lt;br /&gt;
*[[RU/fxAddWaterSplash|fxAddWaterSplash]]&lt;br /&gt;
*[[RU/fxAddWood|fxAddWood]]&lt;br /&gt;
*[[RU/getEffectDensity|getEffectDensity]]&lt;br /&gt;
*[[RU/getEffectSpeed|getEffectSpeed]]&lt;br /&gt;
*[[RU/setEffectDensity|setEffectDensity]]&lt;br /&gt;
*[[RU/setEffectSpeed|setEffectSpeed]]&lt;/div&gt;</summary>
		<author><name>Strix</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=CreateEffect&amp;diff=44423</id>
		<title>CreateEffect</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=CreateEffect&amp;diff=44423"/>
		<updated>2015-02-09T10:34:50Z</updated>

		<summary type="html">&lt;p&gt;Strix: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
{{New items|3.0140|1.4|&lt;br /&gt;
Creates an [[Element/Effect|effect]] on specified position.&lt;br /&gt;
}}&lt;br /&gt;
{{Note|Not all effects support rotation (e.g. the &amp;quot;fire&amp;quot; - effect doesn't).}}&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;effect createEffect ( string name, float x, float y, float z [, float rX, float rY, float rZ, float drawDistance = 0 ] )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[Effect]]}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''name:''' A string contains [[Element/Effect#Effects_list|effect name]].&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.06892|1.4 r6892|&lt;br /&gt;
*'''drawDistance:''' A floating point number between 1 and 8191 which represents the draw distance of the effect, or 0 to use the default draw distance.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Returns ===&lt;br /&gt;
Returns the [[Element/Effect|effect]] element if creation was successful, ''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;
addCommandHandler(&amp;quot;effect&amp;quot;, &lt;br /&gt;
	function(cmd, name)&lt;br /&gt;
		local x, y, z = getElementPosition(localPlayer)&lt;br /&gt;
		if createEffect(name, x, y, z) then&lt;br /&gt;
			outputChatBox(&amp;quot;Effect created!&amp;quot;)&lt;br /&gt;
		else&lt;br /&gt;
			outputChatBox(&amp;quot;Bad effect name.&amp;quot;)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;!--This example synchronize cam flash effect (without this only local player can see this).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler(&amp;quot;onClientPlayerWeaponFire&amp;quot;, root,&lt;br /&gt;
	function(weapon)&lt;br /&gt;
		if weapon == 43 and source ~= localPlayer then&lt;br /&gt;
			local x, y, z = getPedWeaponMuzzlePosition(source)&lt;br /&gt;
			createEffect(&amp;quot;camflash&amp;quot;, x, y, z)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Changelog==&lt;br /&gt;
{{ChangelogHeader}}&lt;br /&gt;
{{ChangelogItem|1.4.0-9.06892|Added drawDistance argument}}&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
{{Client_Effects_functions}}&lt;br /&gt;
[[ru:createEffect]]&lt;/div&gt;</summary>
		<author><name>Strix</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RU/CreateEffect&amp;diff=44422</id>
		<title>RU/CreateEffect</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RU/CreateEffect&amp;diff=44422"/>
		<updated>2015-02-09T10:34:43Z</updated>

		<summary type="html">&lt;p&gt;Strix: Strix moved page RU/CreateEffect to RU/createEffect&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[RU/createEffect]]&lt;/div&gt;</summary>
		<author><name>Strix</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RU/createEffect&amp;diff=44421</id>
		<title>RU/createEffect</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RU/createEffect&amp;diff=44421"/>
		<updated>2015-02-09T10:34:43Z</updated>

		<summary type="html">&lt;p&gt;Strix: Strix moved page RU/CreateEffect to RU/createEffect&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{RU/Client function}}&lt;br /&gt;
{{New items|3.0140|1.4|&lt;br /&gt;
Создает [[Element/Effect|эффект]] на указанной позиции.&lt;br /&gt;
}}&lt;br /&gt;
{{RU/Note|Не все эффекты поворачиваются (например, эффект &amp;quot;fire&amp;quot;).}}&lt;br /&gt;
==Синтаксис== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;effect createEffect ( string name, float x, float y, float z [, float rX, float rY, float rZ, float drawDistance = 0 ] )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{RU/OOP||[[Effect]]}}&lt;br /&gt;
&lt;br /&gt;
===Обязательные аргументы=== &lt;br /&gt;
*'''name:''' [[Element/Effect#Effects_list|Название эффекта]].&lt;br /&gt;
*'''x:''' Число с плавающей точкой, представляющее координату X на карте.&lt;br /&gt;
*'''y:''' Число с плавающей точкой, представляющее координату Y на карте.&lt;br /&gt;
*'''z:''' Число с плавающей точкой, представляющее координату Z на карте.&lt;br /&gt;
&lt;br /&gt;
===Необязательные аргументы===&lt;br /&gt;
{{RU/OptionalArg}}&lt;br /&gt;
*'''rX:''' Число с плавающей точкой, представляющее вращение по оси X в градусах.&lt;br /&gt;
*'''rY:''' Число с плавающей точкой, представляющее вращение по оси Y в градусах.&lt;br /&gt;
*'''rZ:''' Число с плавающей точкой, представляющее вращение по оси Z в градусах.&lt;br /&gt;
{{New items|3.06892|1.4 r6892|&lt;br /&gt;
*'''drawDistance:''' Число с плавающей точкой от 1 до 8191, представляющее дистанцию прорисовки эффекта. Укажите 0, чтобы использовать дистанцию прорисовки по умолчанию.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Возвращает ===&lt;br /&gt;
Возвращает элемент [[Element/Effect|эффекта]], если создание было успешным, иначе ''false''.&lt;br /&gt;
&lt;br /&gt;
== Пример == &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;effect&amp;quot;, &lt;br /&gt;
	function(cmd, name)&lt;br /&gt;
		local x, y, z = getElementPosition(localPlayer)&lt;br /&gt;
		if createEffect(name, x, y, z) then&lt;br /&gt;
			outputChatBox(&amp;quot;Эффект создан!&amp;quot;)&lt;br /&gt;
		else&lt;br /&gt;
			outputChatBox(&amp;quot;Неверное название эффекта.&amp;quot;)&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;
&lt;br /&gt;
Этот пример синхронизирует эффект вспышки камеры (без этого только локальные игроки могут видеть её).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler(&amp;quot;onClientPlayerWeaponFire&amp;quot;, root,&lt;br /&gt;
	function(weapon)&lt;br /&gt;
		if weapon == 43 and source ~= localPlayer then&lt;br /&gt;
			local x, y, z = getPedWeaponMuzzlePosition(source)&lt;br /&gt;
			createEffect(&amp;quot;camflash&amp;quot;, x, y, z)&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;
== Смотрите также ==&lt;br /&gt;
{{RU/Client_Effects_functions}}&lt;br /&gt;
[[en:createEffect]]&lt;/div&gt;</summary>
		<author><name>Strix</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Element/Effect&amp;diff=44420</id>
		<title>Element/Effect</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Element/Effect&amp;diff=44420"/>
		<updated>2015-02-09T10:32:07Z</updated>

		<summary type="html">&lt;p&gt;Strix: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{New items|3.0140|1.4|&lt;br /&gt;
The Effect class represents custom effect elements in the game world such as smoke, sparks, fire etc.&lt;br /&gt;
&lt;br /&gt;
The element type of this class is '''&amp;quot;effect&amp;quot;'''.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
== Effects list ==&lt;br /&gt;
There are 82 effects.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;--A table containing all effect names.&lt;br /&gt;
local effectNames = {&lt;br /&gt;
&amp;quot;blood_heli&amp;quot;,&amp;quot;boat_prop&amp;quot;,&amp;quot;camflash&amp;quot;,&amp;quot;carwashspray&amp;quot;,&amp;quot;cement&amp;quot;,&amp;quot;cloudfast&amp;quot;,&amp;quot;coke_puff&amp;quot;,&amp;quot;coke_trail&amp;quot;,&amp;quot;cigarette_smoke&amp;quot;,&lt;br /&gt;
&amp;quot;explosion_barrel&amp;quot;,&amp;quot;explosion_crate&amp;quot;,&amp;quot;explosion_door&amp;quot;,&amp;quot;exhale&amp;quot;,&amp;quot;explosion_fuel_car&amp;quot;,&amp;quot;explosion_large&amp;quot;,&amp;quot;explosion_medium&amp;quot;,&lt;br /&gt;
&amp;quot;explosion_molotov&amp;quot;,&amp;quot;explosion_small&amp;quot;,&amp;quot;explosion_tiny&amp;quot;,&amp;quot;extinguisher&amp;quot;,&amp;quot;flame&amp;quot;,&amp;quot;fire&amp;quot;,&amp;quot;fire_med&amp;quot;,&amp;quot;fire_large&amp;quot;,&amp;quot;flamethrower&amp;quot;,&lt;br /&gt;
&amp;quot;fire_bike&amp;quot;,&amp;quot;fire_car&amp;quot;,&amp;quot;gunflash&amp;quot;,&amp;quot;gunsmoke&amp;quot;,&amp;quot;insects&amp;quot;,&amp;quot;heli_dust&amp;quot;,&amp;quot;jetpack&amp;quot;,&amp;quot;jetthrust&amp;quot;,&amp;quot;nitro&amp;quot;,&amp;quot;molotov_flame&amp;quot;,&lt;br /&gt;
&amp;quot;overheat_car&amp;quot;,&amp;quot;overheat_car_electric&amp;quot;,&amp;quot;prt_blood&amp;quot;,&amp;quot;prt_boatsplash&amp;quot;,&amp;quot;prt_bubble&amp;quot;,&amp;quot;prt_cardebris&amp;quot;,&amp;quot;prt_collisionsmoke&amp;quot;,&lt;br /&gt;
&amp;quot;prt_glass&amp;quot;,&amp;quot;prt_gunshell&amp;quot;,&amp;quot;prt_sand&amp;quot;,&amp;quot;prt_sand2&amp;quot;,&amp;quot;prt_smokeII_3_expand&amp;quot;,&amp;quot;prt_smoke_huge&amp;quot;,&amp;quot;prt_spark&amp;quot;,&amp;quot;prt_spark_2&amp;quot;,&lt;br /&gt;
&amp;quot;prt_splash&amp;quot;,&amp;quot;prt_wake&amp;quot;,&amp;quot;prt_watersplash&amp;quot;,&amp;quot;prt_wheeldirt&amp;quot;,&amp;quot;petrolcan&amp;quot;,&amp;quot;puke&amp;quot;,&amp;quot;riot_smoke&amp;quot;,&amp;quot;spraycan&amp;quot;,&amp;quot;smoke30lit&amp;quot;,&amp;quot;smoke30m&amp;quot;,&lt;br /&gt;
&amp;quot;smoke50lit&amp;quot;,&amp;quot;shootlight&amp;quot;,&amp;quot;smoke_flare&amp;quot;,&amp;quot;tank_fire&amp;quot;,&amp;quot;teargas&amp;quot;,&amp;quot;teargasAD&amp;quot;,&amp;quot;tree_hit_fir&amp;quot;,&amp;quot;tree_hit_palm&amp;quot;,&amp;quot;vent&amp;quot;,&amp;quot;vent2&amp;quot;,&lt;br /&gt;
&amp;quot;water_hydrant&amp;quot;,&amp;quot;water_ripples&amp;quot;,&amp;quot;water_speed&amp;quot;,&amp;quot;water_splash&amp;quot;,&amp;quot;water_splash_big&amp;quot;,&amp;quot;water_splsh_sml&amp;quot;,&amp;quot;water_swim&amp;quot;,&amp;quot;waterfall_end&amp;quot;,&lt;br /&gt;
&amp;quot;water_fnt_tme&amp;quot;,&amp;quot;water_fountain&amp;quot;,&amp;quot;wallbust&amp;quot;,&amp;quot;WS_factorysmoke&amp;quot;&lt;br /&gt;
}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center; font-size: 12px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!width=&amp;quot;150&amp;quot;|Name&lt;br /&gt;
!width=&amp;quot;300&amp;quot;|Description&lt;br /&gt;
&amp;lt;!--!width=&amp;quot;160&amp;quot;|Image--&amp;gt;&lt;br /&gt;
&amp;lt;!--!width=&amp;quot;50&amp;quot;|Rotatable--&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|blood_heli&lt;br /&gt;
|bloody explosion&lt;br /&gt;
|-&lt;br /&gt;
|boat_prop&lt;br /&gt;
|a surf &lt;br /&gt;
|-&lt;br /&gt;
|camflash&lt;br /&gt;
|small flare &lt;br /&gt;
|-&lt;br /&gt;
|carwashspray&lt;br /&gt;
|steam, as on a carwash &lt;br /&gt;
|-&lt;br /&gt;
|cement&lt;br /&gt;
|cement &lt;br /&gt;
|-&lt;br /&gt;
|cloudfast&lt;br /&gt;
|fast clouds &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|coke_puff&lt;br /&gt;
|puff of a coke &lt;br /&gt;
|-&lt;br /&gt;
|coke_trail&lt;br /&gt;
|a pouring water &lt;br /&gt;
|-&lt;br /&gt;
|cigarette_smoke&lt;br /&gt;
|a smoke from a cigarette &lt;br /&gt;
|-&lt;br /&gt;
|explosion_barrel&lt;br /&gt;
|explosion and splinters of a box &lt;br /&gt;
|-&lt;br /&gt;
|explosion_crate&lt;br /&gt;
|explosion and splinters of the large box &lt;br /&gt;
|-&lt;br /&gt;
|explosion_door&lt;br /&gt;
|a smoke with sparks &lt;br /&gt;
|-&lt;br /&gt;
|exhale&lt;br /&gt;
|a small smoke &lt;br /&gt;
|-&lt;br /&gt;
|explosion_fuel_car&lt;br /&gt;
|explosion, as from the machine &lt;br /&gt;
|-&lt;br /&gt;
|explosion_large&lt;br /&gt;
|the large explosion &lt;br /&gt;
|-&lt;br /&gt;
|explosion_medium&lt;br /&gt;
|average explosion &lt;br /&gt;
|-&lt;br /&gt;
|explosion_molotov&lt;br /&gt;
|explosion, as from a molotov cocktail &lt;br /&gt;
|-&lt;br /&gt;
|explosion_small&lt;br /&gt;
|small explosion &lt;br /&gt;
|-&lt;br /&gt;
|explosion_tiny&lt;br /&gt;
|very small explosion &lt;br /&gt;
|-&lt;br /&gt;
|extinguisher&lt;br /&gt;
|foam of the fire extinguisher &lt;br /&gt;
|-&lt;br /&gt;
|flame&lt;br /&gt;
|small fire &lt;br /&gt;
|-&lt;br /&gt;
|fire&lt;br /&gt;
|fire &lt;br /&gt;
|-&lt;br /&gt;
|fire_med&lt;br /&gt;
|average fire &lt;br /&gt;
|-&lt;br /&gt;
|fire_large&lt;br /&gt;
|large fire &lt;br /&gt;
|-&lt;br /&gt;
|flamethrower&lt;br /&gt;
|fire of the flamethrower &lt;br /&gt;
|-&lt;br /&gt;
|fire_bike&lt;br /&gt;
|fire, as from a burning motorcycle &lt;br /&gt;
|-&lt;br /&gt;
|fire_car&lt;br /&gt;
|fire, as from the burning machine &lt;br /&gt;
|-&lt;br /&gt;
|gunflash&lt;br /&gt;
|as the bullet from a trunk takes off &lt;br /&gt;
|-&lt;br /&gt;
|gunsmoke&lt;br /&gt;
|a smoke from a gun &lt;br /&gt;
|-&lt;br /&gt;
|insects&lt;br /&gt;
|insects &lt;br /&gt;
|-&lt;br /&gt;
|heli_dust&lt;br /&gt;
|a dust, as from the helicopter &lt;br /&gt;
|-&lt;br /&gt;
|jetpack&lt;br /&gt;
|a jetpacks fire &lt;br /&gt;
|-&lt;br /&gt;
|jetthrust&lt;br /&gt;
|fire from the muffler of the machine, as during use of nitrogen&lt;br /&gt;
|- &lt;br /&gt;
|nitro&lt;br /&gt;
|nitro &lt;br /&gt;
|-&lt;br /&gt;
|molotov_flame&lt;br /&gt;
|fire from a Molotov Cocktail &lt;br /&gt;
|-&lt;br /&gt;
|overheat_car&lt;br /&gt;
|smoke from damaged car &lt;br /&gt;
|-&lt;br /&gt;
|overheat_car_electric&lt;br /&gt;
|wrecked electro-machine &lt;br /&gt;
|-&lt;br /&gt;
|prt_blood&lt;br /&gt;
|spark? maybe meant to be a mini red blood splash&lt;br /&gt;
|-&lt;br /&gt;
|prt_boatsplash&lt;br /&gt;
|foam &lt;br /&gt;
|-&lt;br /&gt;
|prt_bubble&lt;br /&gt;
|bubble&lt;br /&gt;
|-&lt;br /&gt;
|prt_cardebris&lt;br /&gt;
|splinters from a box &lt;br /&gt;
|-&lt;br /&gt;
|prt_collisionsmoke&lt;br /&gt;
|a dense white smoke &lt;br /&gt;
|-&lt;br /&gt;
|prt_glass&lt;br /&gt;
|a crashing glass &lt;br /&gt;
|-&lt;br /&gt;
|prt_gunshell&lt;br /&gt;
|shells &lt;br /&gt;
|-&lt;br /&gt;
|prt_sand&lt;br /&gt;
|sand, which was scattered &lt;br /&gt;
|-&lt;br /&gt;
|prt_sand2&lt;br /&gt;
|there is less sand, than in previous animation &lt;br /&gt;
|-&lt;br /&gt;
|prt_smokeII_3_expand&lt;br /&gt;
|a grey smoke &lt;br /&gt;
|-&lt;br /&gt;
|prt_smoke_huge&lt;br /&gt;
|there is a lot of grey smoke &lt;br /&gt;
|-&lt;br /&gt;
|prt_spark&lt;br /&gt;
|of a spark &lt;br /&gt;
|-&lt;br /&gt;
|prt_spark_2&lt;br /&gt;
|the large sparks &lt;br /&gt;
|-&lt;br /&gt;
|prt_splash&lt;br /&gt;
|burst &lt;br /&gt;
|-&lt;br /&gt;
|prt_wake&lt;br /&gt;
|a wave &lt;br /&gt;
|-&lt;br /&gt;
|prt_watersplash&lt;br /&gt;
|sparks &lt;br /&gt;
|-&lt;br /&gt;
|prt_wheeldirt&lt;br /&gt;
|sparks from wheels of the car&lt;br /&gt;
|- &lt;br /&gt;
|petrolcan&lt;br /&gt;
|a jet &lt;br /&gt;
|-&lt;br /&gt;
|puke&lt;br /&gt;
|belch &lt;br /&gt;
|-&lt;br /&gt;
|riot_smoke&lt;br /&gt;
|there is a lot of smoke &lt;br /&gt;
|-&lt;br /&gt;
|spraycan&lt;br /&gt;
|spray &lt;br /&gt;
|-&lt;br /&gt;
|smoke30lit&lt;br /&gt;
|a smoke &lt;br /&gt;
|-&lt;br /&gt;
|smoke30m&lt;br /&gt;
|a rich smoke &lt;br /&gt;
|-&lt;br /&gt;
|smoke50lit&lt;br /&gt;
|more richer smoke &lt;br /&gt;
|-&lt;br /&gt;
|shootlight&lt;br /&gt;
|a light being shot out (used for searchlights), sparks and glass&lt;br /&gt;
|-&lt;br /&gt;
|smoke_flare&lt;br /&gt;
|a light being shot out, sparks and glass, it makes a good firework effect&lt;br /&gt;
|-&lt;br /&gt;
|tank_fire&lt;br /&gt;
|a shot from the tank &lt;br /&gt;
|-&lt;br /&gt;
|teargas&lt;br /&gt;
|gas, as from gas grenade &lt;br /&gt;
|-&lt;br /&gt;
|teargasAD&lt;br /&gt;
|gas, as from small gas grenade &lt;br /&gt;
|-&lt;br /&gt;
|tree_hit_fir&lt;br /&gt;
|leaf falling &lt;br /&gt;
|-&lt;br /&gt;
|tree_hit_palm&lt;br /&gt;
|falling of pair large leafs &lt;br /&gt;
|-&lt;br /&gt;
|vent&lt;br /&gt;
|slowly dissipating a smoke &lt;br /&gt;
|-&lt;br /&gt;
|vent2&lt;br /&gt;
|practically too most &lt;br /&gt;
|-&lt;br /&gt;
|water_hydrant&lt;br /&gt;
|the large flow of water &lt;br /&gt;
|-&lt;br /&gt;
|water_ripples&lt;br /&gt;
|circles on water &lt;br /&gt;
|-&lt;br /&gt;
|water_speed&lt;br /&gt;
|the large sparks from water &lt;br /&gt;
|-&lt;br /&gt;
|water_splash&lt;br /&gt;
|small sparks from water &lt;br /&gt;
|-&lt;br /&gt;
|water_splash_big&lt;br /&gt;
|average sparks &lt;br /&gt;
|-&lt;br /&gt;
|water_splsh_sml&lt;br /&gt;
|sparks, only them it is not visible almost &lt;br /&gt;
|-&lt;br /&gt;
|water_swim&lt;br /&gt;
|small sparks at navigation &lt;br /&gt;
|-&lt;br /&gt;
|waterfall_end&lt;br /&gt;
|there is a lot of pair &lt;br /&gt;
|-&lt;br /&gt;
|water_fnt_tme&lt;br /&gt;
|the large flow of water &lt;br /&gt;
|-&lt;br /&gt;
|water_fountain&lt;br /&gt;
|water of a fountain &lt;br /&gt;
|-&lt;br /&gt;
|wallbust&lt;br /&gt;
|a disappearing heap pair &lt;br /&gt;
|-&lt;br /&gt;
|WS_factorysmoke&lt;br /&gt;
|smoke&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Related scripting functions==&lt;br /&gt;
===Client===&lt;br /&gt;
* [[createEffect]]&lt;br /&gt;
* [[setEffectSpeed]]&lt;br /&gt;
* [[getEffectSpeed]]&lt;br /&gt;
* [[setEffectDensity]]&lt;br /&gt;
* [[setEffectDensity]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Element Types]]&lt;br /&gt;
[[ru:Element/Effect]]&lt;/div&gt;</summary>
		<author><name>Strix</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RU/%D0%AD%D1%84%D1%84%D0%B5%D0%BA%D1%82&amp;diff=44419</id>
		<title>RU/Эффект</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RU/%D0%AD%D1%84%D1%84%D0%B5%D0%BA%D1%82&amp;diff=44419"/>
		<updated>2015-02-09T10:31:51Z</updated>

		<summary type="html">&lt;p&gt;Strix: Blanked the page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Strix</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RU/Element/Effect&amp;diff=44418</id>
		<title>RU/Element/Effect</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RU/Element/Effect&amp;diff=44418"/>
		<updated>2015-02-09T10:31:46Z</updated>

		<summary type="html">&lt;p&gt;Strix: Redirected page to Элемент/Эффект&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[Элемент/Эффект]]&lt;/div&gt;</summary>
		<author><name>Strix</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RU/%D0%AD%D1%84%D1%84%D0%B5%D0%BA%D1%82&amp;diff=44417</id>
		<title>RU/Эффект</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RU/%D0%AD%D1%84%D1%84%D0%B5%D0%BA%D1%82&amp;diff=44417"/>
		<updated>2015-02-09T10:30:17Z</updated>

		<summary type="html">&lt;p&gt;Strix: Redirected page to Элемент/Эффект&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[Элемент/Эффект]]&lt;/div&gt;</summary>
		<author><name>Strix</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=%D0%AD%D1%84%D1%84%D0%B5%D0%BA%D1%82&amp;diff=44416</id>
		<title>Эффект</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=%D0%AD%D1%84%D1%84%D0%B5%D0%BA%D1%82&amp;diff=44416"/>
		<updated>2015-02-09T10:29:51Z</updated>

		<summary type="html">&lt;p&gt;Strix: Strix moved page Эффект to Элемент/Эффект&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[Элемент/Эффект]]&lt;/div&gt;</summary>
		<author><name>Strix</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Category:%D0%AD%D1%84%D1%84%D0%B5%D0%BA%D1%82&amp;diff=44415</id>
		<title>Category:Эффект</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Category:%D0%AD%D1%84%D1%84%D0%B5%D0%BA%D1%82&amp;diff=44415"/>
		<updated>2015-02-09T10:29:51Z</updated>

		<summary type="html">&lt;p&gt;Strix: Strix moved page Эффект to Элемент/Эффект&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{New items|3.0140|1.4|&lt;br /&gt;
Класс Effect представляет такие элементы эффектов в игровом мире, как дым, искры огонь и так далее.&lt;br /&gt;
&lt;br /&gt;
Тип элементов этого класса — '''&amp;quot;effect&amp;quot;'''.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
== Список эффектов ==&lt;br /&gt;
Всего существует 82 эффекта.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;--Таблица, содержащая названия всех эффектов.&lt;br /&gt;
local effectNames = {&lt;br /&gt;
&amp;quot;blood_heli&amp;quot;,&amp;quot;boat_prop&amp;quot;,&amp;quot;camflash&amp;quot;,&amp;quot;carwashspray&amp;quot;,&amp;quot;cement&amp;quot;,&amp;quot;cloudfast&amp;quot;,&amp;quot;coke_puff&amp;quot;,&amp;quot;coke_trail&amp;quot;,&amp;quot;cigarette_smoke&amp;quot;,&lt;br /&gt;
&amp;quot;explosion_barrel&amp;quot;,&amp;quot;explosion_crate&amp;quot;,&amp;quot;explosion_door&amp;quot;,&amp;quot;exhale&amp;quot;,&amp;quot;explosion_fuel_car&amp;quot;,&amp;quot;explosion_large&amp;quot;,&amp;quot;explosion_medium&amp;quot;,&lt;br /&gt;
&amp;quot;explosion_molotov&amp;quot;,&amp;quot;explosion_small&amp;quot;,&amp;quot;explosion_tiny&amp;quot;,&amp;quot;extinguisher&amp;quot;,&amp;quot;flame&amp;quot;,&amp;quot;fire&amp;quot;,&amp;quot;fire_med&amp;quot;,&amp;quot;fire_large&amp;quot;,&amp;quot;flamethrower&amp;quot;,&lt;br /&gt;
&amp;quot;fire_bike&amp;quot;,&amp;quot;fire_car&amp;quot;,&amp;quot;gunflash&amp;quot;,&amp;quot;gunsmoke&amp;quot;,&amp;quot;insects&amp;quot;,&amp;quot;heli_dust&amp;quot;,&amp;quot;jetpack&amp;quot;,&amp;quot;jetthrust&amp;quot;,&amp;quot;nitro&amp;quot;,&amp;quot;molotov_flame&amp;quot;,&lt;br /&gt;
&amp;quot;overheat_car&amp;quot;,&amp;quot;overheat_car_electric&amp;quot;,&amp;quot;prt_blood&amp;quot;,&amp;quot;prt_boatsplash&amp;quot;,&amp;quot;prt_bubble&amp;quot;,&amp;quot;prt_cardebris&amp;quot;,&amp;quot;prt_collisionsmoke&amp;quot;,&lt;br /&gt;
&amp;quot;prt_glass&amp;quot;,&amp;quot;prt_gunshell&amp;quot;,&amp;quot;prt_sand&amp;quot;,&amp;quot;prt_sand2&amp;quot;,&amp;quot;prt_smokeII_3_expand&amp;quot;,&amp;quot;prt_smoke_huge&amp;quot;,&amp;quot;prt_spark&amp;quot;,&amp;quot;prt_spark_2&amp;quot;,&lt;br /&gt;
&amp;quot;prt_splash&amp;quot;,&amp;quot;prt_wake&amp;quot;,&amp;quot;prt_watersplash&amp;quot;,&amp;quot;prt_wheeldirt&amp;quot;,&amp;quot;petrolcan&amp;quot;,&amp;quot;puke&amp;quot;,&amp;quot;riot_smoke&amp;quot;,&amp;quot;spraycan&amp;quot;,&amp;quot;smoke30lit&amp;quot;,&amp;quot;smoke30m&amp;quot;,&lt;br /&gt;
&amp;quot;smoke50lit&amp;quot;,&amp;quot;shootlight&amp;quot;,&amp;quot;smoke_flare&amp;quot;,&amp;quot;tank_fire&amp;quot;,&amp;quot;teargas&amp;quot;,&amp;quot;teargasAD&amp;quot;,&amp;quot;tree_hit_fir&amp;quot;,&amp;quot;tree_hit_palm&amp;quot;,&amp;quot;vent&amp;quot;,&amp;quot;vent2&amp;quot;,&lt;br /&gt;
&amp;quot;water_hydrant&amp;quot;,&amp;quot;water_ripples&amp;quot;,&amp;quot;water_speed&amp;quot;,&amp;quot;water_splash&amp;quot;,&amp;quot;water_splash_big&amp;quot;,&amp;quot;water_splsh_sml&amp;quot;,&amp;quot;water_swim&amp;quot;,&amp;quot;waterfall_end&amp;quot;,&lt;br /&gt;
&amp;quot;water_fnt_tme&amp;quot;,&amp;quot;water_fountain&amp;quot;,&amp;quot;wallbust&amp;quot;,&amp;quot;WS_factorysmoke&amp;quot;&lt;br /&gt;
}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center; font-size: 12px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!width=&amp;quot;150&amp;quot;|Name&lt;br /&gt;
!width=&amp;quot;300&amp;quot;|Description&lt;br /&gt;
&amp;lt;!--!width=&amp;quot;160&amp;quot;|Image--&amp;gt;&lt;br /&gt;
&amp;lt;!--!width=&amp;quot;50&amp;quot;|Rotatable--&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|blood_heli&lt;br /&gt;
|кровавый взрыв&lt;br /&gt;
|-&lt;br /&gt;
|boat_prop&lt;br /&gt;
|a surf &lt;br /&gt;
|-&lt;br /&gt;
|camflash&lt;br /&gt;
|небольшая вспышка&lt;br /&gt;
|-&lt;br /&gt;
|carwashspray&lt;br /&gt;
|пар, как на автомойке&lt;br /&gt;
|-&lt;br /&gt;
|cement&lt;br /&gt;
|цемент &lt;br /&gt;
|-&lt;br /&gt;
|cloudfast&lt;br /&gt;
|fast clouds &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|coke_puff&lt;br /&gt;
|puff of a coke &lt;br /&gt;
|-&lt;br /&gt;
|coke_trail&lt;br /&gt;
|льющаяся вода&lt;br /&gt;
|-&lt;br /&gt;
|cigarette_smoke&lt;br /&gt;
|дым от сигареты&lt;br /&gt;
|-&lt;br /&gt;
|explosion_barrel&lt;br /&gt;
|explosion and splinters of a box &lt;br /&gt;
|-&lt;br /&gt;
|explosion_crate&lt;br /&gt;
|explosion and splinters of the large box &lt;br /&gt;
|-&lt;br /&gt;
|explosion_door&lt;br /&gt;
|дым с щепками&lt;br /&gt;
|-&lt;br /&gt;
|exhale&lt;br /&gt;
|маленький дым &lt;br /&gt;
|-&lt;br /&gt;
|explosion_fuel_car&lt;br /&gt;
|взрыв машины&lt;br /&gt;
|-&lt;br /&gt;
|explosion_large&lt;br /&gt;
|большой взрыв&lt;br /&gt;
|-&lt;br /&gt;
|explosion_medium&lt;br /&gt;
|средний взрыв&lt;br /&gt;
|-&lt;br /&gt;
|explosion_molotov&lt;br /&gt;
|взрыв от коктейля Молотова&lt;br /&gt;
|-&lt;br /&gt;
|explosion_small&lt;br /&gt;
|маленький взрыв&lt;br /&gt;
|-&lt;br /&gt;
|explosion_tiny&lt;br /&gt;
|очень маленький взрыв&lt;br /&gt;
|-&lt;br /&gt;
|extinguisher&lt;br /&gt;
|пена огнетушителя&lt;br /&gt;
|-&lt;br /&gt;
|flame&lt;br /&gt;
|небольшой огонь&lt;br /&gt;
|-&lt;br /&gt;
|fire&lt;br /&gt;
|огонь&lt;br /&gt;
|-&lt;br /&gt;
|fire_med&lt;br /&gt;
|средний огонь&lt;br /&gt;
|-&lt;br /&gt;
|fire_large&lt;br /&gt;
|большой огонь&lt;br /&gt;
|-&lt;br /&gt;
|flamethrower&lt;br /&gt;
|fire of the flamethrower &lt;br /&gt;
|-&lt;br /&gt;
|fire_bike&lt;br /&gt;
|fire, as from a burning motorcycle &lt;br /&gt;
|-&lt;br /&gt;
|fire_car&lt;br /&gt;
|fire, as from the burning machine &lt;br /&gt;
|-&lt;br /&gt;
|gunflash&lt;br /&gt;
|as the bullet from a trunk takes off &lt;br /&gt;
|-&lt;br /&gt;
|gunsmoke&lt;br /&gt;
|дым от оружия&lt;br /&gt;
|-&lt;br /&gt;
|insects&lt;br /&gt;
|насекомые&lt;br /&gt;
|-&lt;br /&gt;
|heli_dust&lt;br /&gt;
|пыль, как от вертолёта&lt;br /&gt;
|-&lt;br /&gt;
|jetpack&lt;br /&gt;
|пламя джетпака&lt;br /&gt;
|-&lt;br /&gt;
|jetthrust&lt;br /&gt;
|пламя из глушителя машины&lt;br /&gt;
|- &lt;br /&gt;
|nitro&lt;br /&gt;
|нитро&lt;br /&gt;
|-&lt;br /&gt;
|molotov_flame&lt;br /&gt;
|огонь от коктейля Молотова&lt;br /&gt;
|-&lt;br /&gt;
|overheat_car&lt;br /&gt;
|smoke from damaged car &lt;br /&gt;
|-&lt;br /&gt;
|overheat_car_electric&lt;br /&gt;
|wrecked electro-machine &lt;br /&gt;
|-&lt;br /&gt;
|prt_blood&lt;br /&gt;
|маленький всплеск крови&lt;br /&gt;
|-&lt;br /&gt;
|prt_boatsplash&lt;br /&gt;
|пена&lt;br /&gt;
|-&lt;br /&gt;
|prt_bubble&lt;br /&gt;
|пузырь&lt;br /&gt;
|-&lt;br /&gt;
|prt_cardebris&lt;br /&gt;
|осколки от ящика&lt;br /&gt;
|-&lt;br /&gt;
|prt_collisionsmoke&lt;br /&gt;
|плотный белый дым&lt;br /&gt;
|-&lt;br /&gt;
|prt_glass&lt;br /&gt;
|ломающееся стекло&lt;br /&gt;
|-&lt;br /&gt;
|prt_gunshell&lt;br /&gt;
|shells &lt;br /&gt;
|-&lt;br /&gt;
|prt_sand&lt;br /&gt;
|рассеянный песок&lt;br /&gt;
|-&lt;br /&gt;
|prt_sand2&lt;br /&gt;
|чуть меньше песка&lt;br /&gt;
|-&lt;br /&gt;
|prt_smokeII_3_expand&lt;br /&gt;
|серый дым&lt;br /&gt;
|-&lt;br /&gt;
|prt_smoke_huge&lt;br /&gt;
|много серого дыма&lt;br /&gt;
|-&lt;br /&gt;
|prt_spark&lt;br /&gt;
|искры&lt;br /&gt;
|-&lt;br /&gt;
|prt_spark_2&lt;br /&gt;
|большие искры &lt;br /&gt;
|-&lt;br /&gt;
|prt_splash&lt;br /&gt;
|взрыв&lt;br /&gt;
|-&lt;br /&gt;
|prt_wake&lt;br /&gt;
|волна&lt;br /&gt;
|-&lt;br /&gt;
|prt_watersplash&lt;br /&gt;
|всплеск&lt;br /&gt;
|-&lt;br /&gt;
|prt_wheeldirt&lt;br /&gt;
|искры от колёс машины&lt;br /&gt;
|- &lt;br /&gt;
|petrolcan&lt;br /&gt;
|струя&lt;br /&gt;
|-&lt;br /&gt;
|puke&lt;br /&gt;
|рвота&lt;br /&gt;
|-&lt;br /&gt;
|riot_smoke&lt;br /&gt;
|there is a lot of smoke &lt;br /&gt;
|-&lt;br /&gt;
|spraycan&lt;br /&gt;
|spray &lt;br /&gt;
|-&lt;br /&gt;
|smoke30lit&lt;br /&gt;
|a smoke &lt;br /&gt;
|-&lt;br /&gt;
|smoke30m&lt;br /&gt;
|a rich smoke &lt;br /&gt;
|-&lt;br /&gt;
|smoke50lit&lt;br /&gt;
|more richer smoke &lt;br /&gt;
|-&lt;br /&gt;
|shootlight&lt;br /&gt;
|a light being shot out (used for searchlights), sparks and glass&lt;br /&gt;
|-&lt;br /&gt;
|smoke_flare&lt;br /&gt;
|a light being shot out, sparks and glass, it makes a good firework effect&lt;br /&gt;
|-&lt;br /&gt;
|tank_fire&lt;br /&gt;
|a shot from the tank &lt;br /&gt;
|-&lt;br /&gt;
|teargas&lt;br /&gt;
|gas, as from gas grenade &lt;br /&gt;
|-&lt;br /&gt;
|teargasAD&lt;br /&gt;
|gas, as from small gas grenade &lt;br /&gt;
|-&lt;br /&gt;
|tree_hit_fir&lt;br /&gt;
|leaf falling &lt;br /&gt;
|-&lt;br /&gt;
|tree_hit_palm&lt;br /&gt;
|falling of pair large leafs &lt;br /&gt;
|-&lt;br /&gt;
|vent&lt;br /&gt;
|slowly dissipating a smoke &lt;br /&gt;
|-&lt;br /&gt;
|vent2&lt;br /&gt;
|practically too most &lt;br /&gt;
|-&lt;br /&gt;
|water_hydrant&lt;br /&gt;
|the large flow of water &lt;br /&gt;
|-&lt;br /&gt;
|water_ripples&lt;br /&gt;
|круги на воде&lt;br /&gt;
|-&lt;br /&gt;
|water_speed&lt;br /&gt;
|the large sparks from water &lt;br /&gt;
|-&lt;br /&gt;
|water_splash&lt;br /&gt;
|small sparks from water &lt;br /&gt;
|-&lt;br /&gt;
|water_splash_big&lt;br /&gt;
|average sparks &lt;br /&gt;
|-&lt;br /&gt;
|water_splsh_sml&lt;br /&gt;
|sparks, only them it is not visible almost &lt;br /&gt;
|-&lt;br /&gt;
|water_swim&lt;br /&gt;
|small sparks at navigation &lt;br /&gt;
|-&lt;br /&gt;
|waterfall_end&lt;br /&gt;
|there is a lot of pair &lt;br /&gt;
|-&lt;br /&gt;
|water_fnt_tme&lt;br /&gt;
|the large flow of water &lt;br /&gt;
|-&lt;br /&gt;
|water_fountain&lt;br /&gt;
|фонтан воды&lt;br /&gt;
|-&lt;br /&gt;
|wallbust&lt;br /&gt;
|a disappearing heap pair &lt;br /&gt;
|-&lt;br /&gt;
|WS_factorysmoke&lt;br /&gt;
|дым&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Связанные функции скриптинга==&lt;br /&gt;
===Клиент===&lt;br /&gt;
* [[RU/createEffect]]&lt;br /&gt;
* [[RU/setEffectSpeed]]&lt;br /&gt;
* [[RU/getEffectSpeed]]&lt;br /&gt;
* [[RU/setEffectDensity]]&lt;br /&gt;
* [[RU/setEffectDensity]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Element Types]]&lt;br /&gt;
[[en:Element/Effect]]&lt;/div&gt;</summary>
		<author><name>Strix</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Element/Effect&amp;diff=44414</id>
		<title>Element/Effect</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Element/Effect&amp;diff=44414"/>
		<updated>2015-02-09T10:29:07Z</updated>

		<summary type="html">&lt;p&gt;Strix: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{New items|3.0140|1.4|&lt;br /&gt;
The Effect class represents custom effect elements in the game world such as smoke, sparks, fire etc.&lt;br /&gt;
&lt;br /&gt;
The element type of this class is '''&amp;quot;effect&amp;quot;'''.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
== Effects list ==&lt;br /&gt;
There are 82 effects.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;--A table containing all effect names.&lt;br /&gt;
local effectNames = {&lt;br /&gt;
&amp;quot;blood_heli&amp;quot;,&amp;quot;boat_prop&amp;quot;,&amp;quot;camflash&amp;quot;,&amp;quot;carwashspray&amp;quot;,&amp;quot;cement&amp;quot;,&amp;quot;cloudfast&amp;quot;,&amp;quot;coke_puff&amp;quot;,&amp;quot;coke_trail&amp;quot;,&amp;quot;cigarette_smoke&amp;quot;,&lt;br /&gt;
&amp;quot;explosion_barrel&amp;quot;,&amp;quot;explosion_crate&amp;quot;,&amp;quot;explosion_door&amp;quot;,&amp;quot;exhale&amp;quot;,&amp;quot;explosion_fuel_car&amp;quot;,&amp;quot;explosion_large&amp;quot;,&amp;quot;explosion_medium&amp;quot;,&lt;br /&gt;
&amp;quot;explosion_molotov&amp;quot;,&amp;quot;explosion_small&amp;quot;,&amp;quot;explosion_tiny&amp;quot;,&amp;quot;extinguisher&amp;quot;,&amp;quot;flame&amp;quot;,&amp;quot;fire&amp;quot;,&amp;quot;fire_med&amp;quot;,&amp;quot;fire_large&amp;quot;,&amp;quot;flamethrower&amp;quot;,&lt;br /&gt;
&amp;quot;fire_bike&amp;quot;,&amp;quot;fire_car&amp;quot;,&amp;quot;gunflash&amp;quot;,&amp;quot;gunsmoke&amp;quot;,&amp;quot;insects&amp;quot;,&amp;quot;heli_dust&amp;quot;,&amp;quot;jetpack&amp;quot;,&amp;quot;jetthrust&amp;quot;,&amp;quot;nitro&amp;quot;,&amp;quot;molotov_flame&amp;quot;,&lt;br /&gt;
&amp;quot;overheat_car&amp;quot;,&amp;quot;overheat_car_electric&amp;quot;,&amp;quot;prt_blood&amp;quot;,&amp;quot;prt_boatsplash&amp;quot;,&amp;quot;prt_bubble&amp;quot;,&amp;quot;prt_cardebris&amp;quot;,&amp;quot;prt_collisionsmoke&amp;quot;,&lt;br /&gt;
&amp;quot;prt_glass&amp;quot;,&amp;quot;prt_gunshell&amp;quot;,&amp;quot;prt_sand&amp;quot;,&amp;quot;prt_sand2&amp;quot;,&amp;quot;prt_smokeII_3_expand&amp;quot;,&amp;quot;prt_smoke_huge&amp;quot;,&amp;quot;prt_spark&amp;quot;,&amp;quot;prt_spark_2&amp;quot;,&lt;br /&gt;
&amp;quot;prt_splash&amp;quot;,&amp;quot;prt_wake&amp;quot;,&amp;quot;prt_watersplash&amp;quot;,&amp;quot;prt_wheeldirt&amp;quot;,&amp;quot;petrolcan&amp;quot;,&amp;quot;puke&amp;quot;,&amp;quot;riot_smoke&amp;quot;,&amp;quot;spraycan&amp;quot;,&amp;quot;smoke30lit&amp;quot;,&amp;quot;smoke30m&amp;quot;,&lt;br /&gt;
&amp;quot;smoke50lit&amp;quot;,&amp;quot;shootlight&amp;quot;,&amp;quot;smoke_flare&amp;quot;,&amp;quot;tank_fire&amp;quot;,&amp;quot;teargas&amp;quot;,&amp;quot;teargasAD&amp;quot;,&amp;quot;tree_hit_fir&amp;quot;,&amp;quot;tree_hit_palm&amp;quot;,&amp;quot;vent&amp;quot;,&amp;quot;vent2&amp;quot;,&lt;br /&gt;
&amp;quot;water_hydrant&amp;quot;,&amp;quot;water_ripples&amp;quot;,&amp;quot;water_speed&amp;quot;,&amp;quot;water_splash&amp;quot;,&amp;quot;water_splash_big&amp;quot;,&amp;quot;water_splsh_sml&amp;quot;,&amp;quot;water_swim&amp;quot;,&amp;quot;waterfall_end&amp;quot;,&lt;br /&gt;
&amp;quot;water_fnt_tme&amp;quot;,&amp;quot;water_fountain&amp;quot;,&amp;quot;wallbust&amp;quot;,&amp;quot;WS_factorysmoke&amp;quot;&lt;br /&gt;
}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center; font-size: 12px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!width=&amp;quot;150&amp;quot;|Name&lt;br /&gt;
!width=&amp;quot;300&amp;quot;|Description&lt;br /&gt;
&amp;lt;!--!width=&amp;quot;160&amp;quot;|Image--&amp;gt;&lt;br /&gt;
&amp;lt;!--!width=&amp;quot;50&amp;quot;|Rotatable--&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|blood_heli&lt;br /&gt;
|bloody explosion&lt;br /&gt;
|-&lt;br /&gt;
|boat_prop&lt;br /&gt;
|a surf &lt;br /&gt;
|-&lt;br /&gt;
|camflash&lt;br /&gt;
|small flare &lt;br /&gt;
|-&lt;br /&gt;
|carwashspray&lt;br /&gt;
|steam, as on a carwash &lt;br /&gt;
|-&lt;br /&gt;
|cement&lt;br /&gt;
|cement &lt;br /&gt;
|-&lt;br /&gt;
|cloudfast&lt;br /&gt;
|fast clouds &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|coke_puff&lt;br /&gt;
|puff of a coke &lt;br /&gt;
|-&lt;br /&gt;
|coke_trail&lt;br /&gt;
|a pouring water &lt;br /&gt;
|-&lt;br /&gt;
|cigarette_smoke&lt;br /&gt;
|a smoke from a cigarette &lt;br /&gt;
|-&lt;br /&gt;
|explosion_barrel&lt;br /&gt;
|explosion and splinters of a box &lt;br /&gt;
|-&lt;br /&gt;
|explosion_crate&lt;br /&gt;
|explosion and splinters of the large box &lt;br /&gt;
|-&lt;br /&gt;
|explosion_door&lt;br /&gt;
|a smoke with sparks &lt;br /&gt;
|-&lt;br /&gt;
|exhale&lt;br /&gt;
|a small smoke &lt;br /&gt;
|-&lt;br /&gt;
|explosion_fuel_car&lt;br /&gt;
|explosion, as from the machine &lt;br /&gt;
|-&lt;br /&gt;
|explosion_large&lt;br /&gt;
|the large explosion &lt;br /&gt;
|-&lt;br /&gt;
|explosion_medium&lt;br /&gt;
|average explosion &lt;br /&gt;
|-&lt;br /&gt;
|explosion_molotov&lt;br /&gt;
|explosion, as from a molotov cocktail &lt;br /&gt;
|-&lt;br /&gt;
|explosion_small&lt;br /&gt;
|small explosion &lt;br /&gt;
|-&lt;br /&gt;
|explosion_tiny&lt;br /&gt;
|very small explosion &lt;br /&gt;
|-&lt;br /&gt;
|extinguisher&lt;br /&gt;
|foam of the fire extinguisher &lt;br /&gt;
|-&lt;br /&gt;
|flame&lt;br /&gt;
|small fire &lt;br /&gt;
|-&lt;br /&gt;
|fire&lt;br /&gt;
|fire &lt;br /&gt;
|-&lt;br /&gt;
|fire_med&lt;br /&gt;
|average fire &lt;br /&gt;
|-&lt;br /&gt;
|fire_large&lt;br /&gt;
|large fire &lt;br /&gt;
|-&lt;br /&gt;
|flamethrower&lt;br /&gt;
|fire of the flamethrower &lt;br /&gt;
|-&lt;br /&gt;
|fire_bike&lt;br /&gt;
|fire, as from a burning motorcycle &lt;br /&gt;
|-&lt;br /&gt;
|fire_car&lt;br /&gt;
|fire, as from the burning machine &lt;br /&gt;
|-&lt;br /&gt;
|gunflash&lt;br /&gt;
|as the bullet from a trunk takes off &lt;br /&gt;
|-&lt;br /&gt;
|gunsmoke&lt;br /&gt;
|a smoke from a gun &lt;br /&gt;
|-&lt;br /&gt;
|insects&lt;br /&gt;
|insects &lt;br /&gt;
|-&lt;br /&gt;
|heli_dust&lt;br /&gt;
|a dust, as from the helicopter &lt;br /&gt;
|-&lt;br /&gt;
|jetpack&lt;br /&gt;
|a jetpacks fire &lt;br /&gt;
|-&lt;br /&gt;
|jetthrust&lt;br /&gt;
|fire from the muffler of the machine, as during use of nitrogen&lt;br /&gt;
|- &lt;br /&gt;
|nitro&lt;br /&gt;
|nitro &lt;br /&gt;
|-&lt;br /&gt;
|molotov_flame&lt;br /&gt;
|fire from a Molotov Cocktail &lt;br /&gt;
|-&lt;br /&gt;
|overheat_car&lt;br /&gt;
|smoke from damaged car &lt;br /&gt;
|-&lt;br /&gt;
|overheat_car_electric&lt;br /&gt;
|wrecked electro-machine &lt;br /&gt;
|-&lt;br /&gt;
|prt_blood&lt;br /&gt;
|spark? maybe meant to be a mini red blood splash&lt;br /&gt;
|-&lt;br /&gt;
|prt_boatsplash&lt;br /&gt;
|foam &lt;br /&gt;
|-&lt;br /&gt;
|prt_bubble&lt;br /&gt;
|bubble&lt;br /&gt;
|-&lt;br /&gt;
|prt_cardebris&lt;br /&gt;
|splinters from a box &lt;br /&gt;
|-&lt;br /&gt;
|prt_collisionsmoke&lt;br /&gt;
|a dense white smoke &lt;br /&gt;
|-&lt;br /&gt;
|prt_glass&lt;br /&gt;
|a crashing glass &lt;br /&gt;
|-&lt;br /&gt;
|prt_gunshell&lt;br /&gt;
|shells &lt;br /&gt;
|-&lt;br /&gt;
|prt_sand&lt;br /&gt;
|sand, which was scattered &lt;br /&gt;
|-&lt;br /&gt;
|prt_sand2&lt;br /&gt;
|there is less sand, than in previous animation &lt;br /&gt;
|-&lt;br /&gt;
|prt_smokeII_3_expand&lt;br /&gt;
|a grey smoke &lt;br /&gt;
|-&lt;br /&gt;
|prt_smoke_huge&lt;br /&gt;
|there is a lot of grey smoke &lt;br /&gt;
|-&lt;br /&gt;
|prt_spark&lt;br /&gt;
|of a spark &lt;br /&gt;
|-&lt;br /&gt;
|prt_spark_2&lt;br /&gt;
|the large sparks &lt;br /&gt;
|-&lt;br /&gt;
|prt_splash&lt;br /&gt;
|burst &lt;br /&gt;
|-&lt;br /&gt;
|prt_wake&lt;br /&gt;
|a wave &lt;br /&gt;
|-&lt;br /&gt;
|prt_watersplash&lt;br /&gt;
|sparks &lt;br /&gt;
|-&lt;br /&gt;
|prt_wheeldirt&lt;br /&gt;
|sparks from wheels of the car&lt;br /&gt;
|- &lt;br /&gt;
|petrolcan&lt;br /&gt;
|a jet &lt;br /&gt;
|-&lt;br /&gt;
|puke&lt;br /&gt;
|belch &lt;br /&gt;
|-&lt;br /&gt;
|riot_smoke&lt;br /&gt;
|there is a lot of smoke &lt;br /&gt;
|-&lt;br /&gt;
|spraycan&lt;br /&gt;
|spray &lt;br /&gt;
|-&lt;br /&gt;
|smoke30lit&lt;br /&gt;
|a smoke &lt;br /&gt;
|-&lt;br /&gt;
|smoke30m&lt;br /&gt;
|a rich smoke &lt;br /&gt;
|-&lt;br /&gt;
|smoke50lit&lt;br /&gt;
|more richer smoke &lt;br /&gt;
|-&lt;br /&gt;
|shootlight&lt;br /&gt;
|a light being shot out (used for searchlights), sparks and glass&lt;br /&gt;
|-&lt;br /&gt;
|smoke_flare&lt;br /&gt;
|a light being shot out, sparks and glass, it makes a good firework effect&lt;br /&gt;
|-&lt;br /&gt;
|tank_fire&lt;br /&gt;
|a shot from the tank &lt;br /&gt;
|-&lt;br /&gt;
|teargas&lt;br /&gt;
|gas, as from gas grenade &lt;br /&gt;
|-&lt;br /&gt;
|teargasAD&lt;br /&gt;
|gas, as from small gas grenade &lt;br /&gt;
|-&lt;br /&gt;
|tree_hit_fir&lt;br /&gt;
|leaf falling &lt;br /&gt;
|-&lt;br /&gt;
|tree_hit_palm&lt;br /&gt;
|falling of pair large leafs &lt;br /&gt;
|-&lt;br /&gt;
|vent&lt;br /&gt;
|slowly dissipating a smoke &lt;br /&gt;
|-&lt;br /&gt;
|vent2&lt;br /&gt;
|practically too most &lt;br /&gt;
|-&lt;br /&gt;
|water_hydrant&lt;br /&gt;
|the large flow of water &lt;br /&gt;
|-&lt;br /&gt;
|water_ripples&lt;br /&gt;
|circles on water &lt;br /&gt;
|-&lt;br /&gt;
|water_speed&lt;br /&gt;
|the large sparks from water &lt;br /&gt;
|-&lt;br /&gt;
|water_splash&lt;br /&gt;
|small sparks from water &lt;br /&gt;
|-&lt;br /&gt;
|water_splash_big&lt;br /&gt;
|average sparks &lt;br /&gt;
|-&lt;br /&gt;
|water_splsh_sml&lt;br /&gt;
|sparks, only them it is not visible almost &lt;br /&gt;
|-&lt;br /&gt;
|water_swim&lt;br /&gt;
|small sparks at navigation &lt;br /&gt;
|-&lt;br /&gt;
|waterfall_end&lt;br /&gt;
|there is a lot of pair &lt;br /&gt;
|-&lt;br /&gt;
|water_fnt_tme&lt;br /&gt;
|the large flow of water &lt;br /&gt;
|-&lt;br /&gt;
|water_fountain&lt;br /&gt;
|water of a fountain &lt;br /&gt;
|-&lt;br /&gt;
|wallbust&lt;br /&gt;
|a disappearing heap pair &lt;br /&gt;
|-&lt;br /&gt;
|WS_factorysmoke&lt;br /&gt;
|smoke&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Related scripting functions==&lt;br /&gt;
===Client===&lt;br /&gt;
* [[createEffect]]&lt;br /&gt;
* [[setEffectSpeed]]&lt;br /&gt;
* [[getEffectSpeed]]&lt;br /&gt;
* [[setEffectDensity]]&lt;br /&gt;
* [[setEffectDensity]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Element Types]]&lt;br /&gt;
[[ru:Эффект]]&lt;/div&gt;</summary>
		<author><name>Strix</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Category:%D0%AD%D1%84%D1%84%D0%B5%D0%BA%D1%82&amp;diff=44413</id>
		<title>Category:Эффект</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Category:%D0%AD%D1%84%D1%84%D0%B5%D0%BA%D1%82&amp;diff=44413"/>
		<updated>2015-02-09T10:28:29Z</updated>

		<summary type="html">&lt;p&gt;Strix: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{New items|3.0140|1.4|&lt;br /&gt;
Класс Effect представляет такие элементы эффектов в игровом мире, как дым, искры огонь и так далее.&lt;br /&gt;
&lt;br /&gt;
Тип элементов этого класса — '''&amp;quot;effect&amp;quot;'''.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
== Список эффектов ==&lt;br /&gt;
Всего существует 82 эффекта.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;--Таблица, содержащая названия всех эффектов.&lt;br /&gt;
local effectNames = {&lt;br /&gt;
&amp;quot;blood_heli&amp;quot;,&amp;quot;boat_prop&amp;quot;,&amp;quot;camflash&amp;quot;,&amp;quot;carwashspray&amp;quot;,&amp;quot;cement&amp;quot;,&amp;quot;cloudfast&amp;quot;,&amp;quot;coke_puff&amp;quot;,&amp;quot;coke_trail&amp;quot;,&amp;quot;cigarette_smoke&amp;quot;,&lt;br /&gt;
&amp;quot;explosion_barrel&amp;quot;,&amp;quot;explosion_crate&amp;quot;,&amp;quot;explosion_door&amp;quot;,&amp;quot;exhale&amp;quot;,&amp;quot;explosion_fuel_car&amp;quot;,&amp;quot;explosion_large&amp;quot;,&amp;quot;explosion_medium&amp;quot;,&lt;br /&gt;
&amp;quot;explosion_molotov&amp;quot;,&amp;quot;explosion_small&amp;quot;,&amp;quot;explosion_tiny&amp;quot;,&amp;quot;extinguisher&amp;quot;,&amp;quot;flame&amp;quot;,&amp;quot;fire&amp;quot;,&amp;quot;fire_med&amp;quot;,&amp;quot;fire_large&amp;quot;,&amp;quot;flamethrower&amp;quot;,&lt;br /&gt;
&amp;quot;fire_bike&amp;quot;,&amp;quot;fire_car&amp;quot;,&amp;quot;gunflash&amp;quot;,&amp;quot;gunsmoke&amp;quot;,&amp;quot;insects&amp;quot;,&amp;quot;heli_dust&amp;quot;,&amp;quot;jetpack&amp;quot;,&amp;quot;jetthrust&amp;quot;,&amp;quot;nitro&amp;quot;,&amp;quot;molotov_flame&amp;quot;,&lt;br /&gt;
&amp;quot;overheat_car&amp;quot;,&amp;quot;overheat_car_electric&amp;quot;,&amp;quot;prt_blood&amp;quot;,&amp;quot;prt_boatsplash&amp;quot;,&amp;quot;prt_bubble&amp;quot;,&amp;quot;prt_cardebris&amp;quot;,&amp;quot;prt_collisionsmoke&amp;quot;,&lt;br /&gt;
&amp;quot;prt_glass&amp;quot;,&amp;quot;prt_gunshell&amp;quot;,&amp;quot;prt_sand&amp;quot;,&amp;quot;prt_sand2&amp;quot;,&amp;quot;prt_smokeII_3_expand&amp;quot;,&amp;quot;prt_smoke_huge&amp;quot;,&amp;quot;prt_spark&amp;quot;,&amp;quot;prt_spark_2&amp;quot;,&lt;br /&gt;
&amp;quot;prt_splash&amp;quot;,&amp;quot;prt_wake&amp;quot;,&amp;quot;prt_watersplash&amp;quot;,&amp;quot;prt_wheeldirt&amp;quot;,&amp;quot;petrolcan&amp;quot;,&amp;quot;puke&amp;quot;,&amp;quot;riot_smoke&amp;quot;,&amp;quot;spraycan&amp;quot;,&amp;quot;smoke30lit&amp;quot;,&amp;quot;smoke30m&amp;quot;,&lt;br /&gt;
&amp;quot;smoke50lit&amp;quot;,&amp;quot;shootlight&amp;quot;,&amp;quot;smoke_flare&amp;quot;,&amp;quot;tank_fire&amp;quot;,&amp;quot;teargas&amp;quot;,&amp;quot;teargasAD&amp;quot;,&amp;quot;tree_hit_fir&amp;quot;,&amp;quot;tree_hit_palm&amp;quot;,&amp;quot;vent&amp;quot;,&amp;quot;vent2&amp;quot;,&lt;br /&gt;
&amp;quot;water_hydrant&amp;quot;,&amp;quot;water_ripples&amp;quot;,&amp;quot;water_speed&amp;quot;,&amp;quot;water_splash&amp;quot;,&amp;quot;water_splash_big&amp;quot;,&amp;quot;water_splsh_sml&amp;quot;,&amp;quot;water_swim&amp;quot;,&amp;quot;waterfall_end&amp;quot;,&lt;br /&gt;
&amp;quot;water_fnt_tme&amp;quot;,&amp;quot;water_fountain&amp;quot;,&amp;quot;wallbust&amp;quot;,&amp;quot;WS_factorysmoke&amp;quot;&lt;br /&gt;
}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center; font-size: 12px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!width=&amp;quot;150&amp;quot;|Name&lt;br /&gt;
!width=&amp;quot;300&amp;quot;|Description&lt;br /&gt;
&amp;lt;!--!width=&amp;quot;160&amp;quot;|Image--&amp;gt;&lt;br /&gt;
&amp;lt;!--!width=&amp;quot;50&amp;quot;|Rotatable--&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|blood_heli&lt;br /&gt;
|кровавый взрыв&lt;br /&gt;
|-&lt;br /&gt;
|boat_prop&lt;br /&gt;
|a surf &lt;br /&gt;
|-&lt;br /&gt;
|camflash&lt;br /&gt;
|небольшая вспышка&lt;br /&gt;
|-&lt;br /&gt;
|carwashspray&lt;br /&gt;
|пар, как на автомойке&lt;br /&gt;
|-&lt;br /&gt;
|cement&lt;br /&gt;
|цемент &lt;br /&gt;
|-&lt;br /&gt;
|cloudfast&lt;br /&gt;
|fast clouds &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|coke_puff&lt;br /&gt;
|puff of a coke &lt;br /&gt;
|-&lt;br /&gt;
|coke_trail&lt;br /&gt;
|льющаяся вода&lt;br /&gt;
|-&lt;br /&gt;
|cigarette_smoke&lt;br /&gt;
|дым от сигареты&lt;br /&gt;
|-&lt;br /&gt;
|explosion_barrel&lt;br /&gt;
|explosion and splinters of a box &lt;br /&gt;
|-&lt;br /&gt;
|explosion_crate&lt;br /&gt;
|explosion and splinters of the large box &lt;br /&gt;
|-&lt;br /&gt;
|explosion_door&lt;br /&gt;
|дым с щепками&lt;br /&gt;
|-&lt;br /&gt;
|exhale&lt;br /&gt;
|маленький дым &lt;br /&gt;
|-&lt;br /&gt;
|explosion_fuel_car&lt;br /&gt;
|взрыв машины&lt;br /&gt;
|-&lt;br /&gt;
|explosion_large&lt;br /&gt;
|большой взрыв&lt;br /&gt;
|-&lt;br /&gt;
|explosion_medium&lt;br /&gt;
|средний взрыв&lt;br /&gt;
|-&lt;br /&gt;
|explosion_molotov&lt;br /&gt;
|взрыв от коктейля Молотова&lt;br /&gt;
|-&lt;br /&gt;
|explosion_small&lt;br /&gt;
|маленький взрыв&lt;br /&gt;
|-&lt;br /&gt;
|explosion_tiny&lt;br /&gt;
|очень маленький взрыв&lt;br /&gt;
|-&lt;br /&gt;
|extinguisher&lt;br /&gt;
|пена огнетушителя&lt;br /&gt;
|-&lt;br /&gt;
|flame&lt;br /&gt;
|небольшой огонь&lt;br /&gt;
|-&lt;br /&gt;
|fire&lt;br /&gt;
|огонь&lt;br /&gt;
|-&lt;br /&gt;
|fire_med&lt;br /&gt;
|средний огонь&lt;br /&gt;
|-&lt;br /&gt;
|fire_large&lt;br /&gt;
|большой огонь&lt;br /&gt;
|-&lt;br /&gt;
|flamethrower&lt;br /&gt;
|fire of the flamethrower &lt;br /&gt;
|-&lt;br /&gt;
|fire_bike&lt;br /&gt;
|fire, as from a burning motorcycle &lt;br /&gt;
|-&lt;br /&gt;
|fire_car&lt;br /&gt;
|fire, as from the burning machine &lt;br /&gt;
|-&lt;br /&gt;
|gunflash&lt;br /&gt;
|as the bullet from a trunk takes off &lt;br /&gt;
|-&lt;br /&gt;
|gunsmoke&lt;br /&gt;
|дым от оружия&lt;br /&gt;
|-&lt;br /&gt;
|insects&lt;br /&gt;
|насекомые&lt;br /&gt;
|-&lt;br /&gt;
|heli_dust&lt;br /&gt;
|пыль, как от вертолёта&lt;br /&gt;
|-&lt;br /&gt;
|jetpack&lt;br /&gt;
|пламя джетпака&lt;br /&gt;
|-&lt;br /&gt;
|jetthrust&lt;br /&gt;
|пламя из глушителя машины&lt;br /&gt;
|- &lt;br /&gt;
|nitro&lt;br /&gt;
|нитро&lt;br /&gt;
|-&lt;br /&gt;
|molotov_flame&lt;br /&gt;
|огонь от коктейля Молотова&lt;br /&gt;
|-&lt;br /&gt;
|overheat_car&lt;br /&gt;
|smoke from damaged car &lt;br /&gt;
|-&lt;br /&gt;
|overheat_car_electric&lt;br /&gt;
|wrecked electro-machine &lt;br /&gt;
|-&lt;br /&gt;
|prt_blood&lt;br /&gt;
|маленький всплеск крови&lt;br /&gt;
|-&lt;br /&gt;
|prt_boatsplash&lt;br /&gt;
|пена&lt;br /&gt;
|-&lt;br /&gt;
|prt_bubble&lt;br /&gt;
|пузырь&lt;br /&gt;
|-&lt;br /&gt;
|prt_cardebris&lt;br /&gt;
|осколки от ящика&lt;br /&gt;
|-&lt;br /&gt;
|prt_collisionsmoke&lt;br /&gt;
|плотный белый дым&lt;br /&gt;
|-&lt;br /&gt;
|prt_glass&lt;br /&gt;
|ломающееся стекло&lt;br /&gt;
|-&lt;br /&gt;
|prt_gunshell&lt;br /&gt;
|shells &lt;br /&gt;
|-&lt;br /&gt;
|prt_sand&lt;br /&gt;
|рассеянный песок&lt;br /&gt;
|-&lt;br /&gt;
|prt_sand2&lt;br /&gt;
|чуть меньше песка&lt;br /&gt;
|-&lt;br /&gt;
|prt_smokeII_3_expand&lt;br /&gt;
|серый дым&lt;br /&gt;
|-&lt;br /&gt;
|prt_smoke_huge&lt;br /&gt;
|много серого дыма&lt;br /&gt;
|-&lt;br /&gt;
|prt_spark&lt;br /&gt;
|искры&lt;br /&gt;
|-&lt;br /&gt;
|prt_spark_2&lt;br /&gt;
|большие искры &lt;br /&gt;
|-&lt;br /&gt;
|prt_splash&lt;br /&gt;
|взрыв&lt;br /&gt;
|-&lt;br /&gt;
|prt_wake&lt;br /&gt;
|волна&lt;br /&gt;
|-&lt;br /&gt;
|prt_watersplash&lt;br /&gt;
|всплеск&lt;br /&gt;
|-&lt;br /&gt;
|prt_wheeldirt&lt;br /&gt;
|искры от колёс машины&lt;br /&gt;
|- &lt;br /&gt;
|petrolcan&lt;br /&gt;
|струя&lt;br /&gt;
|-&lt;br /&gt;
|puke&lt;br /&gt;
|рвота&lt;br /&gt;
|-&lt;br /&gt;
|riot_smoke&lt;br /&gt;
|there is a lot of smoke &lt;br /&gt;
|-&lt;br /&gt;
|spraycan&lt;br /&gt;
|spray &lt;br /&gt;
|-&lt;br /&gt;
|smoke30lit&lt;br /&gt;
|a smoke &lt;br /&gt;
|-&lt;br /&gt;
|smoke30m&lt;br /&gt;
|a rich smoke &lt;br /&gt;
|-&lt;br /&gt;
|smoke50lit&lt;br /&gt;
|more richer smoke &lt;br /&gt;
|-&lt;br /&gt;
|shootlight&lt;br /&gt;
|a light being shot out (used for searchlights), sparks and glass&lt;br /&gt;
|-&lt;br /&gt;
|smoke_flare&lt;br /&gt;
|a light being shot out, sparks and glass, it makes a good firework effect&lt;br /&gt;
|-&lt;br /&gt;
|tank_fire&lt;br /&gt;
|a shot from the tank &lt;br /&gt;
|-&lt;br /&gt;
|teargas&lt;br /&gt;
|gas, as from gas grenade &lt;br /&gt;
|-&lt;br /&gt;
|teargasAD&lt;br /&gt;
|gas, as from small gas grenade &lt;br /&gt;
|-&lt;br /&gt;
|tree_hit_fir&lt;br /&gt;
|leaf falling &lt;br /&gt;
|-&lt;br /&gt;
|tree_hit_palm&lt;br /&gt;
|falling of pair large leafs &lt;br /&gt;
|-&lt;br /&gt;
|vent&lt;br /&gt;
|slowly dissipating a smoke &lt;br /&gt;
|-&lt;br /&gt;
|vent2&lt;br /&gt;
|practically too most &lt;br /&gt;
|-&lt;br /&gt;
|water_hydrant&lt;br /&gt;
|the large flow of water &lt;br /&gt;
|-&lt;br /&gt;
|water_ripples&lt;br /&gt;
|круги на воде&lt;br /&gt;
|-&lt;br /&gt;
|water_speed&lt;br /&gt;
|the large sparks from water &lt;br /&gt;
|-&lt;br /&gt;
|water_splash&lt;br /&gt;
|small sparks from water &lt;br /&gt;
|-&lt;br /&gt;
|water_splash_big&lt;br /&gt;
|average sparks &lt;br /&gt;
|-&lt;br /&gt;
|water_splsh_sml&lt;br /&gt;
|sparks, only them it is not visible almost &lt;br /&gt;
|-&lt;br /&gt;
|water_swim&lt;br /&gt;
|small sparks at navigation &lt;br /&gt;
|-&lt;br /&gt;
|waterfall_end&lt;br /&gt;
|there is a lot of pair &lt;br /&gt;
|-&lt;br /&gt;
|water_fnt_tme&lt;br /&gt;
|the large flow of water &lt;br /&gt;
|-&lt;br /&gt;
|water_fountain&lt;br /&gt;
|фонтан воды&lt;br /&gt;
|-&lt;br /&gt;
|wallbust&lt;br /&gt;
|a disappearing heap pair &lt;br /&gt;
|-&lt;br /&gt;
|WS_factorysmoke&lt;br /&gt;
|дым&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Связанные функции скриптинга==&lt;br /&gt;
===Клиент===&lt;br /&gt;
* [[RU/createEffect]]&lt;br /&gt;
* [[RU/setEffectSpeed]]&lt;br /&gt;
* [[RU/getEffectSpeed]]&lt;br /&gt;
* [[RU/setEffectDensity]]&lt;br /&gt;
* [[RU/setEffectDensity]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Element Types]]&lt;br /&gt;
[[en:Element/Effect]]&lt;/div&gt;</summary>
		<author><name>Strix</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Category:%D0%98%D0%B3%D1%80%D0%BE%D0%BA&amp;diff=44412</id>
		<title>Category:Игрок</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Category:%D0%98%D0%B3%D1%80%D0%BE%D0%BA&amp;diff=44412"/>
		<updated>2015-02-09T10:27:46Z</updated>

		<summary type="html">&lt;p&gt;Strix: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
Класс player представляет людей, контролируемых клиентами. Объект клиента, создается когда клиент подключается к серверу, и уничтожается когда отключается. Игроков нельзя создать или уничтожить, каким-либо другим способом.&lt;br /&gt;
&lt;br /&gt;
Тип элементов этого класса - '''&amp;quot;player&amp;quot;'''.&lt;br /&gt;
&lt;br /&gt;
==Связанные функции скриптинга==&lt;br /&gt;
===Клиентские===&lt;br /&gt;
{{RU/Client player functions}}&lt;br /&gt;
===Серверные===&lt;br /&gt;
{{RU/Player functions}}&lt;br /&gt;
[[Category:Типы элементов]]&lt;br /&gt;
&lt;br /&gt;
[[de:Element/Player]]&lt;br /&gt;
[[en:Element/Player]]&lt;br /&gt;
[[es:Elemento/Player]]&lt;br /&gt;
[[it:Elemento Player]]&lt;br /&gt;
[[pl:Gracz]]&lt;/div&gt;</summary>
		<author><name>Strix</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Category:%D0%AD%D1%84%D1%84%D0%B5%D0%BA%D1%82&amp;diff=44411</id>
		<title>Category:Эффект</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Category:%D0%AD%D1%84%D1%84%D0%B5%D0%BA%D1%82&amp;diff=44411"/>
		<updated>2015-02-09T10:27:40Z</updated>

		<summary type="html">&lt;p&gt;Strix: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{New items|3.0140|1.4|&lt;br /&gt;
Класс Effect представляет такие элементы эффектов в игровом мире, как дым, искры огонь и так далее.&lt;br /&gt;
&lt;br /&gt;
Тип элементов этого класса — '''&amp;quot;effect&amp;quot;'''.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
== Список эффектов ==&lt;br /&gt;
Всего существует 82 эффекта.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;--Таблица, содержащая названия всех эффектов.&lt;br /&gt;
local effectNames = {&lt;br /&gt;
&amp;quot;blood_heli&amp;quot;,&amp;quot;boat_prop&amp;quot;,&amp;quot;camflash&amp;quot;,&amp;quot;carwashspray&amp;quot;,&amp;quot;cement&amp;quot;,&amp;quot;cloudfast&amp;quot;,&amp;quot;coke_puff&amp;quot;,&amp;quot;coke_trail&amp;quot;,&amp;quot;cigarette_smoke&amp;quot;,&lt;br /&gt;
&amp;quot;explosion_barrel&amp;quot;,&amp;quot;explosion_crate&amp;quot;,&amp;quot;explosion_door&amp;quot;,&amp;quot;exhale&amp;quot;,&amp;quot;explosion_fuel_car&amp;quot;,&amp;quot;explosion_large&amp;quot;,&amp;quot;explosion_medium&amp;quot;,&lt;br /&gt;
&amp;quot;explosion_molotov&amp;quot;,&amp;quot;explosion_small&amp;quot;,&amp;quot;explosion_tiny&amp;quot;,&amp;quot;extinguisher&amp;quot;,&amp;quot;flame&amp;quot;,&amp;quot;fire&amp;quot;,&amp;quot;fire_med&amp;quot;,&amp;quot;fire_large&amp;quot;,&amp;quot;flamethrower&amp;quot;,&lt;br /&gt;
&amp;quot;fire_bike&amp;quot;,&amp;quot;fire_car&amp;quot;,&amp;quot;gunflash&amp;quot;,&amp;quot;gunsmoke&amp;quot;,&amp;quot;insects&amp;quot;,&amp;quot;heli_dust&amp;quot;,&amp;quot;jetpack&amp;quot;,&amp;quot;jetthrust&amp;quot;,&amp;quot;nitro&amp;quot;,&amp;quot;molotov_flame&amp;quot;,&lt;br /&gt;
&amp;quot;overheat_car&amp;quot;,&amp;quot;overheat_car_electric&amp;quot;,&amp;quot;prt_blood&amp;quot;,&amp;quot;prt_boatsplash&amp;quot;,&amp;quot;prt_bubble&amp;quot;,&amp;quot;prt_cardebris&amp;quot;,&amp;quot;prt_collisionsmoke&amp;quot;,&lt;br /&gt;
&amp;quot;prt_glass&amp;quot;,&amp;quot;prt_gunshell&amp;quot;,&amp;quot;prt_sand&amp;quot;,&amp;quot;prt_sand2&amp;quot;,&amp;quot;prt_smokeII_3_expand&amp;quot;,&amp;quot;prt_smoke_huge&amp;quot;,&amp;quot;prt_spark&amp;quot;,&amp;quot;prt_spark_2&amp;quot;,&lt;br /&gt;
&amp;quot;prt_splash&amp;quot;,&amp;quot;prt_wake&amp;quot;,&amp;quot;prt_watersplash&amp;quot;,&amp;quot;prt_wheeldirt&amp;quot;,&amp;quot;petrolcan&amp;quot;,&amp;quot;puke&amp;quot;,&amp;quot;riot_smoke&amp;quot;,&amp;quot;spraycan&amp;quot;,&amp;quot;smoke30lit&amp;quot;,&amp;quot;smoke30m&amp;quot;,&lt;br /&gt;
&amp;quot;smoke50lit&amp;quot;,&amp;quot;shootlight&amp;quot;,&amp;quot;smoke_flare&amp;quot;,&amp;quot;tank_fire&amp;quot;,&amp;quot;teargas&amp;quot;,&amp;quot;teargasAD&amp;quot;,&amp;quot;tree_hit_fir&amp;quot;,&amp;quot;tree_hit_palm&amp;quot;,&amp;quot;vent&amp;quot;,&amp;quot;vent2&amp;quot;,&lt;br /&gt;
&amp;quot;water_hydrant&amp;quot;,&amp;quot;water_ripples&amp;quot;,&amp;quot;water_speed&amp;quot;,&amp;quot;water_splash&amp;quot;,&amp;quot;water_splash_big&amp;quot;,&amp;quot;water_splsh_sml&amp;quot;,&amp;quot;water_swim&amp;quot;,&amp;quot;waterfall_end&amp;quot;,&lt;br /&gt;
&amp;quot;water_fnt_tme&amp;quot;,&amp;quot;water_fountain&amp;quot;,&amp;quot;wallbust&amp;quot;,&amp;quot;WS_factorysmoke&amp;quot;&lt;br /&gt;
}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center; font-size: 12px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!width=&amp;quot;150&amp;quot;|Name&lt;br /&gt;
!width=&amp;quot;300&amp;quot;|Description&lt;br /&gt;
&amp;lt;!--!width=&amp;quot;160&amp;quot;|Image--&amp;gt;&lt;br /&gt;
&amp;lt;!--!width=&amp;quot;50&amp;quot;|Rotatable--&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|blood_heli&lt;br /&gt;
|кровавый взрыв&lt;br /&gt;
|-&lt;br /&gt;
|boat_prop&lt;br /&gt;
|a surf &lt;br /&gt;
|-&lt;br /&gt;
|camflash&lt;br /&gt;
|небольшая вспышка&lt;br /&gt;
|-&lt;br /&gt;
|carwashspray&lt;br /&gt;
|пар, как на автомойке&lt;br /&gt;
|-&lt;br /&gt;
|cement&lt;br /&gt;
|цемент &lt;br /&gt;
|-&lt;br /&gt;
|cloudfast&lt;br /&gt;
|fast clouds &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|coke_puff&lt;br /&gt;
|puff of a coke &lt;br /&gt;
|-&lt;br /&gt;
|coke_trail&lt;br /&gt;
|льющаяся вода&lt;br /&gt;
|-&lt;br /&gt;
|cigarette_smoke&lt;br /&gt;
|дым от сигареты&lt;br /&gt;
|-&lt;br /&gt;
|explosion_barrel&lt;br /&gt;
|explosion and splinters of a box &lt;br /&gt;
|-&lt;br /&gt;
|explosion_crate&lt;br /&gt;
|explosion and splinters of the large box &lt;br /&gt;
|-&lt;br /&gt;
|explosion_door&lt;br /&gt;
|дым с щепками&lt;br /&gt;
|-&lt;br /&gt;
|exhale&lt;br /&gt;
|маленький дым &lt;br /&gt;
|-&lt;br /&gt;
|explosion_fuel_car&lt;br /&gt;
|взрыв машины&lt;br /&gt;
|-&lt;br /&gt;
|explosion_large&lt;br /&gt;
|большой взрыв&lt;br /&gt;
|-&lt;br /&gt;
|explosion_medium&lt;br /&gt;
|средний взрыв&lt;br /&gt;
|-&lt;br /&gt;
|explosion_molotov&lt;br /&gt;
|взрыв от коктейля Молотова&lt;br /&gt;
|-&lt;br /&gt;
|explosion_small&lt;br /&gt;
|маленький взрыв&lt;br /&gt;
|-&lt;br /&gt;
|explosion_tiny&lt;br /&gt;
|очень маленький взрыв&lt;br /&gt;
|-&lt;br /&gt;
|extinguisher&lt;br /&gt;
|пена огнетушителя&lt;br /&gt;
|-&lt;br /&gt;
|flame&lt;br /&gt;
|небольшой огонь&lt;br /&gt;
|-&lt;br /&gt;
|fire&lt;br /&gt;
|огонь&lt;br /&gt;
|-&lt;br /&gt;
|fire_med&lt;br /&gt;
|средний огонь&lt;br /&gt;
|-&lt;br /&gt;
|fire_large&lt;br /&gt;
|большой огонь&lt;br /&gt;
|-&lt;br /&gt;
|flamethrower&lt;br /&gt;
|fire of the flamethrower &lt;br /&gt;
|-&lt;br /&gt;
|fire_bike&lt;br /&gt;
|fire, as from a burning motorcycle &lt;br /&gt;
|-&lt;br /&gt;
|fire_car&lt;br /&gt;
|fire, as from the burning machine &lt;br /&gt;
|-&lt;br /&gt;
|gunflash&lt;br /&gt;
|as the bullet from a trunk takes off &lt;br /&gt;
|-&lt;br /&gt;
|gunsmoke&lt;br /&gt;
|дым от оружия&lt;br /&gt;
|-&lt;br /&gt;
|insects&lt;br /&gt;
|насекомые&lt;br /&gt;
|-&lt;br /&gt;
|heli_dust&lt;br /&gt;
|пыль, как от вертолёта&lt;br /&gt;
|-&lt;br /&gt;
|jetpack&lt;br /&gt;
|пламя джетпака&lt;br /&gt;
|-&lt;br /&gt;
|jetthrust&lt;br /&gt;
|пламя из глушителя машины&lt;br /&gt;
|- &lt;br /&gt;
|nitro&lt;br /&gt;
|нитро&lt;br /&gt;
|-&lt;br /&gt;
|molotov_flame&lt;br /&gt;
|огонь от коктейля Молотова&lt;br /&gt;
|-&lt;br /&gt;
|overheat_car&lt;br /&gt;
|smoke from damaged car &lt;br /&gt;
|-&lt;br /&gt;
|overheat_car_electric&lt;br /&gt;
|wrecked electro-machine &lt;br /&gt;
|-&lt;br /&gt;
|prt_blood&lt;br /&gt;
|маленький всплеск крови&lt;br /&gt;
|-&lt;br /&gt;
|prt_boatsplash&lt;br /&gt;
|пена&lt;br /&gt;
|-&lt;br /&gt;
|prt_bubble&lt;br /&gt;
|пузырь&lt;br /&gt;
|-&lt;br /&gt;
|prt_cardebris&lt;br /&gt;
|осколки от ящика&lt;br /&gt;
|-&lt;br /&gt;
|prt_collisionsmoke&lt;br /&gt;
|плотный белый дым&lt;br /&gt;
|-&lt;br /&gt;
|prt_glass&lt;br /&gt;
|ломающееся стекло&lt;br /&gt;
|-&lt;br /&gt;
|prt_gunshell&lt;br /&gt;
|shells &lt;br /&gt;
|-&lt;br /&gt;
|prt_sand&lt;br /&gt;
|рассеянный песок&lt;br /&gt;
|-&lt;br /&gt;
|prt_sand2&lt;br /&gt;
|чуть меньше песка&lt;br /&gt;
|-&lt;br /&gt;
|prt_smokeII_3_expand&lt;br /&gt;
|серый дым&lt;br /&gt;
|-&lt;br /&gt;
|prt_smoke_huge&lt;br /&gt;
|много серого дыма&lt;br /&gt;
|-&lt;br /&gt;
|prt_spark&lt;br /&gt;
|искры&lt;br /&gt;
|-&lt;br /&gt;
|prt_spark_2&lt;br /&gt;
|большие искры &lt;br /&gt;
|-&lt;br /&gt;
|prt_splash&lt;br /&gt;
|взрыв&lt;br /&gt;
|-&lt;br /&gt;
|prt_wake&lt;br /&gt;
|волна&lt;br /&gt;
|-&lt;br /&gt;
|prt_watersplash&lt;br /&gt;
|всплеск&lt;br /&gt;
|-&lt;br /&gt;
|prt_wheeldirt&lt;br /&gt;
|искры от колёс машины&lt;br /&gt;
|- &lt;br /&gt;
|petrolcan&lt;br /&gt;
|струя&lt;br /&gt;
|-&lt;br /&gt;
|puke&lt;br /&gt;
|рвота&lt;br /&gt;
|-&lt;br /&gt;
|riot_smoke&lt;br /&gt;
|there is a lot of smoke &lt;br /&gt;
|-&lt;br /&gt;
|spraycan&lt;br /&gt;
|spray &lt;br /&gt;
|-&lt;br /&gt;
|smoke30lit&lt;br /&gt;
|a smoke &lt;br /&gt;
|-&lt;br /&gt;
|smoke30m&lt;br /&gt;
|a rich smoke &lt;br /&gt;
|-&lt;br /&gt;
|smoke50lit&lt;br /&gt;
|more richer smoke &lt;br /&gt;
|-&lt;br /&gt;
|shootlight&lt;br /&gt;
|a light being shot out (used for searchlights), sparks and glass&lt;br /&gt;
|-&lt;br /&gt;
|smoke_flare&lt;br /&gt;
|a light being shot out, sparks and glass, it makes a good firework effect&lt;br /&gt;
|-&lt;br /&gt;
|tank_fire&lt;br /&gt;
|a shot from the tank &lt;br /&gt;
|-&lt;br /&gt;
|teargas&lt;br /&gt;
|gas, as from gas grenade &lt;br /&gt;
|-&lt;br /&gt;
|teargasAD&lt;br /&gt;
|gas, as from small gas grenade &lt;br /&gt;
|-&lt;br /&gt;
|tree_hit_fir&lt;br /&gt;
|leaf falling &lt;br /&gt;
|-&lt;br /&gt;
|tree_hit_palm&lt;br /&gt;
|falling of pair large leafs &lt;br /&gt;
|-&lt;br /&gt;
|vent&lt;br /&gt;
|slowly dissipating a smoke &lt;br /&gt;
|-&lt;br /&gt;
|vent2&lt;br /&gt;
|practically too most &lt;br /&gt;
|-&lt;br /&gt;
|water_hydrant&lt;br /&gt;
|the large flow of water &lt;br /&gt;
|-&lt;br /&gt;
|water_ripples&lt;br /&gt;
|круги на воде&lt;br /&gt;
|-&lt;br /&gt;
|water_speed&lt;br /&gt;
|the large sparks from water &lt;br /&gt;
|-&lt;br /&gt;
|water_splash&lt;br /&gt;
|small sparks from water &lt;br /&gt;
|-&lt;br /&gt;
|water_splash_big&lt;br /&gt;
|average sparks &lt;br /&gt;
|-&lt;br /&gt;
|water_splsh_sml&lt;br /&gt;
|sparks, only them it is not visible almost &lt;br /&gt;
|-&lt;br /&gt;
|water_swim&lt;br /&gt;
|small sparks at navigation &lt;br /&gt;
|-&lt;br /&gt;
|waterfall_end&lt;br /&gt;
|there is a lot of pair &lt;br /&gt;
|-&lt;br /&gt;
|water_fnt_tme&lt;br /&gt;
|the large flow of water &lt;br /&gt;
|-&lt;br /&gt;
|water_fountain&lt;br /&gt;
|фонтан воды&lt;br /&gt;
|-&lt;br /&gt;
|wallbust&lt;br /&gt;
|a disappearing heap pair &lt;br /&gt;
|-&lt;br /&gt;
|WS_factorysmoke&lt;br /&gt;
|дым&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Связанные функции скриптинга==&lt;br /&gt;
===Клиент===&lt;br /&gt;
* [[RU/createEffect]]&lt;br /&gt;
* [[RU/setEffectSpeed]]&lt;br /&gt;
* [[RU/getEffectSpeed]]&lt;br /&gt;
* [[RU/setEffectDensity]]&lt;br /&gt;
* [[RU/setEffectDensity]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Element Types]]&lt;/div&gt;</summary>
		<author><name>Strix</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Category:%D0%AD%D1%84%D1%84%D0%B5%D0%BA%D1%82&amp;diff=44410</id>
		<title>Category:Эффект</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Category:%D0%AD%D1%84%D1%84%D0%B5%D0%BA%D1%82&amp;diff=44410"/>
		<updated>2015-02-09T10:27:29Z</updated>

		<summary type="html">&lt;p&gt;Strix: Created page with &amp;quot;{{New items|3.0140|1.4| Класс Effect представляет такие элементы эффектов в игровом мире, как дым, искры огон...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{New items|3.0140|1.4|&lt;br /&gt;
Класс Effect представляет такие элементы эффектов в игровом мире, как дым, искры огонь и так далее.&lt;br /&gt;
&lt;br /&gt;
Тип элементов этого класса — '''&amp;quot;effect&amp;quot;'''.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
== Список эффектов ==&lt;br /&gt;
Всего существует 82 эффекта.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;--Таблица, содержащая названия всех эффектов.&lt;br /&gt;
local effectNames = {&lt;br /&gt;
&amp;quot;blood_heli&amp;quot;,&amp;quot;boat_prop&amp;quot;,&amp;quot;camflash&amp;quot;,&amp;quot;carwashspray&amp;quot;,&amp;quot;cement&amp;quot;,&amp;quot;cloudfast&amp;quot;,&amp;quot;coke_puff&amp;quot;,&amp;quot;coke_trail&amp;quot;,&amp;quot;cigarette_smoke&amp;quot;,&lt;br /&gt;
&amp;quot;explosion_barrel&amp;quot;,&amp;quot;explosion_crate&amp;quot;,&amp;quot;explosion_door&amp;quot;,&amp;quot;exhale&amp;quot;,&amp;quot;explosion_fuel_car&amp;quot;,&amp;quot;explosion_large&amp;quot;,&amp;quot;explosion_medium&amp;quot;,&lt;br /&gt;
&amp;quot;explosion_molotov&amp;quot;,&amp;quot;explosion_small&amp;quot;,&amp;quot;explosion_tiny&amp;quot;,&amp;quot;extinguisher&amp;quot;,&amp;quot;flame&amp;quot;,&amp;quot;fire&amp;quot;,&amp;quot;fire_med&amp;quot;,&amp;quot;fire_large&amp;quot;,&amp;quot;flamethrower&amp;quot;,&lt;br /&gt;
&amp;quot;fire_bike&amp;quot;,&amp;quot;fire_car&amp;quot;,&amp;quot;gunflash&amp;quot;,&amp;quot;gunsmoke&amp;quot;,&amp;quot;insects&amp;quot;,&amp;quot;heli_dust&amp;quot;,&amp;quot;jetpack&amp;quot;,&amp;quot;jetthrust&amp;quot;,&amp;quot;nitro&amp;quot;,&amp;quot;molotov_flame&amp;quot;,&lt;br /&gt;
&amp;quot;overheat_car&amp;quot;,&amp;quot;overheat_car_electric&amp;quot;,&amp;quot;prt_blood&amp;quot;,&amp;quot;prt_boatsplash&amp;quot;,&amp;quot;prt_bubble&amp;quot;,&amp;quot;prt_cardebris&amp;quot;,&amp;quot;prt_collisionsmoke&amp;quot;,&lt;br /&gt;
&amp;quot;prt_glass&amp;quot;,&amp;quot;prt_gunshell&amp;quot;,&amp;quot;prt_sand&amp;quot;,&amp;quot;prt_sand2&amp;quot;,&amp;quot;prt_smokeII_3_expand&amp;quot;,&amp;quot;prt_smoke_huge&amp;quot;,&amp;quot;prt_spark&amp;quot;,&amp;quot;prt_spark_2&amp;quot;,&lt;br /&gt;
&amp;quot;prt_splash&amp;quot;,&amp;quot;prt_wake&amp;quot;,&amp;quot;prt_watersplash&amp;quot;,&amp;quot;prt_wheeldirt&amp;quot;,&amp;quot;petrolcan&amp;quot;,&amp;quot;puke&amp;quot;,&amp;quot;riot_smoke&amp;quot;,&amp;quot;spraycan&amp;quot;,&amp;quot;smoke30lit&amp;quot;,&amp;quot;smoke30m&amp;quot;,&lt;br /&gt;
&amp;quot;smoke50lit&amp;quot;,&amp;quot;shootlight&amp;quot;,&amp;quot;smoke_flare&amp;quot;,&amp;quot;tank_fire&amp;quot;,&amp;quot;teargas&amp;quot;,&amp;quot;teargasAD&amp;quot;,&amp;quot;tree_hit_fir&amp;quot;,&amp;quot;tree_hit_palm&amp;quot;,&amp;quot;vent&amp;quot;,&amp;quot;vent2&amp;quot;,&lt;br /&gt;
&amp;quot;water_hydrant&amp;quot;,&amp;quot;water_ripples&amp;quot;,&amp;quot;water_speed&amp;quot;,&amp;quot;water_splash&amp;quot;,&amp;quot;water_splash_big&amp;quot;,&amp;quot;water_splsh_sml&amp;quot;,&amp;quot;water_swim&amp;quot;,&amp;quot;waterfall_end&amp;quot;,&lt;br /&gt;
&amp;quot;water_fnt_tme&amp;quot;,&amp;quot;water_fountain&amp;quot;,&amp;quot;wallbust&amp;quot;,&amp;quot;WS_factorysmoke&amp;quot;&lt;br /&gt;
}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center; font-size: 12px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
!width=&amp;quot;150&amp;quot;|Name&lt;br /&gt;
!width=&amp;quot;300&amp;quot;|Description&lt;br /&gt;
&amp;lt;!--!width=&amp;quot;160&amp;quot;|Image--&amp;gt;&lt;br /&gt;
&amp;lt;!--!width=&amp;quot;50&amp;quot;|Rotatable--&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|blood_heli&lt;br /&gt;
|кровавый взрыв&lt;br /&gt;
|-&lt;br /&gt;
|boat_prop&lt;br /&gt;
|a surf &lt;br /&gt;
|-&lt;br /&gt;
|camflash&lt;br /&gt;
|небольшая вспышка&lt;br /&gt;
|-&lt;br /&gt;
|carwashspray&lt;br /&gt;
|пар, как на автомойке&lt;br /&gt;
|-&lt;br /&gt;
|cement&lt;br /&gt;
|цемент &lt;br /&gt;
|-&lt;br /&gt;
|cloudfast&lt;br /&gt;
|fast clouds &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|coke_puff&lt;br /&gt;
|puff of a coke &lt;br /&gt;
|-&lt;br /&gt;
|coke_trail&lt;br /&gt;
|льющаяся вода&lt;br /&gt;
|-&lt;br /&gt;
|cigarette_smoke&lt;br /&gt;
|дым от сигареты&lt;br /&gt;
|-&lt;br /&gt;
|explosion_barrel&lt;br /&gt;
|explosion and splinters of a box &lt;br /&gt;
|-&lt;br /&gt;
|explosion_crate&lt;br /&gt;
|explosion and splinters of the large box &lt;br /&gt;
|-&lt;br /&gt;
|explosion_door&lt;br /&gt;
|дым с щепками&lt;br /&gt;
|-&lt;br /&gt;
|exhale&lt;br /&gt;
|маленький дым &lt;br /&gt;
|-&lt;br /&gt;
|explosion_fuel_car&lt;br /&gt;
|взрыв машины&lt;br /&gt;
|-&lt;br /&gt;
|explosion_large&lt;br /&gt;
|большой взрыв&lt;br /&gt;
|-&lt;br /&gt;
|explosion_medium&lt;br /&gt;
|средний взрыв&lt;br /&gt;
|-&lt;br /&gt;
|explosion_molotov&lt;br /&gt;
|взрыв от коктейля Молотова&lt;br /&gt;
|-&lt;br /&gt;
|explosion_small&lt;br /&gt;
|маленький взрыв&lt;br /&gt;
|-&lt;br /&gt;
|explosion_tiny&lt;br /&gt;
|очень маленький взрыв&lt;br /&gt;
|-&lt;br /&gt;
|extinguisher&lt;br /&gt;
|пена огнетушителя&lt;br /&gt;
|-&lt;br /&gt;
|flame&lt;br /&gt;
|небольшой огонь&lt;br /&gt;
|-&lt;br /&gt;
|fire&lt;br /&gt;
|огонь&lt;br /&gt;
|-&lt;br /&gt;
|fire_med&lt;br /&gt;
|средний огонь&lt;br /&gt;
|-&lt;br /&gt;
|fire_large&lt;br /&gt;
|большой огонь&lt;br /&gt;
|-&lt;br /&gt;
|flamethrower&lt;br /&gt;
|fire of the flamethrower &lt;br /&gt;
|-&lt;br /&gt;
|fire_bike&lt;br /&gt;
|fire, as from a burning motorcycle &lt;br /&gt;
|-&lt;br /&gt;
|fire_car&lt;br /&gt;
|fire, as from the burning machine &lt;br /&gt;
|-&lt;br /&gt;
|gunflash&lt;br /&gt;
|as the bullet from a trunk takes off &lt;br /&gt;
|-&lt;br /&gt;
|gunsmoke&lt;br /&gt;
|дым от оружия&lt;br /&gt;
|-&lt;br /&gt;
|insects&lt;br /&gt;
|насекомые&lt;br /&gt;
|-&lt;br /&gt;
|heli_dust&lt;br /&gt;
|пыль, как от вертолёта&lt;br /&gt;
|-&lt;br /&gt;
|jetpack&lt;br /&gt;
|пламя джетпака&lt;br /&gt;
|-&lt;br /&gt;
|jetthrust&lt;br /&gt;
|пламя из глушителя машины&lt;br /&gt;
|- &lt;br /&gt;
|nitro&lt;br /&gt;
|нитро&lt;br /&gt;
|-&lt;br /&gt;
|molotov_flame&lt;br /&gt;
|огонь от коктейля Молотова&lt;br /&gt;
|-&lt;br /&gt;
|overheat_car&lt;br /&gt;
|smoke from damaged car &lt;br /&gt;
|-&lt;br /&gt;
|overheat_car_electric&lt;br /&gt;
|wrecked electro-machine &lt;br /&gt;
|-&lt;br /&gt;
|prt_blood&lt;br /&gt;
|маленький всплеск крови&lt;br /&gt;
|-&lt;br /&gt;
|prt_boatsplash&lt;br /&gt;
|пена&lt;br /&gt;
|-&lt;br /&gt;
|prt_bubble&lt;br /&gt;
|пузырь&lt;br /&gt;
|-&lt;br /&gt;
|prt_cardebris&lt;br /&gt;
|осколки от ящика&lt;br /&gt;
|-&lt;br /&gt;
|prt_collisionsmoke&lt;br /&gt;
|плотный белый дым&lt;br /&gt;
|-&lt;br /&gt;
|prt_glass&lt;br /&gt;
|ломающееся стекло&lt;br /&gt;
|-&lt;br /&gt;
|prt_gunshell&lt;br /&gt;
|shells &lt;br /&gt;
|-&lt;br /&gt;
|prt_sand&lt;br /&gt;
|рассеянный песок&lt;br /&gt;
|-&lt;br /&gt;
|prt_sand2&lt;br /&gt;
|чуть меньше песка&lt;br /&gt;
|-&lt;br /&gt;
|prt_smokeII_3_expand&lt;br /&gt;
|серый дым&lt;br /&gt;
|-&lt;br /&gt;
|prt_smoke_huge&lt;br /&gt;
|много серого дыма&lt;br /&gt;
|-&lt;br /&gt;
|prt_spark&lt;br /&gt;
|искры&lt;br /&gt;
|-&lt;br /&gt;
|prt_spark_2&lt;br /&gt;
|большие искры &lt;br /&gt;
|-&lt;br /&gt;
|prt_splash&lt;br /&gt;
|взрыв&lt;br /&gt;
|-&lt;br /&gt;
|prt_wake&lt;br /&gt;
|волна&lt;br /&gt;
|-&lt;br /&gt;
|prt_watersplash&lt;br /&gt;
|всплеск&lt;br /&gt;
|-&lt;br /&gt;
|prt_wheeldirt&lt;br /&gt;
|искры от колёс машины&lt;br /&gt;
|- &lt;br /&gt;
|petrolcan&lt;br /&gt;
|струя&lt;br /&gt;
|-&lt;br /&gt;
|puke&lt;br /&gt;
|рвота&lt;br /&gt;
|-&lt;br /&gt;
|riot_smoke&lt;br /&gt;
|there is a lot of smoke &lt;br /&gt;
|-&lt;br /&gt;
|spraycan&lt;br /&gt;
|spray &lt;br /&gt;
|-&lt;br /&gt;
|smoke30lit&lt;br /&gt;
|a smoke &lt;br /&gt;
|-&lt;br /&gt;
|smoke30m&lt;br /&gt;
|a rich smoke &lt;br /&gt;
|-&lt;br /&gt;
|smoke50lit&lt;br /&gt;
|more richer smoke &lt;br /&gt;
|-&lt;br /&gt;
|shootlight&lt;br /&gt;
|a light being shot out (used for searchlights), sparks and glass&lt;br /&gt;
|-&lt;br /&gt;
|smoke_flare&lt;br /&gt;
|a light being shot out, sparks and glass, it makes a good firework effect&lt;br /&gt;
|-&lt;br /&gt;
|tank_fire&lt;br /&gt;
|a shot from the tank &lt;br /&gt;
|-&lt;br /&gt;
|teargas&lt;br /&gt;
|gas, as from gas grenade &lt;br /&gt;
|-&lt;br /&gt;
|teargasAD&lt;br /&gt;
|gas, as from small gas grenade &lt;br /&gt;
|-&lt;br /&gt;
|tree_hit_fir&lt;br /&gt;
|leaf falling &lt;br /&gt;
|-&lt;br /&gt;
|tree_hit_palm&lt;br /&gt;
|falling of pair large leafs &lt;br /&gt;
|-&lt;br /&gt;
|vent&lt;br /&gt;
|slowly dissipating a smoke &lt;br /&gt;
|-&lt;br /&gt;
|vent2&lt;br /&gt;
|practically too most &lt;br /&gt;
|-&lt;br /&gt;
|water_hydrant&lt;br /&gt;
|the large flow of water &lt;br /&gt;
|-&lt;br /&gt;
|water_ripples&lt;br /&gt;
|круги на воде&lt;br /&gt;
|-&lt;br /&gt;
|water_speed&lt;br /&gt;
|the large sparks from water &lt;br /&gt;
|-&lt;br /&gt;
|water_splash&lt;br /&gt;
|small sparks from water &lt;br /&gt;
|-&lt;br /&gt;
|water_splash_big&lt;br /&gt;
|average sparks &lt;br /&gt;
|-&lt;br /&gt;
|water_splsh_sml&lt;br /&gt;
|sparks, only them it is not visible almost &lt;br /&gt;
|-&lt;br /&gt;
|water_swim&lt;br /&gt;
|small sparks at navigation &lt;br /&gt;
|-&lt;br /&gt;
|waterfall_end&lt;br /&gt;
|there is a lot of pair &lt;br /&gt;
|-&lt;br /&gt;
|water_fnt_tme&lt;br /&gt;
|the large flow of water &lt;br /&gt;
|-&lt;br /&gt;
|water_fountain&lt;br /&gt;
|фонтан воды&lt;br /&gt;
|-&lt;br /&gt;
|wallbust&lt;br /&gt;
|a disappearing heap pair &lt;br /&gt;
|-&lt;br /&gt;
|WS_factorysmoke&lt;br /&gt;
|дым&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Связанные функциии скриптинга==&lt;br /&gt;
===Клиент===&lt;br /&gt;
* [[RU/createEffect]]&lt;br /&gt;
* [[RU/setEffectSpeed]]&lt;br /&gt;
* [[RU/getEffectSpeed]]&lt;br /&gt;
* [[RU/setEffectDensity]]&lt;br /&gt;
* [[RU/setEffectDensity]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Element Types]]&lt;/div&gt;</summary>
		<author><name>Strix</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RU/createEffect&amp;diff=44409</id>
		<title>RU/createEffect</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RU/createEffect&amp;diff=44409"/>
		<updated>2015-02-09T10:04:16Z</updated>

		<summary type="html">&lt;p&gt;Strix: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{RU/Client function}}&lt;br /&gt;
{{New items|3.0140|1.4|&lt;br /&gt;
Создает [[Element/Effect|эффект]] на указанной позиции.&lt;br /&gt;
}}&lt;br /&gt;
{{RU/Note|Не все эффекты поворачиваются (например, эффект &amp;quot;fire&amp;quot;).}}&lt;br /&gt;
==Синтаксис== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;effect createEffect ( string name, float x, float y, float z [, float rX, float rY, float rZ, float drawDistance = 0 ] )&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{RU/OOP||[[Effect]]}}&lt;br /&gt;
&lt;br /&gt;
===Обязательные аргументы=== &lt;br /&gt;
*'''name:''' [[Element/Effect#Effects_list|Название эффекта]].&lt;br /&gt;
*'''x:''' Число с плавающей точкой, представляющее координату X на карте.&lt;br /&gt;
*'''y:''' Число с плавающей точкой, представляющее координату Y на карте.&lt;br /&gt;
*'''z:''' Число с плавающей точкой, представляющее координату Z на карте.&lt;br /&gt;
&lt;br /&gt;
===Необязательные аргументы===&lt;br /&gt;
{{RU/OptionalArg}}&lt;br /&gt;
*'''rX:''' Число с плавающей точкой, представляющее вращение по оси X в градусах.&lt;br /&gt;
*'''rY:''' Число с плавающей точкой, представляющее вращение по оси Y в градусах.&lt;br /&gt;
*'''rZ:''' Число с плавающей точкой, представляющее вращение по оси Z в градусах.&lt;br /&gt;
{{New items|3.06892|1.4 r6892|&lt;br /&gt;
*'''drawDistance:''' Число с плавающей точкой от 1 до 8191, представляющее дистанцию прорисовки эффекта. Укажите 0, чтобы использовать дистанцию прорисовки по умолчанию.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Возвращает ===&lt;br /&gt;
Возвращает элемент [[Element/Effect|эффекта]], если создание было успешным, иначе ''false''.&lt;br /&gt;
&lt;br /&gt;
== Пример == &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;effect&amp;quot;, &lt;br /&gt;
	function(cmd, name)&lt;br /&gt;
		local x, y, z = getElementPosition(localPlayer)&lt;br /&gt;
		if createEffect(name, x, y, z) then&lt;br /&gt;
			outputChatBox(&amp;quot;Эффект создан!&amp;quot;)&lt;br /&gt;
		else&lt;br /&gt;
			outputChatBox(&amp;quot;Неверное название эффекта.&amp;quot;)&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;
&lt;br /&gt;
Этот пример синхронизирует эффект вспышки камеры (без этого только локальные игроки могут видеть её).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler(&amp;quot;onClientPlayerWeaponFire&amp;quot;, root,&lt;br /&gt;
	function(weapon)&lt;br /&gt;
		if weapon == 43 and source ~= localPlayer then&lt;br /&gt;
			local x, y, z = getPedWeaponMuzzlePosition(source)&lt;br /&gt;
			createEffect(&amp;quot;camflash&amp;quot;, x, y, z)&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;
== Смотрите также ==&lt;br /&gt;
{{RU/Client_Effects_functions}}&lt;br /&gt;
[[en:createEffect]]&lt;/div&gt;</summary>
		<author><name>Strix</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=InjectBrowserMouseWheel&amp;diff=44311</id>
		<title>InjectBrowserMouseWheel</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=InjectBrowserMouseWheel&amp;diff=44311"/>
		<updated>2015-02-06T20:15:37Z</updated>

		<summary type="html">&lt;p&gt;Strix: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client_function}}&lt;br /&gt;
This function injects mouse scrolling. &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 injectBrowserMouseWheel ( browser webBrowser, int verticalScroll, int horizontalScroll )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required arguments===&lt;br /&gt;
*'''webBrowser:''' The web browser&lt;br /&gt;
*'''verticalScroll''': Amount of units you want the browser to scroll along the Y-axe.&lt;br /&gt;
*'''horizontalScroll''': Amount of units you want the browser to scroll along the X-axe.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the mouse action was successfully injected, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
Todo&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
Todo&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{CEF_functions}}&lt;/div&gt;</summary>
		<author><name>Strix</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Talk:OnClientExplosion&amp;diff=44052</id>
		<title>Talk:OnClientExplosion</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Talk:OnClientExplosion&amp;diff=44052"/>
		<updated>2015-01-20T10:23:24Z</updated>

		<summary type="html">&lt;p&gt;Strix: Created page with &amp;quot;Yes, it is. Also, this event is triggered only for server-side explosions. - ~~~~&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Yes, it is. Also, this event is triggered only for server-side explosions. - [[User:Strix|Strix]] ([[User talk:Strix|talk]]) 10:23, 20 January 2015 (UTC)&lt;/div&gt;</summary>
		<author><name>Strix</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetResourceFromName&amp;diff=43875</id>
		<title>GetResourceFromName</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetResourceFromName&amp;diff=43875"/>
		<updated>2015-01-05T12:16:09Z</updated>

		<summary type="html">&lt;p&gt;Strix: add oop syntax&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function is used to retrieve a resource from its name. A resource's name is the same as its folder or file archive name on the server (without the extension).&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
resource getResourceFromName ( string resourceName )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP|This function is a static function underneath the Resource class.|[[Resource]].getFromName}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''resourceName:''' the name of the resource you wish to get.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns the ''resource'' with the specified name, or ''false'' if no resource of that name exists.&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 prints out a message to the chatbox when a resource named ''playerblips'' is started.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onStart( theResource )&lt;br /&gt;
     local blipsResource = getResourceFromName ( &amp;quot;playerblips&amp;quot; ) -- get the resource of name &amp;quot;playerblips&amp;quot;&lt;br /&gt;
     if ( blipsResource and theResource == blipsResource ) then -- check if the resource started was it&lt;br /&gt;
          outputChatBox ( &amp;quot;Blips resource started!&amp;quot; )&lt;br /&gt;
     end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onResourceStart&amp;quot;, getRootElement(), onStart )&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;
{{Resource_functions}}&lt;/div&gt;</summary>
		<author><name>Strix</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DeleteResource&amp;diff=43874</id>
		<title>DeleteResource</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DeleteResource&amp;diff=43874"/>
		<updated>2015-01-05T12:14:28Z</updated>

		<summary type="html">&lt;p&gt;Strix: fix oop syntax&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server function}}&lt;br /&gt;
{{Note|This function only works properly from 1.3.0-3912 (r3912). In case you are below r3912 you need to create a directory called &amp;quot;trash&amp;quot; inside of the &amp;quot;resources-cache&amp;quot; folder.}}&lt;br /&gt;
This function deletes a resource from the MTA memory and moves it to the &amp;quot;/resources-cache/trash/&amp;quot; directory.&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool deleteResource ( string resourceName )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP|This function is a static function underneath the Resource class.|[[Resource]].delete}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''resourceName:''' The name of resource to delete.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the resource has been deleted successfully, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example adds a command to delete a certain resource (admins only, no spaces in resource name allowed).&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler ( &amp;quot;removeresource&amp;quot;,&lt;br /&gt;
function ( playerSource, commandName, name )&lt;br /&gt;
    --Check if it is an admin using this command&lt;br /&gt;
    if not isObjectInACLGroup ( &amp;quot;user.&amp;quot; .. getAccountName ( getPlayerAccount ( playerSource ) ), aclGetGroup ( &amp;quot;Admin&amp;quot; ) ) then&lt;br /&gt;
        outputChatBox ( &amp;quot;You are not allowed to use this command&amp;quot;, playerSource )&lt;br /&gt;
        return&lt;br /&gt;
    end &lt;br /&gt;
    --Did the user pass a valid resource name?&lt;br /&gt;
    if not name or name == &amp;quot;&amp;quot; or name == &amp;quot; &amp;quot; then&lt;br /&gt;
        outputChatBox ( &amp;quot;An invalid resource name has been passed (/removeresource &amp;lt;name&amp;gt;)&amp;quot;, playerSource )&lt;br /&gt;
        return&lt;br /&gt;
    end&lt;br /&gt;
    --Let us check if the resource name exists&lt;br /&gt;
    --Get all resources&lt;br /&gt;
    local resourceTable = getResources ( ) &lt;br /&gt;
    for resourceKey, resourceValue in ipairs ( resourceTable ) do&lt;br /&gt;
        local resourceName = getResourceName ( resourceValue )&lt;br /&gt;
        --Does the resource exist?&lt;br /&gt;
        if name == resourceName then&lt;br /&gt;
            --Stop the resource (maybe it is running)&lt;br /&gt;
            stopResource ( resourceValue )&lt;br /&gt;
            --Delete it&lt;br /&gt;
            local deleted = deleteResource ( name )&lt;br /&gt;
            if deleted then&lt;br /&gt;
                outputChatBox ( &amp;quot;Resource &amp;quot; .. name .. &amp;quot; has been successfully removed&amp;quot;, playerSource )&lt;br /&gt;
            else&lt;br /&gt;
                outputChatBox ( &amp;quot;There is an unknown problem with the resource&amp;quot;, playerSource )			&lt;br /&gt;
            end&lt;br /&gt;
            --The function is finished and was successful, return to stop it&lt;br /&gt;
            return&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
    --If a resource with the specified name does not exist show an error message&lt;br /&gt;
    outputChatBox ( &amp;quot;The specified resource does not exist&amp;quot;, playerSource )&lt;br /&gt;
end )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
{{Requirements|1.1.1-9.03316|n/a|}}&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Resource_functions}}&lt;/div&gt;</summary>
		<author><name>Strix</name></author>
	</entry>
</feed>