<?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=Jurandovsky</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=Jurandovsky"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Jurandovsky"/>
	<updated>2026-05-20T10:11:29Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=PL/getAccountsBySerial&amp;diff=46818</id>
		<title>PL/getAccountsBySerial</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PL/getAccountsBySerial&amp;diff=46818"/>
		<updated>2016-03-05T21:38:12Z</updated>

		<summary type="html">&lt;p&gt;Jurandovsky: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server function}}&lt;br /&gt;
{{New items|3.014|1.4|&lt;br /&gt;
Funkcja ta zwraca tabelę [[table]] zawierającą wszystkie konta [[account]] które zalogowały się na dany [[serial]].&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Składnia== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
table getAccountsBySerial ( string serial )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP|This function is a static function underneath the Account class.|Account.getAllBySerial||}}&lt;br /&gt;
===Wymagane argumenty=== &lt;br /&gt;
*'''serial:''' [[serial]] z którego chcemy pobrać konta&lt;br /&gt;
&lt;br /&gt;
===Zwracana wartość===&lt;br /&gt;
Funkcja ta zwraca tabelę ''[[table]]'' zawierającą konta powiązane z tym serialem. ''Fałsz'' jeżeli podaliśmy zły [[serial]] w argumencie.&lt;br /&gt;
&lt;br /&gt;
==Przykład== &lt;br /&gt;
Przykład ten dodaje komendę ''getAccounts'' która wyświetla ilość kont powiązaną z naszym serialem.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;getAccounts&amp;quot;, &lt;br /&gt;
	function (player, cmd)&lt;br /&gt;
		local serial = getPlayerSerial(player)&lt;br /&gt;
		local accounts = getAccountsBySerial(serial)&lt;br /&gt;
		outputChatBox(&amp;quot;You have &amp;quot; .. #accounts .. &amp;quot; accounts.&amp;quot;, player)&lt;br /&gt;
	end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Zobacz również==&lt;br /&gt;
{{Account_functions}}&lt;br /&gt;
&lt;br /&gt;
[[en:getAccountsBySerial]]&lt;/div&gt;</summary>
		<author><name>Jurandovsky</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetAccountsBySerial&amp;diff=46817</id>
		<title>GetAccountsBySerial</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetAccountsBySerial&amp;diff=46817"/>
		<updated>2016-03-05T21:37:00Z</updated>

		<summary type="html">&lt;p&gt;Jurandovsky: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server function}}&lt;br /&gt;
{{New items|3.014|1.4|&lt;br /&gt;
This function returns a [[table]] containing all accounts that were logged onto from specified [[serial]]. If the serial is empty string, it will return all accounts that were never logged onto.&lt;br /&gt;
}}&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;
table getAccountsBySerial ( string serial )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP|This function is a static function underneath the Account class.|Account.getAllBySerial||}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''serial:''' The [[serial]] to get accounts from&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''[[table]]'' containing the accounts associated with specified serial. Returns ''false'' if invalid arguments were specified.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example adds command ''getAccounts'' that outputs the number of accounts a player has in the chat box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;getAccounts&amp;quot;, &lt;br /&gt;
	function (player, cmd)&lt;br /&gt;
		local serial = getPlayerSerial(player)&lt;br /&gt;
		local accounts = getAccountsBySerial(serial)&lt;br /&gt;
		outputChatBox(&amp;quot;You have &amp;quot; .. #accounts .. &amp;quot; accounts.&amp;quot;, player)&lt;br /&gt;
	end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Account_functions}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[pl:getAccountsBySerial]]&lt;/div&gt;</summary>
		<author><name>Jurandovsky</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=PL/getAccountsBySerials&amp;diff=46816</id>
		<title>PL/getAccountsBySerials</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PL/getAccountsBySerials&amp;diff=46816"/>
		<updated>2016-03-05T21:36:26Z</updated>

		<summary type="html">&lt;p&gt;Jurandovsky: Jurandovsky moved page PL/getAccountsBySerials to PL/getAccountsBySerial&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[PL/getAccountsBySerial]]&lt;/div&gt;</summary>
		<author><name>Jurandovsky</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=PL/getAccountsBySerial&amp;diff=46815</id>
		<title>PL/getAccountsBySerial</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PL/getAccountsBySerial&amp;diff=46815"/>
		<updated>2016-03-05T21:36:25Z</updated>

		<summary type="html">&lt;p&gt;Jurandovsky: Jurandovsky moved page PL/getAccountsBySerials to PL/getAccountsBySerial&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server function}}&lt;br /&gt;
{{New items|3.014|1.4|&lt;br /&gt;
Funkcja ta zwraca tabelę [[table]] zawierającą wszystkie konta [[accounts]] które zalogowały się na dany [[serial]].&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Składnia== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
table getAccountsBySerial ( string serial )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP|This function is a static function underneath the Account class.|Account.getAllBySerial||}}&lt;br /&gt;
===Wymagane argumenty=== &lt;br /&gt;
*'''serial:''' [[serial]] z którego chcemy pobrać konta&lt;br /&gt;
&lt;br /&gt;
===Zwracana wartość===&lt;br /&gt;
Funkcja ta zwraca tabelę ''[[table]]'' zawierającą konta powiązane z tym serialem. ''Fałsz'' jeżeli podaliśmy zły [[serial]] w argumencie.&lt;br /&gt;
&lt;br /&gt;
==Przykład== &lt;br /&gt;
Przykład ten dodaje komendę ''getAccounts'' która wyświetla ilość kont powiązaną z naszym serialem.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;getAccounts&amp;quot;, &lt;br /&gt;
	function (player, cmd)&lt;br /&gt;
		local serial = getPlayerSerial(player)&lt;br /&gt;
		local accounts = getAccountsBySerial(serial)&lt;br /&gt;
		outputChatBox(&amp;quot;You have &amp;quot; .. #accounts .. &amp;quot; accounts.&amp;quot;, player)&lt;br /&gt;
	end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Zobacz również==&lt;br /&gt;
{{Account_functions}}&lt;br /&gt;
&lt;br /&gt;
[[en:getAccountsBySerial]]&lt;/div&gt;</summary>
		<author><name>Jurandovsky</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetAccountsBySerial&amp;diff=46814</id>
		<title>GetAccountsBySerial</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetAccountsBySerial&amp;diff=46814"/>
		<updated>2016-03-05T21:34:17Z</updated>

		<summary type="html">&lt;p&gt;Jurandovsky: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server function}}&lt;br /&gt;
{{New items|3.014|1.4|&lt;br /&gt;
This function returns a [[table]] containing all accounts that were logged onto from specified [[serial]]. If the serial is empty string, it will return all accounts that were never logged onto.&lt;br /&gt;
}}&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;
table getAccountsBySerial ( string serial )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP|This function is a static function underneath the Account class.|Account.getAllBySerial||}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''serial:''' The [[serial]] to get accounts from&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''[[table]]'' containing the accounts associated with specified serial. Returns ''false'' if invalid arguments were specified.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example adds command ''getAccounts'' that outputs the number of accounts a player has in the chat box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;getAccounts&amp;quot;, &lt;br /&gt;
	function (player, cmd)&lt;br /&gt;
		local serial = getPlayerSerial(player)&lt;br /&gt;
		local accounts = getAccountsBySerial(serial)&lt;br /&gt;
		outputChatBox(&amp;quot;You have &amp;quot; .. #accounts .. &amp;quot; accounts.&amp;quot;, player)&lt;br /&gt;
	end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Account_functions}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[pl:GetAccountsBySerial]]&lt;/div&gt;</summary>
		<author><name>Jurandovsky</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetAccountsBySerial&amp;diff=46813</id>
		<title>GetAccountsBySerial</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetAccountsBySerial&amp;diff=46813"/>
		<updated>2016-03-05T21:33:40Z</updated>

		<summary type="html">&lt;p&gt;Jurandovsky: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server function}}&lt;br /&gt;
{{New items|3.014|1.4|&lt;br /&gt;
This function returns a [[table]] containing all accounts that were logged onto from specified [[serial]]. If the serial is empty string, it will return all accounts that were never logged onto.&lt;br /&gt;
}}&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;
table getAccountsBySerial ( string serial )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP|This function is a static function underneath the Account class.|Account.getAllBySerial||}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''serial:''' The [[serial]] to get accounts from&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''[[table]]'' containing the accounts associated with specified serial. Returns ''false'' if invalid arguments were specified.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example adds command ''getAccounts'' that outputs the number of accounts a player has in the chat box.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;getAccounts&amp;quot;, &lt;br /&gt;
	function (player, cmd)&lt;br /&gt;
		local serial = getPlayerSerial(player)&lt;br /&gt;
		local accounts = getAccountsBySerial(serial)&lt;br /&gt;
		outputChatBox(&amp;quot;You have &amp;quot; .. #accounts .. &amp;quot; accounts.&amp;quot;, player)&lt;br /&gt;
	end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Account_functions}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[pl:getAccountsBySerial]]&lt;/div&gt;</summary>
		<author><name>Jurandovsky</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=PL/getAccountsBySerial&amp;diff=46812</id>
		<title>PL/getAccountsBySerial</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PL/getAccountsBySerial&amp;diff=46812"/>
		<updated>2016-03-05T21:32:26Z</updated>

		<summary type="html">&lt;p&gt;Jurandovsky: Created page with &amp;quot;__NOTOC__  {{Server function}} {{New items|3.014|1.4| Funkcja ta zwraca tabelę table zawierającą wszystkie konta accounts które zalogowały się na dany serial...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server function}}&lt;br /&gt;
{{New items|3.014|1.4|&lt;br /&gt;
Funkcja ta zwraca tabelę [[table]] zawierającą wszystkie konta [[accounts]] które zalogowały się na dany [[serial]].&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Składnia== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
table getAccountsBySerial ( string serial )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP|This function is a static function underneath the Account class.|Account.getAllBySerial||}}&lt;br /&gt;
===Wymagane argumenty=== &lt;br /&gt;
*'''serial:''' [[serial]] z którego chcemy pobrać konta&lt;br /&gt;
&lt;br /&gt;
===Zwracana wartość===&lt;br /&gt;
Funkcja ta zwraca tabelę ''[[table]]'' zawierającą konta powiązane z tym serialem. ''Fałsz'' jeżeli podaliśmy zły [[serial]] w argumencie.&lt;br /&gt;
&lt;br /&gt;
==Przykład== &lt;br /&gt;
Przykład ten dodaje komendę ''getAccounts'' która wyświetla ilość kont powiązaną z naszym serialem.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;getAccounts&amp;quot;, &lt;br /&gt;
	function (player, cmd)&lt;br /&gt;
		local serial = getPlayerSerial(player)&lt;br /&gt;
		local accounts = getAccountsBySerial(serial)&lt;br /&gt;
		outputChatBox(&amp;quot;You have &amp;quot; .. #accounts .. &amp;quot; accounts.&amp;quot;, player)&lt;br /&gt;
	end)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Zobacz również==&lt;br /&gt;
{{Account_functions}}&lt;br /&gt;
&lt;br /&gt;
[[en:getAccountsBySerial]]&lt;/div&gt;</summary>
		<author><name>Jurandovsky</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetAccountPlayer&amp;diff=46810</id>
		<title>GetAccountPlayer</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetAccountPlayer&amp;diff=46810"/>
		<updated>2016-03-05T16:45:40Z</updated>

		<summary type="html">&lt;p&gt;Jurandovsky: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server function}}&lt;br /&gt;
&lt;br /&gt;
This function returns the [[player]] element that is currently using a specified [[account]], i.e. is logged into it. Only one player can use an account at a time.&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
player getAccountPlayer ( account theAccount )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[account]]:getPlayer|player|}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theAccount:''' The [[account]] you wish to get the [[player]] of.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a [[player]] element if the account is currently in use, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example checks if the user attached to an account is a player, and if so if they're alive.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function isAccountUserAlive ( theAccount )&lt;br /&gt;
    local thePlayer = getAccountPlayer ( theAccount )       -- get the client attached to the account&lt;br /&gt;
    if ( getElementType ( thePlayer ) == &amp;quot;player&amp;quot; ) then    -- see if it really is a player (rather than a console admin for example)&lt;br /&gt;
        return not isPedDead(thePlayer)             -- if the player's health is greater than 0 &lt;br /&gt;
    end&lt;br /&gt;
    return false&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Account functions}}&lt;br /&gt;
&lt;br /&gt;
[[ru:getAccountPlayer]]&lt;br /&gt;
[[ar:getAccountPlayer]]&lt;br /&gt;
[[pl:GetAccountPlayer]]&lt;/div&gt;</summary>
		<author><name>Jurandovsky</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=PL/getAccountPlayer&amp;diff=46809</id>
		<title>PL/getAccountPlayer</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PL/getAccountPlayer&amp;diff=46809"/>
		<updated>2016-03-05T16:45:03Z</updated>

		<summary type="html">&lt;p&gt;Jurandovsky: Created page with &amp;quot;__NOTOC__ {{Server function}}  Ta funkcja pobiera gracza player który jest aktualnie zalogowany na koncie account. Tylko jeden gracz może być zalogowany jednocześn...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server function}}&lt;br /&gt;
&lt;br /&gt;
Ta funkcja pobiera gracza [[player]] który jest aktualnie zalogowany na koncie [[account]]. Tylko jeden gracz może być zalogowany jednocześnie na danym koncie.&lt;br /&gt;
==Składnia== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
player getAccountPlayer ( account konto)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[account]]:getPlayer|player|}}&lt;br /&gt;
===Wymagane argumenty=== &lt;br /&gt;
*'''theAccount:''' Konto [[account]] z którego chcesz pobrać gracza [[player]].&lt;br /&gt;
&lt;br /&gt;
===Zwracana wartość===&lt;br /&gt;
Funkcja ta zwraca gracza [[player]] jeżeli na danym koncie jest ktoś zalogowany, lub ''fałsz'' w przeciwnym razie.&lt;br /&gt;
&lt;br /&gt;
==Przykład== &lt;br /&gt;
Przykład ten sprawdza czy jest ktoś zalogowany na koncie, jeżeli tak to sprawdza czy ta osoba żyje.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function isAccountUserAlive ( theAccount )&lt;br /&gt;
    local thePlayer = getAccountPlayer ( theAccount )       -- pobieramy gracza który jest zalogowany&lt;br /&gt;
    if ( getElementType ( thePlayer ) == &amp;quot;player&amp;quot; ) then    -- sprawdzamy czy jest to na pewno gracz&lt;br /&gt;
        return not isPedDead(thePlayer)             -- sprawdzamy czy żyje&lt;br /&gt;
    end&lt;br /&gt;
    return false&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Zobacz również==&lt;br /&gt;
{{Account functions}}&lt;br /&gt;
&lt;br /&gt;
[[ru:getAccountPlayer]]&lt;br /&gt;
[[ar:getAccountPlayer]]&lt;br /&gt;
[[en:getAccountPlayer]]&lt;/div&gt;</summary>
		<author><name>Jurandovsky</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetAccountName&amp;diff=46808</id>
		<title>GetAccountName</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetAccountName&amp;diff=46808"/>
		<updated>2016-03-05T16:26:43Z</updated>

		<summary type="html">&lt;p&gt;Jurandovsky: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function retrieves the name of an [[account]].&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getAccountName ( account theAccount )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[account]]:getName|name|}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theAccount:''' The account you wish to get the name of.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a string containing the account's name, ''false'' if the account does not exist or an invalid argument was passed to the function.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example announces into the console when a player logs into his account.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function outputOnLogin ( previous_account, current_account, auto_login ) --when a player logs in&lt;br /&gt;
	outputConsole(getAccountName(previous_account)..&amp;quot; Logged into &amp;quot;..getAccountName(current_account)) -- announce it into the console&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onPlayerLogin&amp;quot;,getRootElement(),outputOnLogin ) --add an event handler&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Account_functions}}&lt;br /&gt;
&lt;br /&gt;
[[ru:getAccountName]]&lt;br /&gt;
[[es:getAccountName]]&lt;br /&gt;
[[ar:getAccountName]]&lt;br /&gt;
[[pl:GetAccountName]]&lt;/div&gt;</summary>
		<author><name>Jurandovsky</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetAccountName&amp;diff=46807</id>
		<title>GetAccountName</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetAccountName&amp;diff=46807"/>
		<updated>2016-03-05T16:26:33Z</updated>

		<summary type="html">&lt;p&gt;Jurandovsky: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function retrieves the name of an [[account]].&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getAccountName ( account theAccount )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[account]]:getName|name|}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theAccount:''' The account you wish to get the name of.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a string containing the account's name, ''false'' if the account does not exist or an invalid argument was passed to the function.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example announces into the console when a player logs into his account.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function outputOnLogin ( previous_account, current_account, auto_login ) --when a player logs in&lt;br /&gt;
	outputConsole(getAccountName(previous_account)..&amp;quot; Logged into &amp;quot;..getAccountName(current_account)) -- announce it into the console&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onPlayerLogin&amp;quot;,getRootElement(),outputOnLogin ) --add an event handler&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Account_functions}}&lt;br /&gt;
&lt;br /&gt;
[[ru:getAccountName]]&lt;br /&gt;
[[es:getAccountName]]&lt;br /&gt;
[[ar:getAccountName]]&lt;br /&gt;
[[pl:getAccountName]]&lt;/div&gt;</summary>
		<author><name>Jurandovsky</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetAccountName&amp;diff=46806</id>
		<title>GetAccountName</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetAccountName&amp;diff=46806"/>
		<updated>2016-03-05T16:26:03Z</updated>

		<summary type="html">&lt;p&gt;Jurandovsky: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function retrieves the name of an [[account]].&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getAccountName ( account theAccount )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[account]]:getName|name|}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theAccount:''' The account you wish to get the name of.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a string containing the account's name, ''false'' if the account does not exist or an invalid argument was passed to the function.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example announces into the console when a player logs into his account.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function outputOnLogin ( previous_account, current_account, auto_login ) --when a player logs in&lt;br /&gt;
	outputConsole(getAccountName(previous_account)..&amp;quot; Logged into &amp;quot;..getAccountName(current_account)) -- announce it into the console&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onPlayerLogin&amp;quot;,getRootElement(),outputOnLogin ) --add an event handler&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Account_functions}}&lt;br /&gt;
&lt;br /&gt;
[[ru:getAccountName]]&lt;br /&gt;
[[es:getAccountName]]&lt;br /&gt;
[[ar:getAccountName]]&lt;br /&gt;
[[en:getAccountName]]&lt;/div&gt;</summary>
		<author><name>Jurandovsky</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetAccountName&amp;diff=46805</id>
		<title>GetAccountName</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetAccountName&amp;diff=46805"/>
		<updated>2016-03-05T16:25:19Z</updated>

		<summary type="html">&lt;p&gt;Jurandovsky: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function retrieves the name of an [[account]].&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getAccountName ( account theAccount )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[account]]:getName|name|}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theAccount:''' The account you wish to get the name of.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a string containing the account's name, ''false'' if the account does not exist or an invalid argument was passed to the function.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example announces into the console when a player logs into his account.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function outputOnLogin ( previous_account, current_account, auto_login ) --when a player logs in&lt;br /&gt;
	outputConsole(getAccountName(previous_account)..&amp;quot; Logged into &amp;quot;..getAccountName(current_account)) -- announce it into the console&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onPlayerLogin&amp;quot;,getRootElement(),outputOnLogin ) --add an event handler&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Account_functions}}&lt;br /&gt;
&lt;br /&gt;
[[ru:getAccountName]]&lt;br /&gt;
[[es:getAccountName]]&lt;br /&gt;
[[ar:getAccountName]]&lt;br /&gt;
[[pl:GetAccountName]]&lt;/div&gt;</summary>
		<author><name>Jurandovsky</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=PL/getAccountName&amp;diff=46804</id>
		<title>PL/getAccountName</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PL/getAccountName&amp;diff=46804"/>
		<updated>2016-03-05T16:24:57Z</updated>

		<summary type="html">&lt;p&gt;Jurandovsky: Created page with &amp;quot;{{Server function}} __NOTOC__ Funkcja ta pobiera nazwę account.  ==Składnia==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; string getAccountName ( account konto) &amp;lt;/syntaxhighlight&amp;gt;  {{OOP||account:getName|n...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
Funkcja ta pobiera nazwę [[account]].&lt;br /&gt;
&lt;br /&gt;
==Składnia== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getAccountName ( account konto)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[account]]:getName|name|}}&lt;br /&gt;
===Wymagane argumenty=== &lt;br /&gt;
*'''theAccount:''' Konto, którego nazwę chcesz pobrać.&lt;br /&gt;
&lt;br /&gt;
===Zwracana wartość===&lt;br /&gt;
Zwracana wartość to ''string'' zawierający nazwę konta, lub ''fałsz'' jeżeli konto nie istnieje, lub został wprowadzony błędny argument do funkcji.&lt;br /&gt;
&lt;br /&gt;
==Przykład== &lt;br /&gt;
Ten przykład wysyła powiadomienie do konsoli podczas logowania.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function outputOnLogin ( previous_account, current_account, auto_login ) -- kiedy gracz sie loguje&lt;br /&gt;
	outputConsole(getAccountName(previous_account)..&amp;quot; Logged into &amp;quot;..getAccountName(current_account)) -- wysylamy ogloszenie do konsoli&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onPlayerLogin&amp;quot;,getRootElement(),outputOnLogin ) -- dodajemy zdarzenie onPlayerLogin&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Zobacz również==&lt;br /&gt;
{{Account_functions}}&lt;br /&gt;
&lt;br /&gt;
[[ru:getAccountName]]&lt;br /&gt;
[[es:getAccountName]]&lt;br /&gt;
[[ar:getAccountName]]&lt;br /&gt;
[[en:getAccountName]]&lt;/div&gt;</summary>
		<author><name>Jurandovsky</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetAccountName&amp;diff=46803</id>
		<title>GetAccountName</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetAccountName&amp;diff=46803"/>
		<updated>2016-03-05T16:09:27Z</updated>

		<summary type="html">&lt;p&gt;Jurandovsky: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function retrieves the name of an [[account]].&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getAccountName ( account theAccount )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[account]]:getName|name|}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theAccount:''' The account you wish to get the name of.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a string containing the account's name, ''false'' if the account does not exist or an invalid argument was passed to the function.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example announces into the console when a player logs into his account.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function outputOnLogin ( previous_account, current_account, auto_login ) --when a player logs in&lt;br /&gt;
	outputConsole(getAccountName(previous_account)..&amp;quot; Logged into &amp;quot;..getAccountName(current_account)) -- announce it into the console&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onPlayerLogin&amp;quot;,getRootElement(),outputOnLogin ) --add an event handler&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Account_functions}}&lt;br /&gt;
&lt;br /&gt;
[[ru:getAccountName]]&lt;br /&gt;
[[es:getAccountName]]&lt;br /&gt;
[[ar:getAccountName]]&lt;br /&gt;
[[pl:getAccountName]]&lt;/div&gt;</summary>
		<author><name>Jurandovsky</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=PL/getAccountData&amp;diff=46802</id>
		<title>PL/getAccountData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PL/getAccountData&amp;diff=46802"/>
		<updated>2016-03-05T16:08:26Z</updated>

		<summary type="html">&lt;p&gt;Jurandovsky: /* See Also */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{Note_box|Polecamy, abyś klucze wartości zapisywał w sposób 'zasób.klucz'. Zostanie to pokazane w przykładzie poniżej. Może to zapobiec niezgodnościom pomiędzy różnymi zasobami.}}&lt;br /&gt;
Funkcja ta pozyskuje wartość zapisaną pod danym kluczem przez [[setAccountData]]. Dane zapisane w account data są trwale zapisane przez całą sesję użytkownika, wyjątkiem jest granie przy użyciu konta gościa.&lt;br /&gt;
&lt;br /&gt;
==Składnia== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getAccountData ( account konto, string klucz )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[account]]:getData||setAccountData}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theAccount:''' Konto z którego chcesz pobrać wartość.&lt;br /&gt;
*'''key:''' Klucz pod którym jest zapisana wartość.&lt;br /&gt;
&lt;br /&gt;
===Zwracana wartość===&lt;br /&gt;
Funkcja ta zwraca [[string]] zawierający wartość lub ''fałsz'' jeżeli nie było żadnej wartości pod danym kluczem.&lt;br /&gt;
&lt;br /&gt;
==Przykład==&lt;br /&gt;
Załóżmy, że tworzymy dwa zasoby w którym chcemy użyć klucza o nazwie ''punkty''. Pierwszy to ''ps'' a drugi to ''pp'', gdybyśmy w obu jako klucz ustawili po prostu ''punkty'' oba zasoby nadpisywałyby wartość na nową.&lt;br /&gt;
&lt;br /&gt;
Przykład poprawnego użycia:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- zasób ps&lt;br /&gt;
&lt;br /&gt;
function nadajPunkt(plr, cmd)&lt;br /&gt;
	local acc = getPlayerAccount(plr) -- pobieramy swoje konto&lt;br /&gt;
	local wartosc = getAccountData(acc, &amp;quot;ps.pkt&amp;quot;) -- pobieramy wartosc naszego konta spod klucza ps.pkt&lt;br /&gt;
	setAccountData(acc, &amp;quot;ps.pkt&amp;quot;, wartosc + 1) -- nadajemy o 1 wiecej obecnej wartości klucza ps.pkt&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;nadajpkt&amp;quot;, nadajPunkt)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-- zasób pp&lt;br /&gt;
function nadajPkt(plr, cmd)&lt;br /&gt;
	local acc = getPlayerAccount(plr) -- pobieramy swoje konto&lt;br /&gt;
	local wartosc = getAccountData(acc, &amp;quot;pp.pkt&amp;quot;) -- pobieramy wartosc naszego konta spod klucza ps.pkt&lt;br /&gt;
	setAccountData(acc, &amp;quot;pp.pkt&amp;quot;, wartosc + 1) -- nadajemy o 1 wiecej obecnej wartości klucza ps.pkt&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;nadajpunkt&amp;quot;, nadajPkt)&lt;br /&gt;
&lt;br /&gt;
-- wpisujac 3 razy komende /nadajpkt z zasobu ps mamy 3 punkty pod kluczem ps.pkt, wpisujac raz komende /nadajpunkt z zasobu pp mamy 1 punkt pod kluczem pp.pkt&lt;br /&gt;
-- gdybyśmy ustawili jako klucz funkcji getAccountData oraz setAccountData samo pkt, bez przedrostka nazwy zasobu czyli pp. lub ps.&lt;br /&gt;
-- punkty te by się sumowały i zamiast w dwóch zasobach mieć dwa osobne naliczania punktów, mielibyśmy jedno główne sumowanie&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Zobacz również==&lt;br /&gt;
{{Account_functions}}&lt;br /&gt;
&lt;br /&gt;
[[ru:getAccountData]]&lt;br /&gt;
[[ar:getAccountData]]&lt;br /&gt;
[[en:getAccountData]]&lt;/div&gt;</summary>
		<author><name>Jurandovsky</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=PL/copyAccountData&amp;diff=46801</id>
		<title>PL/copyAccountData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PL/copyAccountData&amp;diff=46801"/>
		<updated>2016-03-05T16:07:47Z</updated>

		<summary type="html">&lt;p&gt;Jurandovsky: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{server function}}&lt;br /&gt;
Funkcja ta pozwala na skopiowanie wszystkich wartości konta z jednego [[account]] na drugie.&lt;br /&gt;
&lt;br /&gt;
==Składnia== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool copyAccountData ( account theAccount, account fromAccount )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[account]]:copyDataTo||}}&lt;br /&gt;
&lt;br /&gt;
===Wymagane parametry=== &lt;br /&gt;
*'''theAccount:''' Konto na które chcesz skopiować wartość.&lt;br /&gt;
*'''fromAccount:''' Konto z którego kopiujesz wartość.&lt;br /&gt;
&lt;br /&gt;
===Zwracana wartość===&lt;br /&gt;
Funkcja ta zwraca ''prawdę'' jeżeli konta zostały podane prawidłowo, lub ''fałsz'' w przeciwnym wypadku.&lt;br /&gt;
&lt;br /&gt;
==Przykład==&lt;br /&gt;
Po wpisaniu komendy /skopiuj kopiuje wartości z konta losowego gracza i przypisuje je na nasze konto&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
addCommandHandler(&amp;quot;skopiuj&amp;quot;, function(plr, cmd)&lt;br /&gt;
	local acc = getPlayerAccount(plr) -- pobieramy nasze konto&lt;br /&gt;
	local acc2 = getPlayerAccount(getRandomPlayer()) -- pobieramy konto losowego gracza&lt;br /&gt;
	copyAccountData(acc2, acc) -- kopiujemy z konta 'acc2' wszystkie wartości i przypisujemy je do konca 'acc'&lt;br /&gt;
end)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Zobacz również==&lt;br /&gt;
{{Account_functions}}&lt;br /&gt;
[[ru:copyAccountData]]&lt;br /&gt;
[[ar:copyAccountData]]&lt;br /&gt;
[[en:copyAccountData]]&lt;/div&gt;</summary>
		<author><name>Jurandovsky</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=PL/copyAccountData&amp;diff=46800</id>
		<title>PL/copyAccountData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PL/copyAccountData&amp;diff=46800"/>
		<updated>2016-03-05T16:07:26Z</updated>

		<summary type="html">&lt;p&gt;Jurandovsky: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{server function}}&lt;br /&gt;
Funkcja ta pozwala na skopiowanie wszystkich wartości konta z jednego [[account]] na drugie.&lt;br /&gt;
&lt;br /&gt;
==Składnia== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool copyAccountData ( account theAccount, account fromAccount )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[account]]:copyDataTo||}}&lt;br /&gt;
&lt;br /&gt;
===Wymagane parametry=== &lt;br /&gt;
*'''theAccount:''' Konto na które chcesz skopiować wartość.&lt;br /&gt;
*'''fromAccount:''' Konto z którego kopiujesz wartość.&lt;br /&gt;
&lt;br /&gt;
===Zwracana wartość===&lt;br /&gt;
Funkcja ta zwraca ''prawdę'' jeżeli konta zostały podane prawidłowo, lub ''fałsz'' w przeciwnym wypadku.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
Po wpisaniu komendy /skopiuj kopiuje wartości z konta losowego gracza i przypisuje je na nasze konto&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
addCommandHandler(&amp;quot;skopiuj&amp;quot;, function(plr, cmd)&lt;br /&gt;
	local acc = getPlayerAccount(plr) -- pobieramy nasze konto&lt;br /&gt;
	local acc2 = getPlayerAccount(getRandomPlayer()) -- pobieramy konto losowego gracza&lt;br /&gt;
	copyAccountData(acc2, acc) -- kopiujemy z konta 'acc2' wszystkie wartości i przypisujemy je do konca 'acc'&lt;br /&gt;
end)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Zobacz również==&lt;br /&gt;
{{Account_functions}}&lt;br /&gt;
[[ru:copyAccountData]]&lt;br /&gt;
[[ar:copyAccountData]]&lt;br /&gt;
[[en:copyAccountData]]&lt;/div&gt;</summary>
		<author><name>Jurandovsky</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Server_Scripting_Functions&amp;diff=46799</id>
		<title>Server Scripting Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Server_Scripting_Functions&amp;diff=46799"/>
		<updated>2016-03-05T16:06:40Z</updated>

		<summary type="html">&lt;p&gt;Jurandovsky: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pageclass class=&amp;quot;server&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
{{Adding_Pages_to_Categories_and_Templates}}&lt;br /&gt;
This page lists all the '''server-side''' scripting functions that have been implemented and are available as native functions. To request a function or event, use [[Requested Functions and Events]] or http://bugs.mtasa.com.&lt;br /&gt;
&lt;br /&gt;
Please note that the scripting functions can also be extended by loading in dynamic modules that provide new functionality, such as utility functions. These scripting functions are non-native and require the module to be loaded in order to work.&lt;br /&gt;
&lt;br /&gt;
Head over to [[Modules]] for a list of non-native serverside functions and modules that are available.&lt;br /&gt;
&lt;br /&gt;
For more functions, check the [[Useful_Functions|useful functions page]].&lt;br /&gt;
&lt;br /&gt;
'''Client-side scripting functions can be found here: [[Client Scripting Functions]].'''&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
==Account functions==&lt;br /&gt;
{{Account_functions}}&lt;br /&gt;
&lt;br /&gt;
==ACL functions==&lt;br /&gt;
{{ACL_functions}}&lt;br /&gt;
&lt;br /&gt;
==Admin functions==&lt;br /&gt;
{{Admin_functions}}&lt;br /&gt;
&lt;br /&gt;
==Audio functions==&lt;br /&gt;
{{Audio_functions}}&lt;br /&gt;
&lt;br /&gt;
==Announcement functions==&lt;br /&gt;
{{Announce_functions}}&lt;br /&gt;
&lt;br /&gt;
==Blip functions==&lt;br /&gt;
{{Blip_functions}}&lt;br /&gt;
&lt;br /&gt;
==Camera functions==&lt;br /&gt;
{{Camera functions}}&lt;br /&gt;
&lt;br /&gt;
==Collision shape functions==&lt;br /&gt;
{{Collision shape functions}}&lt;br /&gt;
&lt;br /&gt;
==Clothes and body functions==&lt;br /&gt;
{{Clothes and body functions}}&lt;br /&gt;
&lt;br /&gt;
==Cursor functions==&lt;br /&gt;
{{Cursor_functions}}&lt;br /&gt;
&lt;br /&gt;
==Element functions==&lt;br /&gt;
{{Element functions}}&lt;br /&gt;
&lt;br /&gt;
==Event functions==&lt;br /&gt;
{{Event_functions}}&lt;br /&gt;
&lt;br /&gt;
==Explosion functions==&lt;br /&gt;
{{Explosion_functions}}&lt;br /&gt;
&lt;br /&gt;
==File functions==&lt;br /&gt;
{{File_functions}}&lt;br /&gt;
&lt;br /&gt;
==HTTP functions==&lt;br /&gt;
{{HTTP_functions}}&lt;br /&gt;
&lt;br /&gt;
==Input functions==&lt;br /&gt;
{{Input_functions}}&lt;br /&gt;
&lt;br /&gt;
==Map functions==&lt;br /&gt;
{{Map_functions}}&lt;br /&gt;
&lt;br /&gt;
==Marker functions==&lt;br /&gt;
{{Marker functions}}&lt;br /&gt;
&lt;br /&gt;
==Matrix functions==&lt;br /&gt;
{{Shared_matrix_functions}}&lt;br /&gt;
&lt;br /&gt;
==Module functions==&lt;br /&gt;
{{Module functions}}&lt;br /&gt;
&lt;br /&gt;
==Object functions==&lt;br /&gt;
{{Object functions}}&lt;br /&gt;
&lt;br /&gt;
==Ped functions==&lt;br /&gt;
{{Ped_functions}}&lt;br /&gt;
&lt;br /&gt;
==Pickup functions==&lt;br /&gt;
{{Pickup functions}}&lt;br /&gt;
&lt;br /&gt;
==Player functions==&lt;br /&gt;
{{Player functions}}&lt;br /&gt;
&lt;br /&gt;
==Radar area functions==&lt;br /&gt;
{{Radar area functions}}&lt;br /&gt;
&lt;br /&gt;
==Resource functions==&lt;br /&gt;
{{Resource functions}}&lt;br /&gt;
&lt;br /&gt;
==Server functions==&lt;br /&gt;
{{Server functions}}&lt;br /&gt;
&lt;br /&gt;
==Settings registry functions==&lt;br /&gt;
{{Settings registry functions}}&lt;br /&gt;
&lt;br /&gt;
==SQL functions==&lt;br /&gt;
{{SQL_functions}}&lt;br /&gt;
&lt;br /&gt;
==Team functions==&lt;br /&gt;
{{Team functions}}&lt;br /&gt;
&lt;br /&gt;
==Text functions==&lt;br /&gt;
{{Text functions}}&lt;br /&gt;
&lt;br /&gt;
==Utility functions==&lt;br /&gt;
{{Utility functions}}&lt;br /&gt;
&lt;br /&gt;
==UTF8 Library==&lt;br /&gt;
{{UTF8 functions}}&lt;br /&gt;
&lt;br /&gt;
==Vehicle functions==&lt;br /&gt;
{{Vehicle functions}}&lt;br /&gt;
&lt;br /&gt;
==Water functions==&lt;br /&gt;
{{Water functions}}&lt;br /&gt;
&lt;br /&gt;
==Weapon functions==&lt;br /&gt;
{{Weapon functions}}&lt;br /&gt;
&lt;br /&gt;
==World functions==&lt;br /&gt;
{{World functions}}&lt;br /&gt;
&lt;br /&gt;
==XML functions==&lt;br /&gt;
{{XML functions}}&lt;br /&gt;
&lt;br /&gt;
[[ar:Server Scripting Functions]]&lt;br /&gt;
[[ru:Server Scripting Functions]]&lt;br /&gt;
[[es:Funciones_del_Server]]&lt;br /&gt;
[[de:Server-Seitige Scripting Funktionen]]&lt;br /&gt;
[[pl:Server Scripting Functions]]&lt;/div&gt;</summary>
		<author><name>Jurandovsky</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=PL/Server_Scripting_Functions&amp;diff=46798</id>
		<title>PL/Server Scripting Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PL/Server_Scripting_Functions&amp;diff=46798"/>
		<updated>2016-03-05T16:06:22Z</updated>

		<summary type="html">&lt;p&gt;Jurandovsky: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pageclass class=&amp;quot;server&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
{{Adding_Pages_to_Categories_and_Templates}}&lt;br /&gt;
Strona z listą wszystkich funkcji '''server-side''' które zostały zaimplementowane. Jeżeli brakuje Ci jakiejś funkcji lub jakiegoś zdarzenia, możesz napisać tutaj [[Requested Functions and Events]] lub http://bugs.mtasa.com.&lt;br /&gt;
&lt;br /&gt;
Kliknij w [[Modules]] aby zobaczyć listę nie rodzimych server-side funkcji i modułów które są dostępne.&lt;br /&gt;
&lt;br /&gt;
Po więcej funkcji zajrzyj w [[Useful_Functions|useful functions page]].&lt;br /&gt;
&lt;br /&gt;
'''Funkcje client-side można znaleźć w tym odnośniku: [[Client Scripting Functions]].'''&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
==Account functions==&lt;br /&gt;
{{Account_functions}}&lt;br /&gt;
&lt;br /&gt;
==ACL functions==&lt;br /&gt;
{{ACL_functions}}&lt;br /&gt;
&lt;br /&gt;
==Admin functions==&lt;br /&gt;
{{Admin_functions}}&lt;br /&gt;
&lt;br /&gt;
==Audio functions==&lt;br /&gt;
{{Audio_functions}}&lt;br /&gt;
&lt;br /&gt;
==Announcement functions==&lt;br /&gt;
{{Announce_functions}}&lt;br /&gt;
&lt;br /&gt;
==Blip functions==&lt;br /&gt;
{{Blip_functions}}&lt;br /&gt;
&lt;br /&gt;
==Camera functions==&lt;br /&gt;
{{Camera functions}}&lt;br /&gt;
&lt;br /&gt;
==Collision shape functions==&lt;br /&gt;
{{Collision shape functions}}&lt;br /&gt;
&lt;br /&gt;
==Clothes and body functions==&lt;br /&gt;
{{Clothes and body functions}}&lt;br /&gt;
&lt;br /&gt;
==Cursor functions==&lt;br /&gt;
{{Cursor_functions}}&lt;br /&gt;
&lt;br /&gt;
==Element functions==&lt;br /&gt;
{{Element functions}}&lt;br /&gt;
&lt;br /&gt;
==Event functions==&lt;br /&gt;
{{Event_functions}}&lt;br /&gt;
&lt;br /&gt;
==Explosion functions==&lt;br /&gt;
{{Explosion_functions}}&lt;br /&gt;
&lt;br /&gt;
==File functions==&lt;br /&gt;
{{File_functions}}&lt;br /&gt;
&lt;br /&gt;
==HTTP functions==&lt;br /&gt;
{{HTTP_functions}}&lt;br /&gt;
&lt;br /&gt;
==Input functions==&lt;br /&gt;
{{Input_functions}}&lt;br /&gt;
&lt;br /&gt;
==Map functions==&lt;br /&gt;
{{Map_functions}}&lt;br /&gt;
&lt;br /&gt;
==Marker functions==&lt;br /&gt;
{{Marker functions}}&lt;br /&gt;
&lt;br /&gt;
==Matrix functions==&lt;br /&gt;
{{Shared_matrix_functions}}&lt;br /&gt;
&lt;br /&gt;
==Module functions==&lt;br /&gt;
{{Module functions}}&lt;br /&gt;
&lt;br /&gt;
==Object functions==&lt;br /&gt;
{{Object functions}}&lt;br /&gt;
&lt;br /&gt;
==Ped functions==&lt;br /&gt;
{{Ped_functions}}&lt;br /&gt;
&lt;br /&gt;
==Pickup functions==&lt;br /&gt;
{{Pickup functions}}&lt;br /&gt;
&lt;br /&gt;
==Player functions==&lt;br /&gt;
{{Player functions}}&lt;br /&gt;
&lt;br /&gt;
==Radar area functions==&lt;br /&gt;
{{Radar area functions}}&lt;br /&gt;
&lt;br /&gt;
==Resource functions==&lt;br /&gt;
{{Resource functions}}&lt;br /&gt;
&lt;br /&gt;
==Server functions==&lt;br /&gt;
{{Server functions}}&lt;br /&gt;
&lt;br /&gt;
==Settings registry functions==&lt;br /&gt;
{{Settings registry functions}}&lt;br /&gt;
&lt;br /&gt;
==SQL functions==&lt;br /&gt;
{{SQL_functions}}&lt;br /&gt;
&lt;br /&gt;
==Team functions==&lt;br /&gt;
{{Team functions}}&lt;br /&gt;
&lt;br /&gt;
==Text functions==&lt;br /&gt;
{{Text functions}}&lt;br /&gt;
&lt;br /&gt;
==Utility functions==&lt;br /&gt;
{{Utility functions}}&lt;br /&gt;
&lt;br /&gt;
==UTF8 Library==&lt;br /&gt;
{{UTF8 functions}}&lt;br /&gt;
&lt;br /&gt;
==Vehicle functions==&lt;br /&gt;
{{Vehicle functions}}&lt;br /&gt;
&lt;br /&gt;
==Water functions==&lt;br /&gt;
{{Water functions}}&lt;br /&gt;
&lt;br /&gt;
==Weapon functions==&lt;br /&gt;
{{Weapon functions}}&lt;br /&gt;
&lt;br /&gt;
==World functions==&lt;br /&gt;
{{World functions}}&lt;br /&gt;
&lt;br /&gt;
==XML functions==&lt;br /&gt;
{{XML functions}}&lt;br /&gt;
&lt;br /&gt;
[[ar:Server Scripting Functions]]&lt;br /&gt;
[[ru:Server Scripting Functions]]&lt;br /&gt;
[[es:Funciones_del_Server]]&lt;br /&gt;
[[de:Server-Seitige Scripting Funktionen]]&lt;br /&gt;
[[en:Server Scripting Functions]]&lt;/div&gt;</summary>
		<author><name>Jurandovsky</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=PL/getAccountData&amp;diff=46797</id>
		<title>PL/getAccountData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PL/getAccountData&amp;diff=46797"/>
		<updated>2016-03-05T15:12:55Z</updated>

		<summary type="html">&lt;p&gt;Jurandovsky: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{Note_box|Polecamy, abyś klucze wartości zapisywał w sposób 'zasób.klucz'. Zostanie to pokazane w przykładzie poniżej. Może to zapobiec niezgodnościom pomiędzy różnymi zasobami.}}&lt;br /&gt;
Funkcja ta pozyskuje wartość zapisaną pod danym kluczem przez [[setAccountData]]. Dane zapisane w account data są trwale zapisane przez całą sesję użytkownika, wyjątkiem jest granie przy użyciu konta gościa.&lt;br /&gt;
&lt;br /&gt;
==Składnia== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getAccountData ( account konto, string klucz )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[account]]:getData||setAccountData}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theAccount:''' Konto z którego chcesz pobrać wartość.&lt;br /&gt;
*'''key:''' Klucz pod którym jest zapisana wartość.&lt;br /&gt;
&lt;br /&gt;
===Zwracana wartość===&lt;br /&gt;
Funkcja ta zwraca [[string]] zawierający wartość lub ''fałsz'' jeżeli nie było żadnej wartości pod danym kluczem.&lt;br /&gt;
&lt;br /&gt;
==Przykład==&lt;br /&gt;
Załóżmy, że tworzymy dwa zasoby w którym chcemy użyć klucza o nazwie ''punkty''. Pierwszy to ''ps'' a drugi to ''pp'', gdybyśmy w obu jako klucz ustawili po prostu ''punkty'' oba zasoby nadpisywałyby wartość na nową.&lt;br /&gt;
&lt;br /&gt;
Przykład poprawnego użycia:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- zasób ps&lt;br /&gt;
&lt;br /&gt;
function nadajPunkt(plr, cmd)&lt;br /&gt;
	local acc = getPlayerAccount(plr) -- pobieramy swoje konto&lt;br /&gt;
	local wartosc = getAccountData(acc, &amp;quot;ps.pkt&amp;quot;) -- pobieramy wartosc naszego konta spod klucza ps.pkt&lt;br /&gt;
	setAccountData(acc, &amp;quot;ps.pkt&amp;quot;, wartosc + 1) -- nadajemy o 1 wiecej obecnej wartości klucza ps.pkt&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;nadajpkt&amp;quot;, nadajPunkt)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-- zasób pp&lt;br /&gt;
function nadajPkt(plr, cmd)&lt;br /&gt;
	local acc = getPlayerAccount(plr) -- pobieramy swoje konto&lt;br /&gt;
	local wartosc = getAccountData(acc, &amp;quot;pp.pkt&amp;quot;) -- pobieramy wartosc naszego konta spod klucza ps.pkt&lt;br /&gt;
	setAccountData(acc, &amp;quot;pp.pkt&amp;quot;, wartosc + 1) -- nadajemy o 1 wiecej obecnej wartości klucza ps.pkt&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;nadajpunkt&amp;quot;, nadajPkt)&lt;br /&gt;
&lt;br /&gt;
-- wpisujac 3 razy komende /nadajpkt z zasobu ps mamy 3 punkty pod kluczem ps.pkt, wpisujac raz komende /nadajpunkt z zasobu pp mamy 1 punkt pod kluczem pp.pkt&lt;br /&gt;
-- gdybyśmy ustawili jako klucz funkcji getAccountData oraz setAccountData samo pkt, bez przedrostka nazwy zasobu czyli pp. lub ps.&lt;br /&gt;
-- punkty te by się sumowały i zamiast w dwóch zasobach mieć dwa osobne naliczania punktów, mielibyśmy jedno główne sumowanie&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Account_functions}}&lt;br /&gt;
&lt;br /&gt;
[[ru:getAccountData]]&lt;br /&gt;
[[ar:getAccountData]]&lt;br /&gt;
[[en:getAccountData]]&lt;/div&gt;</summary>
		<author><name>Jurandovsky</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetAccountData&amp;diff=46796</id>
		<title>GetAccountData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetAccountData&amp;diff=46796"/>
		<updated>2016-03-05T15:12:04Z</updated>

		<summary type="html">&lt;p&gt;Jurandovsky: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{Note_box|It is strongly recommended that you use the standard ''module.key'' naming for your keys, as shown in the example below. This prevents collisions between different scripts.}}&lt;br /&gt;
This function retrieves a string that has been stored using [[setAccountData]]. Data stored as account data is persistent across user's sessions and maps, unless they are logged into a guest account.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getAccountData ( account theAccount, string key )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[account]]:getData||setAccountData}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theAccount:''' The account you wish to retrieve the data from.&lt;br /&gt;
*'''key:''' The key under which the data is stored&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a [[string]] containing the stored data or ''false'' if no data was stored under that key.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
For a pirate roleplaying gametype, the amount of money a player has is made persistent by storing it in his account. Note the code uses &amp;quot;piraterpg.money&amp;quot; as key instead of just &amp;quot;money&amp;quot;, as the player may be participating in other gametypes that also save his money amount to his account. If both gametypes would use &amp;quot;money&amp;quot; as the account key, they'd overwrite each other's data.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function onPlayerQuit()&lt;br /&gt;
      local playerAccount = getPlayerAccount(source) -- get his account&lt;br /&gt;
      if (playerAccount) then -- if we got the account then&lt;br /&gt;
            local playerMoney = getPlayerMoney(source) -- get his money amount&lt;br /&gt;
            setAccountData(playerAccount, &amp;quot;piraterpg.money&amp;quot;, playerMoney) -- store his current money amount in his account data&lt;br /&gt;
      end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onPlayerQuit&amp;quot;, getRootElement(), onPlayerQuit) -- add an event handler&lt;br /&gt;
&lt;br /&gt;
function onPlayerLogin()&lt;br /&gt;
      -- when a player logins, retrieve his money amount from his account data and set it&lt;br /&gt;
      local playerAccount = getPlayerAccount(source) -- get his account&lt;br /&gt;
      if (playerAccount) then -- if we got the account then&lt;br /&gt;
            local playerMoney = getAccountData(playerAccount, &amp;quot;piraterpg.money&amp;quot;) -- get the money amount was store in his account data&lt;br /&gt;
            -- make sure there was actually a value saved under this key (check if playerMoney is not false).&lt;br /&gt;
            -- this will for example not be the case when a player plays the gametype for the first time&lt;br /&gt;
            if (playerMoney) then&lt;br /&gt;
                  setPlayerMoney(source, playerMoney)&lt;br /&gt;
            end&lt;br /&gt;
      end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onPlayerLogin&amp;quot;, getRootElement(), onPlayerLogin) -- add an event handler&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Account_functions}}&lt;br /&gt;
&lt;br /&gt;
[[ru:getAccountData]]&lt;br /&gt;
[[ar:getAccountData]]&lt;br /&gt;
[[pl:getAccountData]]&lt;/div&gt;</summary>
		<author><name>Jurandovsky</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=PL/addAccount&amp;diff=46794</id>
		<title>PL/addAccount</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PL/addAccount&amp;diff=46794"/>
		<updated>2016-03-05T15:11:25Z</updated>

		<summary type="html">&lt;p&gt;Jurandovsky: Jurandovsky moved page PL/addAccount to PL/AddAccount&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
Funkcja dodaje konto na listę zarejestrowanych kont na aktualnym serwerze.&lt;br /&gt;
&lt;br /&gt;
==Składnia== &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;
{{OOP|Ta funkcja jest statyczną funkcją w klasie Account. |[[Account]].add ||}}&lt;br /&gt;
===Wymagane argumenty=== &lt;br /&gt;
&amp;lt;!-- List each argument one per line. This should be the argument's name as in the argument list above, NOT the argument's data type --&amp;gt;&lt;br /&gt;
*'''name:''' Nazwa konta, które chcemy stworzyć. Zwykle jest to nazwa gracza.&lt;br /&gt;
*'''pass:''' Hasło dla konta.&lt;br /&gt;
&lt;br /&gt;
===Wynik funkcji===&lt;br /&gt;
Zwraca [[account]] lub ''false'' jeśli konto już istnieje lub wystąpił błąd.&lt;br /&gt;
&lt;br /&gt;
===Ograniczenia===&lt;br /&gt;
*'''name:'''&lt;br /&gt;
** Minimalna długość nazwy konta wynosi 1 znak.&lt;br /&gt;
** Nazwy kont uwzględniają wielkość znaków.&lt;br /&gt;
** Nazwą konta nie może być &amp;quot;*****&amp;quot;&lt;br /&gt;
*'''pass:'''&lt;br /&gt;
** Minimalna długość hasła wynosi 1 znak.&lt;br /&gt;
** Maksymalna długość hasła wynosi 30 znaków.&lt;br /&gt;
** Hasłem nie może być &amp;quot;*****&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==Przykłady== &lt;br /&gt;
'''Przykład 1:''' Funkcja umożliwia rejestrowanie się użytkowników przy użyciu komendy /register &amp;lt;password&amp;gt; w oknie czatu.&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;
	-- Check if the password field is blank or not (only blank if they didnt enter one)&lt;br /&gt;
	if ( password ~= &amp;quot;&amp;quot; and password ~= nil ) then&lt;br /&gt;
		--Attempt to add the account, and save its value in a var&lt;br /&gt;
		local accountAdded = addAccount( getPlayerName(source), password )&lt;br /&gt;
		if ( accountAdded ) then&lt;br /&gt;
			--  Tell the user all is done&lt;br /&gt;
			outputChatBox ( &amp;quot;Thank you &amp;quot; .. getPlayerName(source) .. &amp;quot;, you're now registed, you can login with /login&amp;quot;, source )&lt;br /&gt;
		else&lt;br /&gt;
			-- There was an error making the account, tell the user&lt;br /&gt;
			outputChatBox ( &amp;quot;Error creating account, contact the server admin&amp;quot;, source )&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		-- There was an error in the syntax, tell the user the correct syntax.&lt;br /&gt;
		outputChatBox ( &amp;quot;Error creating account, correct syntax: /register &amp;lt;password&amp;gt;&amp;quot;, source )&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;register&amp;quot;, registerPlayer ) -- add the command handler&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Ten kod pozwala użytkownikowi na zmianę nazwy użytkownika.'''&lt;br /&gt;
&lt;br /&gt;
'''Przykład 2:''' Funkcja umożliwia rejestrowanie się użytkowników przy użyciu komendy /register &amp;lt;username&amp;gt; &amp;lt;password&amp;gt; w oknie czatu.&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;Thank you &amp;quot; .. getPlayerName(source) .. &amp;quot;, you're now registed, you can login with /login&amp;quot;,source)&lt;br /&gt;
                else&lt;br /&gt;
                        outputChatBox(&amp;quot;Error creating account, contact the server admin.&amp;quot;,source)&lt;br /&gt;
                end&lt;br /&gt;
        else&lt;br /&gt;
                outputChatBox(&amp;quot;Error creating account, correct syntax: /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 ) -- add the command handler&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Zobacz też==&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;
{{Account_functions}}&lt;br /&gt;
&lt;br /&gt;
[[ar:addAcount]]&lt;br /&gt;
[[es:addAcount]]&lt;br /&gt;
[[ru:addAccount]]&lt;br /&gt;
[[en:addAccount]]&lt;/div&gt;</summary>
		<author><name>Jurandovsky</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=PL/getAccountData&amp;diff=46792</id>
		<title>PL/getAccountData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PL/getAccountData&amp;diff=46792"/>
		<updated>2016-03-05T15:10:57Z</updated>

		<summary type="html">&lt;p&gt;Jurandovsky: Jurandovsky moved page PL/getAccountData to PL/GetAccountData&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{Note_box|Polecamy, abyś klucze wartości zapisywał w sposób 'zasób.klucz'. Zostanie to pokazane w przykładzie poniżej. Może to zapobiec niezgodnościom pomiędzy różnymi zasobami.}}&lt;br /&gt;
Funkcja ta pozyskuje wartość zapisaną pod danym kluczem przez [[setAccountData]]. Dane zapisane w account data są trwale zapisane przez całą sesję użytkownika, wyjątkiem jest granie przy użyciu konta gościa.&lt;br /&gt;
&lt;br /&gt;
==Składnia== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getAccountData ( account konto, string klucz )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[account]]:getData||setAccountData}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theAccount:''' Konto z którego chcesz pobrać wartość.&lt;br /&gt;
*'''key:''' Klucz pod którym jest zapisana wartość.&lt;br /&gt;
&lt;br /&gt;
===Zwracana wartość===&lt;br /&gt;
Funkcja ta zwraca [[string]] zawierający wartość lub ''fałsz'' jeżeli nie było żadnej wartości pod danym kluczem.&lt;br /&gt;
&lt;br /&gt;
==Przykład==&lt;br /&gt;
Załóżmy, że tworzymy dwa zasoby w którym chcemy użyć klucza o nazwie ''punkty''. Pierwszy to ''ps'' a drugi to ''pp'', gdybyśmy w obu jako klucz ustawili po prostu ''punkty'' oba zasoby nadpisywałyby wartość na nową.&lt;br /&gt;
&lt;br /&gt;
Przykład poprawnego użycia:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- zasób ps&lt;br /&gt;
&lt;br /&gt;
function nadajPunkt(plr, cmd)&lt;br /&gt;
	local acc = getPlayerAccount(plr) -- pobieramy swoje konto&lt;br /&gt;
	local wartosc = getAccountData(acc, &amp;quot;ps.pkt&amp;quot;) -- pobieramy wartosc naszego konta spod klucza ps.pkt&lt;br /&gt;
	setAccountData(acc, &amp;quot;ps.pkt&amp;quot;, wartosc + 1) -- nadajemy o 1 wiecej obecnej wartości klucza ps.pkt&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;nadajpkt&amp;quot;, nadajPunkt)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-- zasób pp&lt;br /&gt;
function nadajPkt(plr, cmd)&lt;br /&gt;
	local acc = getPlayerAccount(plr) -- pobieramy swoje konto&lt;br /&gt;
	local wartosc = getAccountData(acc, &amp;quot;pp.pkt&amp;quot;) -- pobieramy wartosc naszego konta spod klucza ps.pkt&lt;br /&gt;
	setAccountData(acc, &amp;quot;pp.pkt&amp;quot;, wartosc + 1) -- nadajemy o 1 wiecej obecnej wartości klucza ps.pkt&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;nadajpunkt&amp;quot;, nadajPkt)&lt;br /&gt;
&lt;br /&gt;
-- wpisujac 3 razy komende /nadajpkt z zasobu ps mamy 3 punkty pod kluczem ps.pkt, wpisujac raz komende /nadajpunkt z zasobu pp mamy 1 punkt pod kluczem pp.pkt&lt;br /&gt;
-- gdybyśmy ustawili jako klucz funkcji getAccountData oraz setAccountData samo pkt, bez przedrostka nazwy zasobu czyli pp. lub ps.&lt;br /&gt;
-- punkty te by się sumowały i zamiast w dwóch zasobach mieć dwa osobne naliczania punktów, mielibyśmy jedno główne sumowanie&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Account_functions}}&lt;br /&gt;
&lt;br /&gt;
[[ru:getAccountData]]&lt;br /&gt;
[[ar:getAccountData]]&lt;br /&gt;
[[pl:getAccountData]]&lt;/div&gt;</summary>
		<author><name>Jurandovsky</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=PL/getAccountData&amp;diff=46791</id>
		<title>PL/getAccountData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PL/getAccountData&amp;diff=46791"/>
		<updated>2016-03-05T15:10:41Z</updated>

		<summary type="html">&lt;p&gt;Jurandovsky: Created page with &amp;quot;{{Server function}} __NOTOC__ {{Note_box|Polecamy, abyś klucze wartości zapisywał w sposób 'zasób.klucz'. Zostanie to pokazane w przykładzie poniżej. Może to zapobiec ...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{Note_box|Polecamy, abyś klucze wartości zapisywał w sposób 'zasób.klucz'. Zostanie to pokazane w przykładzie poniżej. Może to zapobiec niezgodnościom pomiędzy różnymi zasobami.}}&lt;br /&gt;
Funkcja ta pozyskuje wartość zapisaną pod danym kluczem przez [[setAccountData]]. Dane zapisane w account data są trwale zapisane przez całą sesję użytkownika, wyjątkiem jest granie przy użyciu konta gościa.&lt;br /&gt;
&lt;br /&gt;
==Składnia== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getAccountData ( account konto, string klucz )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
{{OOP||[[account]]:getData||setAccountData}}&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theAccount:''' Konto z którego chcesz pobrać wartość.&lt;br /&gt;
*'''key:''' Klucz pod którym jest zapisana wartość.&lt;br /&gt;
&lt;br /&gt;
===Zwracana wartość===&lt;br /&gt;
Funkcja ta zwraca [[string]] zawierający wartość lub ''fałsz'' jeżeli nie było żadnej wartości pod danym kluczem.&lt;br /&gt;
&lt;br /&gt;
==Przykład==&lt;br /&gt;
Załóżmy, że tworzymy dwa zasoby w którym chcemy użyć klucza o nazwie ''punkty''. Pierwszy to ''ps'' a drugi to ''pp'', gdybyśmy w obu jako klucz ustawili po prostu ''punkty'' oba zasoby nadpisywałyby wartość na nową.&lt;br /&gt;
&lt;br /&gt;
Przykład poprawnego użycia:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- zasób ps&lt;br /&gt;
&lt;br /&gt;
function nadajPunkt(plr, cmd)&lt;br /&gt;
	local acc = getPlayerAccount(plr) -- pobieramy swoje konto&lt;br /&gt;
	local wartosc = getAccountData(acc, &amp;quot;ps.pkt&amp;quot;) -- pobieramy wartosc naszego konta spod klucza ps.pkt&lt;br /&gt;
	setAccountData(acc, &amp;quot;ps.pkt&amp;quot;, wartosc + 1) -- nadajemy o 1 wiecej obecnej wartości klucza ps.pkt&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;nadajpkt&amp;quot;, nadajPunkt)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-- zasób pp&lt;br /&gt;
function nadajPkt(plr, cmd)&lt;br /&gt;
	local acc = getPlayerAccount(plr) -- pobieramy swoje konto&lt;br /&gt;
	local wartosc = getAccountData(acc, &amp;quot;pp.pkt&amp;quot;) -- pobieramy wartosc naszego konta spod klucza ps.pkt&lt;br /&gt;
	setAccountData(acc, &amp;quot;pp.pkt&amp;quot;, wartosc + 1) -- nadajemy o 1 wiecej obecnej wartości klucza ps.pkt&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;nadajpunkt&amp;quot;, nadajPkt)&lt;br /&gt;
&lt;br /&gt;
-- wpisujac 3 razy komende /nadajpkt z zasobu ps mamy 3 punkty pod kluczem ps.pkt, wpisujac raz komende /nadajpunkt z zasobu pp mamy 1 punkt pod kluczem pp.pkt&lt;br /&gt;
-- gdybyśmy ustawili jako klucz funkcji getAccountData oraz setAccountData samo pkt, bez przedrostka nazwy zasobu czyli pp. lub ps.&lt;br /&gt;
-- punkty te by się sumowały i zamiast w dwóch zasobach mieć dwa osobne naliczania punktów, mielibyśmy jedno główne sumowanie&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Account_functions}}&lt;br /&gt;
&lt;br /&gt;
[[ru:getAccountData]]&lt;br /&gt;
[[ar:getAccountData]]&lt;br /&gt;
[[pl:getAccountData]]&lt;/div&gt;</summary>
		<author><name>Jurandovsky</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Server_Scripting_Functions&amp;diff=46790</id>
		<title>Server Scripting Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Server_Scripting_Functions&amp;diff=46790"/>
		<updated>2016-03-05T14:40:06Z</updated>

		<summary type="html">&lt;p&gt;Jurandovsky: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pageclass class=&amp;quot;server&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
{{Adding_Pages_to_Categories_and_Templates}}&lt;br /&gt;
This page lists all the '''server-side''' scripting functions that have been implemented and are available as native functions. To request a function or event, use [[Requested Functions and Events]] or http://bugs.mtasa.com.&lt;br /&gt;
&lt;br /&gt;
Please note that the scripting functions can also be extended by loading in dynamic modules that provide new functionality, such as utility functions. These scripting functions are non-native and require the module to be loaded in order to work.&lt;br /&gt;
&lt;br /&gt;
Head over to [[Modules]] for a list of non-native serverside functions and modules that are available.&lt;br /&gt;
&lt;br /&gt;
For more functions, check the [[Useful_Functions|useful functions page]].&lt;br /&gt;
&lt;br /&gt;
'''Client-side scripting functions can be found here: [[Client Scripting Functions]].'''&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
==Account functions==&lt;br /&gt;
{{Account_functions}}&lt;br /&gt;
&lt;br /&gt;
==ACL functions==&lt;br /&gt;
{{ACL_functions}}&lt;br /&gt;
&lt;br /&gt;
==Admin functions==&lt;br /&gt;
{{Admin_functions}}&lt;br /&gt;
&lt;br /&gt;
==Audio functions==&lt;br /&gt;
{{Audio_functions}}&lt;br /&gt;
&lt;br /&gt;
==Announcement functions==&lt;br /&gt;
{{Announce_functions}}&lt;br /&gt;
&lt;br /&gt;
==Blip functions==&lt;br /&gt;
{{Blip_functions}}&lt;br /&gt;
&lt;br /&gt;
==Camera functions==&lt;br /&gt;
{{Camera functions}}&lt;br /&gt;
&lt;br /&gt;
==Collision shape functions==&lt;br /&gt;
{{Collision shape functions}}&lt;br /&gt;
&lt;br /&gt;
==Clothes and body functions==&lt;br /&gt;
{{Clothes and body functions}}&lt;br /&gt;
&lt;br /&gt;
==Cursor functions==&lt;br /&gt;
{{Cursor_functions}}&lt;br /&gt;
&lt;br /&gt;
==Element functions==&lt;br /&gt;
{{Element functions}}&lt;br /&gt;
&lt;br /&gt;
==Event functions==&lt;br /&gt;
{{Event_functions}}&lt;br /&gt;
&lt;br /&gt;
==Explosion functions==&lt;br /&gt;
{{Explosion_functions}}&lt;br /&gt;
&lt;br /&gt;
==File functions==&lt;br /&gt;
{{File_functions}}&lt;br /&gt;
&lt;br /&gt;
==HTTP functions==&lt;br /&gt;
{{HTTP_functions}}&lt;br /&gt;
&lt;br /&gt;
==Input functions==&lt;br /&gt;
{{Input_functions}}&lt;br /&gt;
&lt;br /&gt;
==Map functions==&lt;br /&gt;
{{Map_functions}}&lt;br /&gt;
&lt;br /&gt;
==Marker functions==&lt;br /&gt;
{{Marker functions}}&lt;br /&gt;
&lt;br /&gt;
==Matrix functions==&lt;br /&gt;
{{Shared_matrix_functions}}&lt;br /&gt;
&lt;br /&gt;
==Module functions==&lt;br /&gt;
{{Module functions}}&lt;br /&gt;
&lt;br /&gt;
==Object functions==&lt;br /&gt;
{{Object functions}}&lt;br /&gt;
&lt;br /&gt;
==Ped functions==&lt;br /&gt;
{{Ped_functions}}&lt;br /&gt;
&lt;br /&gt;
==Pickup functions==&lt;br /&gt;
{{Pickup functions}}&lt;br /&gt;
&lt;br /&gt;
==Player functions==&lt;br /&gt;
{{Player functions}}&lt;br /&gt;
&lt;br /&gt;
==Radar area functions==&lt;br /&gt;
{{Radar area functions}}&lt;br /&gt;
&lt;br /&gt;
==Resource functions==&lt;br /&gt;
{{Resource functions}}&lt;br /&gt;
&lt;br /&gt;
==Server functions==&lt;br /&gt;
{{Server functions}}&lt;br /&gt;
&lt;br /&gt;
==Settings registry functions==&lt;br /&gt;
{{Settings registry functions}}&lt;br /&gt;
&lt;br /&gt;
==SQL functions==&lt;br /&gt;
{{SQL_functions}}&lt;br /&gt;
&lt;br /&gt;
==Team functions==&lt;br /&gt;
{{Team functions}}&lt;br /&gt;
&lt;br /&gt;
==Text functions==&lt;br /&gt;
{{Text functions}}&lt;br /&gt;
&lt;br /&gt;
==Utility functions==&lt;br /&gt;
{{Utility functions}}&lt;br /&gt;
&lt;br /&gt;
==UTF8 Library==&lt;br /&gt;
{{UTF8 functions}}&lt;br /&gt;
&lt;br /&gt;
==Vehicle functions==&lt;br /&gt;
{{Vehicle functions}}&lt;br /&gt;
&lt;br /&gt;
==Water functions==&lt;br /&gt;
{{Water functions}}&lt;br /&gt;
&lt;br /&gt;
==Weapon functions==&lt;br /&gt;
{{Weapon functions}}&lt;br /&gt;
&lt;br /&gt;
==World functions==&lt;br /&gt;
{{World functions}}&lt;br /&gt;
&lt;br /&gt;
==XML functions==&lt;br /&gt;
{{XML functions}}&lt;br /&gt;
&lt;br /&gt;
[[ar:Server Scripting Functions]]&lt;br /&gt;
[[ru:Server Scripting Functions]]&lt;br /&gt;
[[es:Funciones_del_Server]]&lt;br /&gt;
[[de:Server-Seitige Scripting Funktionen]]&lt;br /&gt;
[[pl:Serwerowe funkcje skryptowania]]&lt;/div&gt;</summary>
		<author><name>Jurandovsky</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=PL/Server_Scripting_Functions&amp;diff=46789</id>
		<title>PL/Server Scripting Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PL/Server_Scripting_Functions&amp;diff=46789"/>
		<updated>2016-03-05T14:38:56Z</updated>

		<summary type="html">&lt;p&gt;Jurandovsky: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pageclass class=&amp;quot;server&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
{{Adding_Pages_to_Categories_and_Templates}}&lt;br /&gt;
Strona z listą wszystkich funkcji '''server-side''' które zostały zaimplementowane. Jeżeli brakuje Ci jakiejś funkcji lub jakiegoś zdarzenia, możesz napisać tutaj [[Requested Functions and Events]] lub http://bugs.mtasa.com.&lt;br /&gt;
&lt;br /&gt;
Kliknij w [[Modules]] aby zobaczyć listę nie rodzimych server-side funkcji i modułów które są dostępne.&lt;br /&gt;
&lt;br /&gt;
Po więcej funkcji zajrzyj w [[Useful_Functions|useful functions page]].&lt;br /&gt;
&lt;br /&gt;
'''Funkcje client-side można znaleźć w tym odnośniku: [[Client Scripting Functions]].'''&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
==Account functions==&lt;br /&gt;
{{Account_functions}}&lt;br /&gt;
&lt;br /&gt;
==ACL functions==&lt;br /&gt;
{{ACL_functions}}&lt;br /&gt;
&lt;br /&gt;
==Admin functions==&lt;br /&gt;
{{Admin_functions}}&lt;br /&gt;
&lt;br /&gt;
==Audio functions==&lt;br /&gt;
{{Audio_functions}}&lt;br /&gt;
&lt;br /&gt;
==Announcement functions==&lt;br /&gt;
{{Announce_functions}}&lt;br /&gt;
&lt;br /&gt;
==Blip functions==&lt;br /&gt;
{{Blip_functions}}&lt;br /&gt;
&lt;br /&gt;
==Camera functions==&lt;br /&gt;
{{Camera functions}}&lt;br /&gt;
&lt;br /&gt;
==Collision shape functions==&lt;br /&gt;
{{Collision shape functions}}&lt;br /&gt;
&lt;br /&gt;
==Clothes and body functions==&lt;br /&gt;
{{Clothes and body functions}}&lt;br /&gt;
&lt;br /&gt;
==Cursor functions==&lt;br /&gt;
{{Cursor_functions}}&lt;br /&gt;
&lt;br /&gt;
==Element functions==&lt;br /&gt;
{{Element functions}}&lt;br /&gt;
&lt;br /&gt;
==Event functions==&lt;br /&gt;
{{Event_functions}}&lt;br /&gt;
&lt;br /&gt;
==Explosion functions==&lt;br /&gt;
{{Explosion_functions}}&lt;br /&gt;
&lt;br /&gt;
==File functions==&lt;br /&gt;
{{File_functions}}&lt;br /&gt;
&lt;br /&gt;
==HTTP functions==&lt;br /&gt;
{{HTTP_functions}}&lt;br /&gt;
&lt;br /&gt;
==Input functions==&lt;br /&gt;
{{Input_functions}}&lt;br /&gt;
&lt;br /&gt;
==Map functions==&lt;br /&gt;
{{Map_functions}}&lt;br /&gt;
&lt;br /&gt;
==Marker functions==&lt;br /&gt;
{{Marker functions}}&lt;br /&gt;
&lt;br /&gt;
==Matrix functions==&lt;br /&gt;
{{Shared_matrix_functions}}&lt;br /&gt;
&lt;br /&gt;
==Module functions==&lt;br /&gt;
{{Module functions}}&lt;br /&gt;
&lt;br /&gt;
==Object functions==&lt;br /&gt;
{{Object functions}}&lt;br /&gt;
&lt;br /&gt;
==Ped functions==&lt;br /&gt;
{{Ped_functions}}&lt;br /&gt;
&lt;br /&gt;
==Pickup functions==&lt;br /&gt;
{{Pickup functions}}&lt;br /&gt;
&lt;br /&gt;
==Player functions==&lt;br /&gt;
{{Player functions}}&lt;br /&gt;
&lt;br /&gt;
==Radar area functions==&lt;br /&gt;
{{Radar area functions}}&lt;br /&gt;
&lt;br /&gt;
==Resource functions==&lt;br /&gt;
{{Resource functions}}&lt;br /&gt;
&lt;br /&gt;
==Server functions==&lt;br /&gt;
{{Server functions}}&lt;br /&gt;
&lt;br /&gt;
==Settings registry functions==&lt;br /&gt;
{{Settings registry functions}}&lt;br /&gt;
&lt;br /&gt;
==SQL functions==&lt;br /&gt;
{{SQL_functions}}&lt;br /&gt;
&lt;br /&gt;
==Team functions==&lt;br /&gt;
{{Team functions}}&lt;br /&gt;
&lt;br /&gt;
==Text functions==&lt;br /&gt;
{{Text functions}}&lt;br /&gt;
&lt;br /&gt;
==Utility functions==&lt;br /&gt;
{{Utility functions}}&lt;br /&gt;
&lt;br /&gt;
==UTF8 Library==&lt;br /&gt;
{{UTF8 functions}}&lt;br /&gt;
&lt;br /&gt;
==Vehicle functions==&lt;br /&gt;
{{Vehicle functions}}&lt;br /&gt;
&lt;br /&gt;
==Water functions==&lt;br /&gt;
{{Water functions}}&lt;br /&gt;
&lt;br /&gt;
==Weapon functions==&lt;br /&gt;
{{Weapon functions}}&lt;br /&gt;
&lt;br /&gt;
==World functions==&lt;br /&gt;
{{World functions}}&lt;br /&gt;
&lt;br /&gt;
==XML functions==&lt;br /&gt;
{{XML functions}}&lt;br /&gt;
&lt;br /&gt;
[[ar:Server Scripting Functions]]&lt;br /&gt;
[[ru:Server Scripting Functions]]&lt;br /&gt;
[[es:Funciones_del_Server]]&lt;br /&gt;
[[de:Server-Seitige Scripting Funktionen]]&lt;br /&gt;
[[pl:Server Scripting Functions]]&lt;br /&gt;
[[en:Server Scripting Functions]]&lt;/div&gt;</summary>
		<author><name>Jurandovsky</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=PL/copyAccountData&amp;diff=46784</id>
		<title>PL/copyAccountData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PL/copyAccountData&amp;diff=46784"/>
		<updated>2016-03-05T14:31:15Z</updated>

		<summary type="html">&lt;p&gt;Jurandovsky: Jurandovsky moved page PL/copyAccountData to PL/CopyAccountData&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{server function}}&lt;br /&gt;
Funkcja ta pozwala na skopiowanie wszystkich wartości konta z jednego [[account]] na drugie.&lt;br /&gt;
&lt;br /&gt;
==Składnia== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool copyAccountData ( account theAccount, account fromAccount )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[account]]:copyDataTo||}}&lt;br /&gt;
&lt;br /&gt;
===Wymagane parametry=== &lt;br /&gt;
*'''theAccount:''' Konto na które chcesz skopiować wartość.&lt;br /&gt;
*'''fromAccount:''' Konto z którego kopiujesz wartość.&lt;br /&gt;
&lt;br /&gt;
===Zwracana wartość===&lt;br /&gt;
Funkcja ta zwraca ''prawdę'' jeżeli konta zostały podane prawidłowo, lub ''fałsz'' w przeciwnym wypadku.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
Po wpisaniu komendy /skopiuj kopiuje wartości z konta losowego gracza i przypisuje je na nasze konto&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
addCommandHandler(&amp;quot;skopiuj&amp;quot;, function(plr, cmd)&lt;br /&gt;
	local acc = getPlayerAccount(plr) -- pobieramy nasze konto&lt;br /&gt;
	local acc2 = getPlayerAccount(getRandomPlayer()) -- pobieramy konto losowego gracza&lt;br /&gt;
	copyAccountData(acc2, acc) -- kopiujemy z konta 'acc2' wszystkie wartości i przypisujemy je do konca 'acc'&lt;br /&gt;
end)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Zobacz również==&lt;br /&gt;
{{Account_functions}}&lt;br /&gt;
[[ru:copyAccountData]]&lt;br /&gt;
[[ar:copyAccountData]]&lt;br /&gt;
[[pl:copyAccountData]]&lt;/div&gt;</summary>
		<author><name>Jurandovsky</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=PL/copyAccountData&amp;diff=46778</id>
		<title>PL/copyAccountData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PL/copyAccountData&amp;diff=46778"/>
		<updated>2016-03-05T13:52:56Z</updated>

		<summary type="html">&lt;p&gt;Jurandovsky: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{server function}}&lt;br /&gt;
Funkcja ta pozwala na skopiowanie wszystkich wartości konta z jednego [[account]] na drugie.&lt;br /&gt;
&lt;br /&gt;
==Składnia== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool copyAccountData ( account theAccount, account fromAccount )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[account]]:copyDataTo||}}&lt;br /&gt;
&lt;br /&gt;
===Wymagane parametry=== &lt;br /&gt;
*'''theAccount:''' Konto na które chcesz skopiować wartość.&lt;br /&gt;
*'''fromAccount:''' Konto z którego kopiujesz wartość.&lt;br /&gt;
&lt;br /&gt;
===Zwracana wartość===&lt;br /&gt;
Funkcja ta zwraca ''prawdę'' jeżeli konta zostały podane prawidłowo, lub ''fałsz'' w przeciwnym wypadku.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
Po wpisaniu komendy /skopiuj kopiuje wartości z konta losowego gracza i przypisuje je na nasze konto&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
addCommandHandler(&amp;quot;skopiuj&amp;quot;, function(plr, cmd)&lt;br /&gt;
	local acc = getPlayerAccount(plr) -- pobieramy nasze konto&lt;br /&gt;
	local acc2 = getPlayerAccount(getRandomPlayer()) -- pobieramy konto losowego gracza&lt;br /&gt;
	copyAccountData(acc2, acc) -- kopiujemy z konta 'acc2' wszystkie wartości i przypisujemy je do konca 'acc'&lt;br /&gt;
end)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Zobacz również==&lt;br /&gt;
{{Account_functions}}&lt;br /&gt;
[[ru:copyAccountData]]&lt;br /&gt;
[[ar:copyAccountData]]&lt;br /&gt;
[[pl:copyAccountData]]&lt;/div&gt;</summary>
		<author><name>Jurandovsky</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=CopyAccountData&amp;diff=46777</id>
		<title>CopyAccountData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=CopyAccountData&amp;diff=46777"/>
		<updated>2016-03-05T13:51:52Z</updated>

		<summary type="html">&lt;p&gt;Jurandovsky: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server function}}&lt;br /&gt;
This function copies all of the data from one [[account]] to another.&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 copyAccountData ( account theAccount, account fromAccount )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[account]]:copyDataTo||}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theAccount:''' The account you wish to copy the data ''to''.&lt;br /&gt;
*'''fromAccount:''' The account you wish to copy the data ''from''.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a ''true'' if the accounts were valid, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example copies the account data from the 'guest' to a registered account when they login&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function copyDataOnLogin ( previousAccount, currentAccount, autoLogin)&lt;br /&gt;
  copyAccountData ( currentAccount, previousAccount )&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerLogin&amp;quot;, getRootElement(), copyDataOnLogin )&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Account_functions}}&lt;br /&gt;
[[ru:copyAccountData]]&lt;br /&gt;
[[ar:copyAccountData]]&lt;br /&gt;
[[pl:copyAccountData]]&lt;/div&gt;</summary>
		<author><name>Jurandovsky</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Server_Scripting_Functions&amp;diff=46776</id>
		<title>Server Scripting Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Server_Scripting_Functions&amp;diff=46776"/>
		<updated>2016-03-05T13:51:27Z</updated>

		<summary type="html">&lt;p&gt;Jurandovsky: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pageclass class=&amp;quot;server&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
{{Adding_Pages_to_Categories_and_Templates}}&lt;br /&gt;
This page lists all the '''server-side''' scripting functions that have been implemented and are available as native functions. To request a function or event, use [[Requested Functions and Events]] or http://bugs.mtasa.com.&lt;br /&gt;
&lt;br /&gt;
Please note that the scripting functions can also be extended by loading in dynamic modules that provide new functionality, such as utility functions. These scripting functions are non-native and require the module to be loaded in order to work.&lt;br /&gt;
&lt;br /&gt;
Head over to [[Modules]] for a list of non-native serverside functions and modules that are available.&lt;br /&gt;
&lt;br /&gt;
For more functions, check the [[Useful_Functions|useful functions page]].&lt;br /&gt;
&lt;br /&gt;
'''Client-side scripting functions can be found here: [[Client Scripting Functions]].'''&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
==Account functions==&lt;br /&gt;
{{Account_functions}}&lt;br /&gt;
&lt;br /&gt;
==ACL functions==&lt;br /&gt;
{{ACL_functions}}&lt;br /&gt;
&lt;br /&gt;
==Admin functions==&lt;br /&gt;
{{Admin_functions}}&lt;br /&gt;
&lt;br /&gt;
==Audio functions==&lt;br /&gt;
{{Audio_functions}}&lt;br /&gt;
&lt;br /&gt;
==Announcement functions==&lt;br /&gt;
{{Announce_functions}}&lt;br /&gt;
&lt;br /&gt;
==Blip functions==&lt;br /&gt;
{{Blip_functions}}&lt;br /&gt;
&lt;br /&gt;
==Camera functions==&lt;br /&gt;
{{Camera functions}}&lt;br /&gt;
&lt;br /&gt;
==Collision shape functions==&lt;br /&gt;
{{Collision shape functions}}&lt;br /&gt;
&lt;br /&gt;
==Clothes and body functions==&lt;br /&gt;
{{Clothes and body functions}}&lt;br /&gt;
&lt;br /&gt;
==Cursor functions==&lt;br /&gt;
{{Cursor_functions}}&lt;br /&gt;
&lt;br /&gt;
==Element functions==&lt;br /&gt;
{{Element functions}}&lt;br /&gt;
&lt;br /&gt;
==Event functions==&lt;br /&gt;
{{Event_functions}}&lt;br /&gt;
&lt;br /&gt;
==Explosion functions==&lt;br /&gt;
{{Explosion_functions}}&lt;br /&gt;
&lt;br /&gt;
==File functions==&lt;br /&gt;
{{File_functions}}&lt;br /&gt;
&lt;br /&gt;
==HTTP functions==&lt;br /&gt;
{{HTTP_functions}}&lt;br /&gt;
&lt;br /&gt;
==Input functions==&lt;br /&gt;
{{Input_functions}}&lt;br /&gt;
&lt;br /&gt;
==Map functions==&lt;br /&gt;
{{Map_functions}}&lt;br /&gt;
&lt;br /&gt;
==Marker functions==&lt;br /&gt;
{{Marker functions}}&lt;br /&gt;
&lt;br /&gt;
==Matrix functions==&lt;br /&gt;
{{Shared_matrix_functions}}&lt;br /&gt;
&lt;br /&gt;
==Module functions==&lt;br /&gt;
{{Module functions}}&lt;br /&gt;
&lt;br /&gt;
==Object functions==&lt;br /&gt;
{{Object functions}}&lt;br /&gt;
&lt;br /&gt;
==Ped functions==&lt;br /&gt;
{{Ped_functions}}&lt;br /&gt;
&lt;br /&gt;
==Pickup functions==&lt;br /&gt;
{{Pickup functions}}&lt;br /&gt;
&lt;br /&gt;
==Player functions==&lt;br /&gt;
{{Player functions}}&lt;br /&gt;
&lt;br /&gt;
==Radar area functions==&lt;br /&gt;
{{Radar area functions}}&lt;br /&gt;
&lt;br /&gt;
==Resource functions==&lt;br /&gt;
{{Resource functions}}&lt;br /&gt;
&lt;br /&gt;
==Server functions==&lt;br /&gt;
{{Server functions}}&lt;br /&gt;
&lt;br /&gt;
==Settings registry functions==&lt;br /&gt;
{{Settings registry functions}}&lt;br /&gt;
&lt;br /&gt;
==SQL functions==&lt;br /&gt;
{{SQL_functions}}&lt;br /&gt;
&lt;br /&gt;
==Team functions==&lt;br /&gt;
{{Team functions}}&lt;br /&gt;
&lt;br /&gt;
==Text functions==&lt;br /&gt;
{{Text functions}}&lt;br /&gt;
&lt;br /&gt;
==Utility functions==&lt;br /&gt;
{{Utility functions}}&lt;br /&gt;
&lt;br /&gt;
==UTF8 Library==&lt;br /&gt;
{{UTF8 functions}}&lt;br /&gt;
&lt;br /&gt;
==Vehicle functions==&lt;br /&gt;
{{Vehicle functions}}&lt;br /&gt;
&lt;br /&gt;
==Water functions==&lt;br /&gt;
{{Water functions}}&lt;br /&gt;
&lt;br /&gt;
==Weapon functions==&lt;br /&gt;
{{Weapon functions}}&lt;br /&gt;
&lt;br /&gt;
==World functions==&lt;br /&gt;
{{World functions}}&lt;br /&gt;
&lt;br /&gt;
==XML functions==&lt;br /&gt;
{{XML functions}}&lt;br /&gt;
&lt;br /&gt;
[[ar:Server Scripting Functions]]&lt;br /&gt;
[[ru:Server Scripting Functions]]&lt;br /&gt;
[[es:Funciones_del_Server]]&lt;br /&gt;
[[de:Server-Seitige Scripting Funktionen]]&lt;br /&gt;
[[pl:Server Scripting Functions]]&lt;/div&gt;</summary>
		<author><name>Jurandovsky</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=PL/copyAccountData&amp;diff=46774</id>
		<title>PL/copyAccountData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PL/copyAccountData&amp;diff=46774"/>
		<updated>2016-03-04T19:10:16Z</updated>

		<summary type="html">&lt;p&gt;Jurandovsky: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{server function}}&lt;br /&gt;
Funkcja ta pozwala na skopiowanie wszystkich wartości konta z jednego [[account]] na drugie.&lt;br /&gt;
&lt;br /&gt;
==Składnia== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool copyAccountData ( account theAccount, account fromAccount )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[account]]:copyDataTo||}}&lt;br /&gt;
&lt;br /&gt;
===Wymagane parametry=== &lt;br /&gt;
*'''theAccount:''' Konto na które chcesz skopiować wartość.&lt;br /&gt;
*'''fromAccount:''' Konto z którego kopiujesz wartość.&lt;br /&gt;
&lt;br /&gt;
===Zwracana wartość===&lt;br /&gt;
Funkcja ta zwraca ''prawdę'' jeżeli konta zostały podane prawidłowo, lub ''fałsz'' w przeciwnym wypadku.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
Ten przykład kopiuje wartość konta 'gościa' do zarejestrowanego konta, gdy gość ten loguje się do gry.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
addCommandHandler(&amp;quot;skopiuj&amp;quot;, function(plr, cmd)&lt;br /&gt;
	local acc = getPlayerAccount(plr) -- pobieramy nasze konto&lt;br /&gt;
	local acc2 = getPlayerAccount(getRandomPlayer()) -- pobieramy konto losowego gracza&lt;br /&gt;
	copyAccountData(acc2, acc) -- kopiujemy z konta 'acc' wszystkie wartości i przypisujemy je do konca 'acc'&lt;br /&gt;
end)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Zobacz również==&lt;br /&gt;
{{Account_functions}}&lt;br /&gt;
[[ru:copyAccountData]]&lt;br /&gt;
[[ar:copyAccountData]]&lt;br /&gt;
[[pl:copyAccountData]]&lt;/div&gt;</summary>
		<author><name>Jurandovsky</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=PL/copyAccountData&amp;diff=46773</id>
		<title>PL/copyAccountData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PL/copyAccountData&amp;diff=46773"/>
		<updated>2016-03-04T19:10:03Z</updated>

		<summary type="html">&lt;p&gt;Jurandovsky: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{server function}}&lt;br /&gt;
Funkcja ta pozwala na skopiowanie wszystkich wartości konta z jednego [[account]] na drugie.&lt;br /&gt;
&lt;br /&gt;
==Składnia== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool copyAccountData ( account theAccount, account fromAccount )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[account]]:copyDataTo||}}&lt;br /&gt;
&lt;br /&gt;
===Wymagane parametry=== &lt;br /&gt;
*'''theAccount:''' Konto na które chcesz skopiować wartość.&lt;br /&gt;
*'''fromAccount:''' Konto z którego kopiujesz wartość.&lt;br /&gt;
&lt;br /&gt;
===Zwracana wartość===&lt;br /&gt;
Funkcja ta zwraca ''prawdę'' jeżeli konta zostały podane prawidłowo, lub ''fałsz'' w przeciwnym wypadku.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
Ten przykład kopiuje wartość konta 'gościa' do zarejestrowanego konta, gdy gość ten loguje się do gry.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- przykład i przełożenie na język polski wykonane przez: Jurandovsky&lt;br /&gt;
&lt;br /&gt;
addCommandHandler(&amp;quot;skopiuj&amp;quot;, function(plr, cmd)&lt;br /&gt;
	local acc = getPlayerAccount(plr) -- pobieramy nasze konto&lt;br /&gt;
	local acc2 = getPlayerAccount(getRandomPlayer()) -- pobieramy konto losowego gracza&lt;br /&gt;
	copyAccountData(acc2, acc) -- kopiujemy z konta 'acc' wszystkie wartości i przypisujemy je do konca 'acc'&lt;br /&gt;
end)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Zobacz również==&lt;br /&gt;
{{Account_functions}}&lt;br /&gt;
[[ru:copyAccountData]]&lt;br /&gt;
[[ar:copyAccountData]]&lt;br /&gt;
[[pl:copyAccountData]]&lt;/div&gt;</summary>
		<author><name>Jurandovsky</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=PL/copyAccountData&amp;diff=46772</id>
		<title>PL/copyAccountData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PL/copyAccountData&amp;diff=46772"/>
		<updated>2016-03-04T19:09:22Z</updated>

		<summary type="html">&lt;p&gt;Jurandovsky: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{server function}}&lt;br /&gt;
Funkcja ta pozwala na skopiowanie wszystkich wartości konta z jednego [[account]] na drugie.&lt;br /&gt;
&lt;br /&gt;
==Składnia== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool copyAccountData ( account theAccount, account fromAccount )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[account]]:copyDataTo||}}&lt;br /&gt;
&lt;br /&gt;
===Wymagane parametry=== &lt;br /&gt;
*'''theAccount:''' Konto na które chcesz skopiować wartość.&lt;br /&gt;
*'''fromAccount:''' Konto z którego kopiujesz wartość.&lt;br /&gt;
&lt;br /&gt;
===Zwracana wartość===&lt;br /&gt;
Funkcja ta zwraca ''prawdę'' jeżeli konta zostały podane prawidłowo, lub ''fałsz'' w przeciwnym wypadku.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
Ten przykład kopiuje wartość konta 'gościa' do zarejestrowanego konta, gdy gość ten loguje się do gry.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;skopiuj&amp;quot;, function(plr, cmd)&lt;br /&gt;
	local acc = getPlayerAccount(plr) -- pobieramy nasze konto&lt;br /&gt;
	local acc2 = getPlayerAccount(getRandomPlayer()) -- pobieramy konto losowego gracza&lt;br /&gt;
	copyAccountData(acc2, acc) -- kopiujemy z konta 'acc' wszystkie wartości i przypisujemy je do konca 'acc'&lt;br /&gt;
end)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Zobacz również==&lt;br /&gt;
{{Account_functions}}&lt;br /&gt;
[[ru:copyAccountData]]&lt;br /&gt;
[[ar:copyAccountData]]&lt;br /&gt;
[[pl:copyAccountData]]&lt;/div&gt;</summary>
		<author><name>Jurandovsky</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=PL/copyAccountData&amp;diff=46771</id>
		<title>PL/copyAccountData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PL/copyAccountData&amp;diff=46771"/>
		<updated>2016-03-04T19:08:52Z</updated>

		<summary type="html">&lt;p&gt;Jurandovsky: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{server function}}&lt;br /&gt;
Funkcja ta pozwala na skopiowanie wszystkich wartości konta z jednego [[account]] na drugie.&lt;br /&gt;
&lt;br /&gt;
==Składnia== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool copyAccountData ( account theAccount, account fromAccount )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[account]]:copyDataTo||}}&lt;br /&gt;
&lt;br /&gt;
===Wymagane parametry=== &lt;br /&gt;
*'''theAccount:''' Konto na które chcesz skopiować wartość.&lt;br /&gt;
*'''fromAccount:''' Konto z którego kopiujesz wartość.&lt;br /&gt;
&lt;br /&gt;
===Zwracana wartość===&lt;br /&gt;
Funkcja ta zwraca ''prawdę'' jeżeli konta są prawidłowe, lub ''fałsz'' w przeciwnym wypadku.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
Ten przykład kopiuje wartość konta 'gościa' do zarejestrowanego konta, gdy gość ten loguje się do gry.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;skopiuj&amp;quot;, function(plr, cmd)&lt;br /&gt;
	local acc = getPlayerAccount(plr) -- pobieramy nasze konto&lt;br /&gt;
	local acc2 = getPlayerAccount(getRandomPlayer()) -- pobieramy konto losowego gracza&lt;br /&gt;
	copyAccountData(acc2, acc) -- kopiujemy z konta 'acc' wszystkie wartości i przypisujemy je do konca 'acc'&lt;br /&gt;
end)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Zobacz również==&lt;br /&gt;
{{Account_functions}}&lt;br /&gt;
[[ru:copyAccountData]]&lt;br /&gt;
[[ar:copyAccountData]]&lt;br /&gt;
[[pl:copyAccountData]]&lt;/div&gt;</summary>
		<author><name>Jurandovsky</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=PL/copyAccountData&amp;diff=46770</id>
		<title>PL/copyAccountData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PL/copyAccountData&amp;diff=46770"/>
		<updated>2016-03-04T19:08:33Z</updated>

		<summary type="html">&lt;p&gt;Jurandovsky: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Serverside function}}&lt;br /&gt;
Funkcja ta pozwala na skopiowanie wszystkich wartości konta z jednego [[account]] na drugie.&lt;br /&gt;
&lt;br /&gt;
==Składnia== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool copyAccountData ( account theAccount, account fromAccount )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[account]]:copyDataTo||}}&lt;br /&gt;
&lt;br /&gt;
===Wymagane parametry=== &lt;br /&gt;
*'''theAccount:''' Konto na które chcesz skopiować wartość.&lt;br /&gt;
*'''fromAccount:''' Konto z którego kopiujesz wartość.&lt;br /&gt;
&lt;br /&gt;
===Zwracana wartość===&lt;br /&gt;
Funkcja ta zwraca ''prawdę'' jeżeli konta są prawidłowe, lub ''fałsz'' w przeciwnym wypadku.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
Ten przykład kopiuje wartość konta 'gościa' do zarejestrowanego konta, gdy gość ten loguje się do gry.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;skopiuj&amp;quot;, function(plr, cmd)&lt;br /&gt;
	local acc = getPlayerAccount(plr) -- pobieramy nasze konto&lt;br /&gt;
	local acc2 = getPlayerAccount(getRandomPlayer()) -- pobieramy konto losowego gracza&lt;br /&gt;
	copyAccountData(acc2, acc) -- kopiujemy z konta 'acc' wszystkie wartości i przypisujemy je do konca 'acc'&lt;br /&gt;
end)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Zobacz również==&lt;br /&gt;
{{Account_functions}}&lt;br /&gt;
[[ru:copyAccountData]]&lt;br /&gt;
[[ar:copyAccountData]]&lt;br /&gt;
[[pl:copyAccountData]]&lt;/div&gt;</summary>
		<author><name>Jurandovsky</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=PL/copyAccountData&amp;diff=46769</id>
		<title>PL/copyAccountData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PL/copyAccountData&amp;diff=46769"/>
		<updated>2016-03-04T19:08:17Z</updated>

		<summary type="html">&lt;p&gt;Jurandovsky: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Funkcja serwerowa}}&lt;br /&gt;
Funkcja ta pozwala na skopiowanie wszystkich wartości konta z jednego [[account]] na drugie.&lt;br /&gt;
&lt;br /&gt;
==Składnia== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool copyAccountData ( account theAccount, account fromAccount )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[account]]:copyDataTo||}}&lt;br /&gt;
&lt;br /&gt;
===Wymagane parametry=== &lt;br /&gt;
*'''theAccount:''' Konto na które chcesz skopiować wartość.&lt;br /&gt;
*'''fromAccount:''' Konto z którego kopiujesz wartość.&lt;br /&gt;
&lt;br /&gt;
===Zwracana wartość===&lt;br /&gt;
Funkcja ta zwraca ''prawdę'' jeżeli konta są prawidłowe, lub ''fałsz'' w przeciwnym wypadku.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
Ten przykład kopiuje wartość konta 'gościa' do zarejestrowanego konta, gdy gość ten loguje się do gry.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;skopiuj&amp;quot;, function(plr, cmd)&lt;br /&gt;
	local acc = getPlayerAccount(plr) -- pobieramy nasze konto&lt;br /&gt;
	local acc2 = getPlayerAccount(getRandomPlayer()) -- pobieramy konto losowego gracza&lt;br /&gt;
	copyAccountData(acc2, acc) -- kopiujemy z konta 'acc' wszystkie wartości i przypisujemy je do konca 'acc'&lt;br /&gt;
end)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Zobacz również==&lt;br /&gt;
{{Account_functions}}&lt;br /&gt;
[[ru:copyAccountData]]&lt;br /&gt;
[[ar:copyAccountData]]&lt;br /&gt;
[[pl:copyAccountData]]&lt;/div&gt;</summary>
		<author><name>Jurandovsky</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=PL/copyAccountData&amp;diff=46768</id>
		<title>PL/copyAccountData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PL/copyAccountData&amp;diff=46768"/>
		<updated>2016-03-04T19:08:02Z</updated>

		<summary type="html">&lt;p&gt;Jurandovsky: Created page with &amp;quot;__NOTOC__  {{Funkcja serwerowa}} Funkcja ta pozwala na skopiowanie wszystkich wartości konta z jednego konta na drugie.  ==Składnia==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; bool copyAccountData...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Funkcja serwerowa}}&lt;br /&gt;
Funkcja ta pozwala na skopiowanie wszystkich wartości konta z jednego [[konta]] na drugie.&lt;br /&gt;
&lt;br /&gt;
==Składnia== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool copyAccountData ( account theAccount, account fromAccount )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[account]]:copyDataTo||}}&lt;br /&gt;
&lt;br /&gt;
===Wymagane parametry=== &lt;br /&gt;
*'''theAccount:''' Konto na które chcesz skopiować wartość.&lt;br /&gt;
*'''fromAccount:''' Konto z którego kopiujesz wartość.&lt;br /&gt;
&lt;br /&gt;
===Zwracana wartość===&lt;br /&gt;
Funkcja ta zwraca ''prawdę'' jeżeli konta są prawidłowe, lub ''fałsz'' w przeciwnym wypadku.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
Ten przykład kopiuje wartość konta 'gościa' do zarejestrowanego konta, gdy gość ten loguje się do gry.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addCommandHandler(&amp;quot;skopiuj&amp;quot;, function(plr, cmd)&lt;br /&gt;
	local acc = getPlayerAccount(plr) -- pobieramy nasze konto&lt;br /&gt;
	local acc2 = getPlayerAccount(getRandomPlayer()) -- pobieramy konto losowego gracza&lt;br /&gt;
	copyAccountData(acc2, acc) -- kopiujemy z konta 'acc' wszystkie wartości i przypisujemy je do konca 'acc'&lt;br /&gt;
end)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Zobacz również==&lt;br /&gt;
{{Account_functions}}&lt;br /&gt;
[[ru:copyAccountData]]&lt;br /&gt;
[[ar:copyAccountData]]&lt;br /&gt;
[[pl:copyAccountData]]&lt;/div&gt;</summary>
		<author><name>Jurandovsky</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=PL/Server_Scripting_Functions&amp;diff=46767</id>
		<title>PL/Server Scripting Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PL/Server_Scripting_Functions&amp;diff=46767"/>
		<updated>2016-03-04T18:03:38Z</updated>

		<summary type="html">&lt;p&gt;Jurandovsky: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pageclass class=&amp;quot;server&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
{{Adding_Pages_to_Categories_and_Templates}}&lt;br /&gt;
Strona z listą wszystkich funkcji '''server-side''' które zostały zaimplementowane. Jeżeli brakuje Ci jakiejś funkcji lub jakiegoś zdarzenia, możesz napisać tutaj [[Requested Functions and Events]] lub http://bugs.mtasa.com.&lt;br /&gt;
&lt;br /&gt;
Kliknij w [[Modules]] aby zobaczyć listę nie rodzimych server-side funkcji i modułów które są dostępne.&lt;br /&gt;
&lt;br /&gt;
Po więcej funkcji zajrzyj w [[Useful_Functions|useful functions page]].&lt;br /&gt;
&lt;br /&gt;
'''Funkcje client-side można znaleźć w tym odnośniku: [[Client Scripting Functions]].'''&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
==Account functions==&lt;br /&gt;
{{Account_functions}}&lt;br /&gt;
&lt;br /&gt;
==ACL functions==&lt;br /&gt;
{{ACL_functions}}&lt;br /&gt;
&lt;br /&gt;
==Admin functions==&lt;br /&gt;
{{Admin_functions}}&lt;br /&gt;
&lt;br /&gt;
==Audio functions==&lt;br /&gt;
{{Audio_functions}}&lt;br /&gt;
&lt;br /&gt;
==Announcement functions==&lt;br /&gt;
{{Announce_functions}}&lt;br /&gt;
&lt;br /&gt;
==Blip functions==&lt;br /&gt;
{{Blip_functions}}&lt;br /&gt;
&lt;br /&gt;
==Camera functions==&lt;br /&gt;
{{Camera functions}}&lt;br /&gt;
&lt;br /&gt;
==Collision shape functions==&lt;br /&gt;
{{Collision shape functions}}&lt;br /&gt;
&lt;br /&gt;
==Clothes and body functions==&lt;br /&gt;
{{Clothes and body functions}}&lt;br /&gt;
&lt;br /&gt;
==Cursor functions==&lt;br /&gt;
{{Cursor_functions}}&lt;br /&gt;
&lt;br /&gt;
==Element functions==&lt;br /&gt;
{{Element functions}}&lt;br /&gt;
&lt;br /&gt;
==Event functions==&lt;br /&gt;
{{Event_functions}}&lt;br /&gt;
&lt;br /&gt;
==Explosion functions==&lt;br /&gt;
{{Explosion_functions}}&lt;br /&gt;
&lt;br /&gt;
==File functions==&lt;br /&gt;
{{File_functions}}&lt;br /&gt;
&lt;br /&gt;
==HTTP functions==&lt;br /&gt;
{{HTTP_functions}}&lt;br /&gt;
&lt;br /&gt;
==Input functions==&lt;br /&gt;
{{Input_functions}}&lt;br /&gt;
&lt;br /&gt;
==Map functions==&lt;br /&gt;
{{Map_functions}}&lt;br /&gt;
&lt;br /&gt;
==Marker functions==&lt;br /&gt;
{{Marker functions}}&lt;br /&gt;
&lt;br /&gt;
==Matrix functions==&lt;br /&gt;
{{Shared_matrix_functions}}&lt;br /&gt;
&lt;br /&gt;
==Module functions==&lt;br /&gt;
{{Module functions}}&lt;br /&gt;
&lt;br /&gt;
==Object functions==&lt;br /&gt;
{{Object functions}}&lt;br /&gt;
&lt;br /&gt;
==Ped functions==&lt;br /&gt;
{{Ped_functions}}&lt;br /&gt;
&lt;br /&gt;
==Pickup functions==&lt;br /&gt;
{{Pickup functions}}&lt;br /&gt;
&lt;br /&gt;
==Player functions==&lt;br /&gt;
{{Player functions}}&lt;br /&gt;
&lt;br /&gt;
==Radar area functions==&lt;br /&gt;
{{Radar area functions}}&lt;br /&gt;
&lt;br /&gt;
==Resource functions==&lt;br /&gt;
{{Resource functions}}&lt;br /&gt;
&lt;br /&gt;
==Server functions==&lt;br /&gt;
{{Server functions}}&lt;br /&gt;
&lt;br /&gt;
==Settings registry functions==&lt;br /&gt;
{{Settings registry functions}}&lt;br /&gt;
&lt;br /&gt;
==SQL functions==&lt;br /&gt;
{{SQL_functions}}&lt;br /&gt;
&lt;br /&gt;
==Team functions==&lt;br /&gt;
{{Team functions}}&lt;br /&gt;
&lt;br /&gt;
==Text functions==&lt;br /&gt;
{{Text functions}}&lt;br /&gt;
&lt;br /&gt;
==Utility functions==&lt;br /&gt;
{{Utility functions}}&lt;br /&gt;
&lt;br /&gt;
==UTF8 Library==&lt;br /&gt;
{{UTF8 functions}}&lt;br /&gt;
&lt;br /&gt;
==Vehicle functions==&lt;br /&gt;
{{Vehicle functions}}&lt;br /&gt;
&lt;br /&gt;
==Water functions==&lt;br /&gt;
{{Water functions}}&lt;br /&gt;
&lt;br /&gt;
==Weapon functions==&lt;br /&gt;
{{Weapon functions}}&lt;br /&gt;
&lt;br /&gt;
==World functions==&lt;br /&gt;
{{World functions}}&lt;br /&gt;
&lt;br /&gt;
==XML functions==&lt;br /&gt;
{{XML functions}}&lt;br /&gt;
&lt;br /&gt;
[[ar:Server Scripting Functions]]&lt;br /&gt;
[[ru:Server Scripting Functions]]&lt;br /&gt;
[[es:Funciones_del_Server]]&lt;br /&gt;
[[de:Server-Seitige Scripting Funktionen]]&lt;br /&gt;
[[pl:Server Scripting Functions]]&lt;/div&gt;</summary>
		<author><name>Jurandovsky</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=PL/Server_Scripting_Functions&amp;diff=46766</id>
		<title>PL/Server Scripting Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PL/Server_Scripting_Functions&amp;diff=46766"/>
		<updated>2016-03-04T18:02:56Z</updated>

		<summary type="html">&lt;p&gt;Jurandovsky: Created page with &amp;quot;&amp;lt;pageclass class=&amp;quot;server&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt; {{Adding_Pages_to_Categories_and_Templates}} Strona z listą wszystkich funkcji '''server-side''' które zostały zaimplementowane. Jeż...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pageclass class=&amp;quot;server&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
{{Adding_Pages_to_Categories_and_Templates}}&lt;br /&gt;
Strona z listą wszystkich funkcji '''server-side''' które zostały zaimplementowane. Jeżeli brakuje Ci jakiejś funkcji lub jakiegoś zdarzenia, możesz napisać tutaj [[Requested Functions and Events]] lub http://bugs.mtasa.com.&lt;br /&gt;
&lt;br /&gt;
Kliknij w [[Modules]] aby zobaczyć listę nie rodzimych server-side funkcji i modułów które są dostępne.&lt;br /&gt;
&lt;br /&gt;
Po więcej funkcji zajrzyj w [[Useful_Functions|useful functions page]].&lt;br /&gt;
&lt;br /&gt;
'''Funkcje client-side można znaleźć w tym odnośniku: [[Client Scripting Functions]].'''&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
==Account functions==&lt;br /&gt;
{{Account_functions}}&lt;br /&gt;
&lt;br /&gt;
==ACL functions==&lt;br /&gt;
{{ACL_functions}}&lt;br /&gt;
&lt;br /&gt;
==Admin functions==&lt;br /&gt;
{{Admin_functions}}&lt;br /&gt;
&lt;br /&gt;
==Audio functions==&lt;br /&gt;
{{Audio_functions}}&lt;br /&gt;
&lt;br /&gt;
==Announcement functions==&lt;br /&gt;
{{Announce_functions}}&lt;br /&gt;
&lt;br /&gt;
==Blip functions==&lt;br /&gt;
{{Blip_functions}}&lt;br /&gt;
&lt;br /&gt;
==Camera functions==&lt;br /&gt;
{{Camera functions}}&lt;br /&gt;
&lt;br /&gt;
==Collision shape functions==&lt;br /&gt;
{{Collision shape functions}}&lt;br /&gt;
&lt;br /&gt;
==Clothes and body functions==&lt;br /&gt;
{{Clothes and body functions}}&lt;br /&gt;
&lt;br /&gt;
==Cursor functions==&lt;br /&gt;
{{Cursor_functions}}&lt;br /&gt;
&lt;br /&gt;
==Element functions==&lt;br /&gt;
{{Element functions}}&lt;br /&gt;
&lt;br /&gt;
==Event functions==&lt;br /&gt;
{{Event_functions}}&lt;br /&gt;
&lt;br /&gt;
==Explosion functions==&lt;br /&gt;
{{Explosion_functions}}&lt;br /&gt;
&lt;br /&gt;
==File functions==&lt;br /&gt;
{{File_functions}}&lt;br /&gt;
&lt;br /&gt;
==HTTP functions==&lt;br /&gt;
{{HTTP_functions}}&lt;br /&gt;
&lt;br /&gt;
==Input functions==&lt;br /&gt;
{{Input_functions}}&lt;br /&gt;
&lt;br /&gt;
==Map functions==&lt;br /&gt;
{{Map_functions}}&lt;br /&gt;
&lt;br /&gt;
==Marker functions==&lt;br /&gt;
{{Marker functions}}&lt;br /&gt;
&lt;br /&gt;
==Matrix functions==&lt;br /&gt;
{{Shared_matrix_functions}}&lt;br /&gt;
&lt;br /&gt;
==Module functions==&lt;br /&gt;
{{Module functions}}&lt;br /&gt;
&lt;br /&gt;
==Object functions==&lt;br /&gt;
{{Object functions}}&lt;br /&gt;
&lt;br /&gt;
==Ped functions==&lt;br /&gt;
{{Ped_functions}}&lt;br /&gt;
&lt;br /&gt;
==Pickup functions==&lt;br /&gt;
{{Pickup functions}}&lt;br /&gt;
&lt;br /&gt;
==Player functions==&lt;br /&gt;
{{Player functions}}&lt;br /&gt;
&lt;br /&gt;
==Radar area functions==&lt;br /&gt;
{{Radar area functions}}&lt;br /&gt;
&lt;br /&gt;
==Resource functions==&lt;br /&gt;
{{Resource functions}}&lt;br /&gt;
&lt;br /&gt;
==Server functions==&lt;br /&gt;
{{Server functions}}&lt;br /&gt;
&lt;br /&gt;
==Settings registry functions==&lt;br /&gt;
{{Settings registry functions}}&lt;br /&gt;
&lt;br /&gt;
==SQL functions==&lt;br /&gt;
{{SQL_functions}}&lt;br /&gt;
&lt;br /&gt;
==Team functions==&lt;br /&gt;
{{Team functions}}&lt;br /&gt;
&lt;br /&gt;
==Text functions==&lt;br /&gt;
{{Text functions}}&lt;br /&gt;
&lt;br /&gt;
==Utility functions==&lt;br /&gt;
{{Utility functions}}&lt;br /&gt;
&lt;br /&gt;
==UTF8 Library==&lt;br /&gt;
{{UTF8 functions}}&lt;br /&gt;
&lt;br /&gt;
==Vehicle functions==&lt;br /&gt;
{{Vehicle functions}}&lt;br /&gt;
&lt;br /&gt;
==Water functions==&lt;br /&gt;
{{Water functions}}&lt;br /&gt;
&lt;br /&gt;
==Weapon functions==&lt;br /&gt;
{{Weapon functions}}&lt;br /&gt;
&lt;br /&gt;
==World functions==&lt;br /&gt;
{{World functions}}&lt;br /&gt;
&lt;br /&gt;
==XML functions==&lt;br /&gt;
{{XML functions}}&lt;br /&gt;
&lt;br /&gt;
[[ar:Server Scripting Functions]]&lt;br /&gt;
[[ru:Server Scripting Functions]]&lt;br /&gt;
[[es:Funciones_del_Server]]&lt;br /&gt;
[[de:Server-Seitige Scripting Funktionen]]&lt;br /&gt;
[[pl:Funkcje server-side]]&lt;/div&gt;</summary>
		<author><name>Jurandovsky</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=CopyAccountData&amp;diff=46765</id>
		<title>CopyAccountData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=CopyAccountData&amp;diff=46765"/>
		<updated>2016-03-04T17:25:41Z</updated>

		<summary type="html">&lt;p&gt;Jurandovsky: /* Składnia */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server function}}&lt;br /&gt;
This function copies all of the data from one [[account]] to another.&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 copyAccountData ( account theAccount, account fromAccount )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[account]]:copyDataTo||}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theAccount:''' The account you wish to copy the data ''to''.&lt;br /&gt;
*'''fromAccount:''' The account you wish to copy the data ''from''.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a ''true'' if the accounts were valid, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example copies the account data from the 'guest' to a registered account when they login&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function copyDataOnLogin ( previousAccount, currentAccount, autoLogin)&lt;br /&gt;
  copyAccountData ( currentAccount, previousAccount )&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerLogin&amp;quot;, getRootElement(), copyDataOnLogin )&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Account_functions}}&lt;br /&gt;
[[ru:copyAccountData]]&lt;br /&gt;
[[ar:copyAccountData]]&lt;/div&gt;</summary>
		<author><name>Jurandovsky</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=CopyAccountData&amp;diff=46764</id>
		<title>CopyAccountData</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=CopyAccountData&amp;diff=46764"/>
		<updated>2016-03-04T17:25:23Z</updated>

		<summary type="html">&lt;p&gt;Jurandovsky: /* Syntax */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Server function}}&lt;br /&gt;
This function copies all of the data from one [[account]] to another.&lt;br /&gt;
&lt;br /&gt;
==Składnia== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool copyAccountData ( account theAccount, account fromAccount )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{OOP||[[account]]:copyDataTo||}}&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theAccount:''' The account you wish to copy the data ''to''.&lt;br /&gt;
*'''fromAccount:''' The account you wish to copy the data ''from''.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a ''true'' if the accounts were valid, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example copies the account data from the 'guest' to a registered account when they login&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function copyDataOnLogin ( previousAccount, currentAccount, autoLogin)&lt;br /&gt;
  copyAccountData ( currentAccount, previousAccount )&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerLogin&amp;quot;, getRootElement(), copyDataOnLogin )&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Account_functions}}&lt;br /&gt;
[[ru:copyAccountData]]&lt;br /&gt;
[[ar:copyAccountData]]&lt;/div&gt;</summary>
		<author><name>Jurandovsky</name></author>
	</entry>
</feed>