<?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=Kevuwk</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=Kevuwk"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Kevuwk"/>
	<updated>2026-05-13T16:38:17Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=CURL_Errors&amp;diff=18783</id>
		<title>CURL Errors</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=CURL_Errors&amp;diff=18783"/>
		<updated>2009-03-27T18:47:48Z</updated>

		<summary type="html">&lt;p&gt;Kevuwk: New page: List of CURL Errors, updates can be found [http://curl.haxx.se/libcurl/c/libcurl-errors.html here]   '''CURLE_OK (0)'''  All fine. Proceed as usual.  '''CURLE_UNSUPPORTED_PROTOCOL (1)'''  ...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;List of CURL Errors, updates can be found [http://curl.haxx.se/libcurl/c/libcurl-errors.html here]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''CURLE_OK (0)'''&lt;br /&gt;
&lt;br /&gt;
All fine. Proceed as usual.&lt;br /&gt;
&lt;br /&gt;
'''CURLE_UNSUPPORTED_PROTOCOL (1)'''&lt;br /&gt;
&lt;br /&gt;
The URL you passed to libcurl used a protocol that this libcurl does not support. The support might be a compile-time option that you didn't use, it can be a misspelled protocol string or just a protocol libcurl has no code for.&lt;br /&gt;
&lt;br /&gt;
'''CURLE_FAILED_INIT (2)'''&lt;br /&gt;
&lt;br /&gt;
Very early initialization code failed. This is likely to be an internal error or problem.&lt;br /&gt;
&lt;br /&gt;
'''CURLE_URL_MALFORMAT (3)'''&lt;br /&gt;
&lt;br /&gt;
The URL was not properly formatted.&lt;br /&gt;
&lt;br /&gt;
'''CURLE_COULDNT_RESOLVE_PROXY (5)'''&lt;br /&gt;
&lt;br /&gt;
Couldn't resolve proxy. The given proxy host could not be resolved.&lt;br /&gt;
&lt;br /&gt;
'''CURLE_COULDNT_RESOLVE_HOST (6)'''&lt;br /&gt;
&lt;br /&gt;
Couldn't resolve host. The given remote host was not resolved.&lt;br /&gt;
&lt;br /&gt;
'''CURLE_COULDNT_CONNECT (7)'''&lt;br /&gt;
&lt;br /&gt;
Failed to connect() to host or proxy.&lt;br /&gt;
&lt;br /&gt;
'''CURLE_FTP_WEIRD_SERVER_REPLY (8)'''&lt;br /&gt;
&lt;br /&gt;
After connecting to a FTP server, libcurl expects to get a certain reply back. This error code implies that it got a strange or bad reply. The given remote server is probably not an OK FTP server.&lt;br /&gt;
&lt;br /&gt;
'''CURLE_REMOTE_ACCESS_DENIED (9)'''&lt;br /&gt;
&lt;br /&gt;
We were denied access to the resource given in the URL. For FTP, this occurs while trying to change to the remote directory.&lt;br /&gt;
'''&lt;br /&gt;
CURLE_FTP_WEIRD_PASS_REPLY (11)'''&lt;br /&gt;
&lt;br /&gt;
After having sent the FTP password to the server, libcurl expects a proper reply. This error code indicates that an unexpected code was returned.&lt;br /&gt;
&lt;br /&gt;
'''CURLE_FTP_WEIRD_PASV_REPLY (13)'''&lt;br /&gt;
&lt;br /&gt;
libcurl failed to get a sensible result back from the server as a response to either a PASV or a EPSV command. The server is flawed.&lt;br /&gt;
&lt;br /&gt;
'''CURLE_FTP_WEIRD_227_FORMAT (14)'''&lt;br /&gt;
&lt;br /&gt;
FTP servers return a 227-line as a response to a PASV command. If libcurl fails to parse that line, this return code is passed back.&lt;br /&gt;
&lt;br /&gt;
'''CURLE_FTP_CANT_GET_HOST (15)'''&lt;br /&gt;
&lt;br /&gt;
An internal failure to lookup the host used for the new connection.&lt;br /&gt;
&lt;br /&gt;
'''CURLE_FTP_COULDNT_SET_TYPE (17)'''&lt;br /&gt;
&lt;br /&gt;
Received an error when trying to set the transfer mode to binary or ASCII.&lt;br /&gt;
&lt;br /&gt;
'''CURLE_PARTIAL_FILE (18)'''&lt;br /&gt;
&lt;br /&gt;
A file transfer was shorter or larger than expected. This happens when the server first reports an expected transfer size, and then delivers data that doesn't match the previously given size.&lt;br /&gt;
&lt;br /&gt;
'''CURLE_FTP_COULDNT_RETR_FILE (19)'''&lt;br /&gt;
&lt;br /&gt;
This was either a weird reply to a 'RETR' command or a zero byte transfer complete.&lt;br /&gt;
&lt;br /&gt;
'''CURLE_QUOTE_ERROR (21)'''&lt;br /&gt;
&lt;br /&gt;
When sending custom &amp;quot;QUOTE&amp;quot; commands to the remote server, one of the commands returned an error code that was 400 or higher (for FTP) or otherwise indicated unsuccessful completion of the command.&lt;br /&gt;
&lt;br /&gt;
'''CURLE_HTTP_RETURNED_ERROR (22)'''&lt;br /&gt;
&lt;br /&gt;
This is returned if CURLOPT_FAILONERROR is set TRUE and the HTTP server returns an error code that is &amp;gt;= 400. (This error code was formerly known as CURLE_HTTP_NOT_FOUND.)&lt;br /&gt;
&lt;br /&gt;
'''CURLE_WRITE_ERROR (23)'''&lt;br /&gt;
&lt;br /&gt;
An error occurred when writing received data to a local file, or an error was returned to libcurl from a write callback.&lt;br /&gt;
&lt;br /&gt;
'''CURLE_UPLOAD_FAILED (25)'''&lt;br /&gt;
&lt;br /&gt;
Failed starting the upload. For FTP, the server typically denied the STOR command. The error buffer usually contains the server's explanation for this. (This error code was formerly known as CURLE_FTP_COULDNT_STOR_FILE.)&lt;br /&gt;
&lt;br /&gt;
'''CURLE_READ_ERROR (26)'''&lt;br /&gt;
&lt;br /&gt;
There was a problem reading a local file or an error returned by the read callback.&lt;br /&gt;
&lt;br /&gt;
'''CURLE_OUT_OF_MEMORY (27)'''&lt;br /&gt;
&lt;br /&gt;
A memory allocation request failed. This is serious badness and things are severely screwed up if this ever occurs.&lt;br /&gt;
&lt;br /&gt;
'''CURLE_OPERATION_TIMEDOUT (28)'''&lt;br /&gt;
&lt;br /&gt;
Operation timeout. The specified time-out period was reached according to the conditions.&lt;br /&gt;
&lt;br /&gt;
'''CURLE_FTP_PORT_FAILED (30)'''&lt;br /&gt;
&lt;br /&gt;
The FTP PORT command returned error. This mostly happens when you haven't specified a good enough address for libcurl to use. See CURLOPT_FTPPORT.&lt;br /&gt;
&lt;br /&gt;
'''CURLE_FTP_COULDNT_USE_REST (31)'''&lt;br /&gt;
&lt;br /&gt;
The FTP REST command returned error. This should never happen if the server is sane.&lt;br /&gt;
&lt;br /&gt;
'''CURLE_RANGE_ERROR (33)'''&lt;br /&gt;
&lt;br /&gt;
The server does not support or accept range requests.&lt;br /&gt;
&lt;br /&gt;
'''CURLE_HTTP_POST_ERROR (34)'''&lt;br /&gt;
&lt;br /&gt;
This is an odd error that mainly occurs due to internal confusion.&lt;br /&gt;
&lt;br /&gt;
'''CURLE_SSL_CONNECT_ERROR (35)'''&lt;br /&gt;
&lt;br /&gt;
A problem occurred somewhere in the SSL/TLS handshake. You really want the error buffer and read the message there as it pinpoints the problem slightly more. Could be certificates (file formats, paths, permissions), passwords, and others.&lt;br /&gt;
&lt;br /&gt;
'''CURLE_FTP_BAD_DOWNLOAD_RESUME (36)'''&lt;br /&gt;
&lt;br /&gt;
Attempting FTP resume beyond file size.&lt;br /&gt;
&lt;br /&gt;
'''CURLE_FILE_COULDNT_READ_FILE (37)'''&lt;br /&gt;
&lt;br /&gt;
A file given with FILE:// couldn't be opened. Most likely because the file path doesn't identify an existing file. Did you check file permissions?&lt;br /&gt;
&lt;br /&gt;
'''CURLE_LDAP_CANNOT_BIND (38)'''&lt;br /&gt;
&lt;br /&gt;
LDAP cannot bind. LDAP bind operation failed.&lt;br /&gt;
&lt;br /&gt;
'''CURLE_LDAP_SEARCH_FAILED (39)'''&lt;br /&gt;
&lt;br /&gt;
LDAP search failed.&lt;br /&gt;
&lt;br /&gt;
'''CURLE_FUNCTION_NOT_FOUND (41)'''&lt;br /&gt;
&lt;br /&gt;
Function not found. A required zlib function was not found.&lt;br /&gt;
&lt;br /&gt;
'''CURLE_ABORTED_BY_CALLBACK (42)'''&lt;br /&gt;
&lt;br /&gt;
Aborted by callback. A callback returned &amp;quot;abort&amp;quot; to libcurl.&lt;br /&gt;
&lt;br /&gt;
'''CURLE_BAD_FUNCTION_ARGUMENT (43)'''&lt;br /&gt;
&lt;br /&gt;
Internal error. A function was called with a bad parameter.&lt;br /&gt;
&lt;br /&gt;
'''CURLE_INTERFACE_FAILED (45)'''&lt;br /&gt;
&lt;br /&gt;
Interface error. A specified outgoing interface could not be used. Set which interface to use for outgoing connections' source IP address with CURLOPT_INTERFACE. (This error code was formerly known as CURLE_HTTP_PORT_FAILED.)&lt;br /&gt;
'''&lt;br /&gt;
CURLE_TOO_MANY_REDIRECTS (47)'''&lt;br /&gt;
&lt;br /&gt;
Too many redirects. When following redirects, libcurl hit the maximum amount. Set your limit with CURLOPT_MAXREDIRS.&lt;br /&gt;
&lt;br /&gt;
'''CURLE_UNKNOWN_TELNET_OPTION (48)'''&lt;br /&gt;
&lt;br /&gt;
An option set with CURLOPT_TELNETOPTIONS was not recognized/known. Refer to the appropriate documentation.&lt;br /&gt;
&lt;br /&gt;
'''CURLE_TELNET_OPTION_SYNTAX (49)'''&lt;br /&gt;
&lt;br /&gt;
A telnet option string was Illegally formatted.&lt;br /&gt;
&lt;br /&gt;
'''CURLE_PEER_FAILED_VERIFICATION (51)'''&lt;br /&gt;
&lt;br /&gt;
The remote server's SSL certificate or SSH md5 fingerprint was deemed not OK.&lt;br /&gt;
&lt;br /&gt;
'''CURLE_GOT_NOTHING (52)'''&lt;br /&gt;
&lt;br /&gt;
Nothing was returned from the server, and under the circumstances, getting nothing is considered an error.&lt;br /&gt;
&lt;br /&gt;
'''CURLE_SSL_ENGINE_NOTFOUND (53)'''&lt;br /&gt;
&lt;br /&gt;
The specified crypto engine wasn't found.&lt;br /&gt;
&lt;br /&gt;
'''CURLE_SSL_ENGINE_SETFAILED (54)'''&lt;br /&gt;
&lt;br /&gt;
Failed setting the selected SSL crypto engine as default!&lt;br /&gt;
&lt;br /&gt;
'''CURLE_SEND_ERROR (55)'''&lt;br /&gt;
&lt;br /&gt;
Failed sending network data.&lt;br /&gt;
&lt;br /&gt;
'''CURLE_RECV_ERROR (56)'''&lt;br /&gt;
&lt;br /&gt;
Failure with receiving network data.&lt;br /&gt;
&lt;br /&gt;
'''CURLE_SSL_CERTPROBLEM (58)'''&lt;br /&gt;
&lt;br /&gt;
problem with the local client certificate.&lt;br /&gt;
&lt;br /&gt;
'''CURLE_SSL_CIPHER (59)'''&lt;br /&gt;
&lt;br /&gt;
Couldn't use specified cipher.&lt;br /&gt;
&lt;br /&gt;
'''CURLE_SSL_CACERT (60)'''&lt;br /&gt;
&lt;br /&gt;
Peer certificate cannot be authenticated with known CA certificates.&lt;br /&gt;
&lt;br /&gt;
'''CURLE_BAD_CONTENT_ENCODING (61)'''&lt;br /&gt;
&lt;br /&gt;
Unrecognized transfer encoding.&lt;br /&gt;
&lt;br /&gt;
'''CURLE_LDAP_INVALID_URL (62)'''&lt;br /&gt;
&lt;br /&gt;
Invalid LDAP URL.&lt;br /&gt;
&lt;br /&gt;
'''CURLE_FILESIZE_EXCEEDED (63)'''&lt;br /&gt;
&lt;br /&gt;
Maximum file size exceeded.&lt;br /&gt;
&lt;br /&gt;
'''CURLE_USE_SSL_FAILED (64)'''&lt;br /&gt;
&lt;br /&gt;
Requested FTP SSL level failed.&lt;br /&gt;
&lt;br /&gt;
'''CURLE_SEND_FAIL_REWIND (65)'''&lt;br /&gt;
&lt;br /&gt;
When doing a send operation curl had to rewind the data to retransmit, but the rewinding operation failed.&lt;br /&gt;
&lt;br /&gt;
'''CURLE_SSL_ENGINE_INITFAILED (66)'''&lt;br /&gt;
&lt;br /&gt;
Initiating the SSL Engine failed.&lt;br /&gt;
&lt;br /&gt;
'''CURLE_LOGIN_DENIED (67)'''&lt;br /&gt;
&lt;br /&gt;
The remote server denied curl to login (Added in 7.13.1)&lt;br /&gt;
&lt;br /&gt;
'''CURLE_TFTP_NOTFOUND (68)'''&lt;br /&gt;
&lt;br /&gt;
File not found on TFTP server.&lt;br /&gt;
&lt;br /&gt;
'''CURLE_TFTP_PERM (69)'''&lt;br /&gt;
&lt;br /&gt;
Permission problem on TFTP server.&lt;br /&gt;
&lt;br /&gt;
'''CURLE_REMOTE_DISK_FULL (70)'''&lt;br /&gt;
&lt;br /&gt;
Out of disk space on the server.&lt;br /&gt;
&lt;br /&gt;
'''CURLE_TFTP_ILLEGAL (71)'''&lt;br /&gt;
&lt;br /&gt;
Illegal TFTP operation.&lt;br /&gt;
&lt;br /&gt;
'''CURLE_TFTP_UNKNOWNID (72)'''&lt;br /&gt;
&lt;br /&gt;
Unknown TFTP transfer ID.&lt;br /&gt;
&lt;br /&gt;
'''CURLE_REMOTE_FILE_EXISTS (73)'''&lt;br /&gt;
&lt;br /&gt;
File already exists and will not be overwritten.&lt;br /&gt;
&lt;br /&gt;
'''CURLE_TFTP_NOSUCHUSER (74)'''&lt;br /&gt;
&lt;br /&gt;
This error should never be returned by a properly functioning TFTP server.&lt;br /&gt;
&lt;br /&gt;
'''CURLE_CONV_FAILED (75)'''&lt;br /&gt;
&lt;br /&gt;
Character conversion failed.&lt;br /&gt;
&lt;br /&gt;
'''CURLE_CONV_REQD (76)'''&lt;br /&gt;
&lt;br /&gt;
Caller must register conversion callbacks.&lt;br /&gt;
&lt;br /&gt;
'''CURLE_SSL_CACERT_BADFILE (77)'''&lt;br /&gt;
&lt;br /&gt;
Problem with reading the SSL CA cert (path? access rights?)&lt;br /&gt;
&lt;br /&gt;
'''CURLE_REMOTE_FILE_NOT_FOUND (78)'''&lt;br /&gt;
&lt;br /&gt;
The resource referenced in the URL does not exist.&lt;br /&gt;
&lt;br /&gt;
'''CURLE_SSH (79)'''&lt;br /&gt;
&lt;br /&gt;
An unspecified error occurred during the SSH session.&lt;br /&gt;
&lt;br /&gt;
'''CURLE_SSL_SHUTDOWN_FAILED (80)'''&lt;br /&gt;
&lt;br /&gt;
Failed to shut down the SSL connection.&lt;br /&gt;
&lt;br /&gt;
'''CURLE_AGAIN (81)'''&lt;br /&gt;
&lt;br /&gt;
Socket is not ready for send/recv wait till it's ready and try again. This return code is only returned from curl_easy_recv(3) and curl_easy_send(3) (Added in 7.18.2)&lt;br /&gt;
&lt;br /&gt;
'''CURLE_SSL_CRL_BADFILE (82)'''&lt;br /&gt;
&lt;br /&gt;
Failed to load CRL file (Added in 7.19.0)&lt;br /&gt;
&lt;br /&gt;
'''CURLE_SSL_ISSUER_ERROR (83)'''&lt;br /&gt;
&lt;br /&gt;
Issuer check failed (Added in 7.19.0)&lt;/div&gt;</summary>
		<author><name>Kevuwk</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetVersion&amp;diff=18630</id>
		<title>GetVersion</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetVersion&amp;diff=18630"/>
		<updated>2009-03-07T18:03:43Z</updated>

		<summary type="html">&lt;p&gt;Kevuwk: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
&lt;br /&gt;
This function gives you various version information about MTA and the operating system.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;table getVersion ( )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
''None.''&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a table with version information. Specifically these keys are present in the table:&lt;br /&gt;
*'''number:''' the MTA server or client version (depending where the function was called) in pure numerical form.&lt;br /&gt;
*'''mta:''' the MTA server or client version in textual form.&lt;br /&gt;
*'''name:''' the full MTA product name.&lt;br /&gt;
*'''netcode:''' the netcode version number.&lt;br /&gt;
*'''os:''' can be &amp;quot;Windows&amp;quot;, &amp;quot;Linux&amp;quot;, &amp;quot;FreeBSD&amp;quot; or &amp;quot;OpenBSD&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example will make a script compatible only with version 1.0:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function setHoboSkin ( playerSource )&lt;br /&gt;
  local version = getVersion ( )&lt;br /&gt;
  if version.number &amp;lt; 256 then -- MTA 1.0 version number is 0x0100&lt;br /&gt;
    setPlayerSkin ( playerSource, 137 )&lt;br /&gt;
  else&lt;br /&gt;
    setElementModel ( playerSource, 137 )&lt;br /&gt;
  end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;hobo&amp;quot;, setHoboSkin )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Server functions}}&lt;/div&gt;</summary>
		<author><name>Kevuwk</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetVersion&amp;diff=18629</id>
		<title>GetVersion</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetVersion&amp;diff=18629"/>
		<updated>2009-03-07T18:02:50Z</updated>

		<summary type="html">&lt;p&gt;Kevuwk: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
&lt;br /&gt;
This function gives you various version information about MTA and the operating system.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;table getVersion ( )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
''None.''&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a table with version information. Specifically these keys are present in the table:&lt;br /&gt;
*'''number:''' the MTA server or client version (depending where the function was called) in pure numerical form.&lt;br /&gt;
*'''mta:''' the MTA server or client version in textual form.&lt;br /&gt;
*'''name:''' the full MTA product name.&lt;br /&gt;
*'''netcode:''' the netcode version number.&lt;br /&gt;
*'''os:''' can be &amp;quot;Windows&amp;quot;, &amp;quot;Linux&amp;quot;, &amp;quot;FreeBSD&amp;quot; or &amp;quot;OpenBSD&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example will make a script compatible with only version 1.0:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function setHoboSkin ( playerSource )&lt;br /&gt;
  local version = getVersion ( )&lt;br /&gt;
  if version.number &amp;lt; 256 then -- MTA 1.0 version number is 0x0100&lt;br /&gt;
    setPlayerSkin ( playerSource, 137 )&lt;br /&gt;
  else&lt;br /&gt;
    setElementModel ( playerSource, 137 )&lt;br /&gt;
  end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;hobo&amp;quot;, setHoboSkin )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Server functions}}&lt;/div&gt;</summary>
		<author><name>Kevuwk</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RemoveEventHandler&amp;diff=8775</id>
		<title>RemoveEventHandler</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RemoveEventHandler&amp;diff=8775"/>
		<updated>2007-06-23T01:49:30Z</updated>

		<summary type="html">&lt;p&gt;Kevuwk: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Needs_Checking|Why do we have to specify what element was the handler attached to? --[[User:Jbeta|jbeta]] 07:34, 3 June 2007 (CDT)&lt;br /&gt;
*Because multiple elements might use the same event and function --[[User:Kevuwk|Kevuwk]] 20:49, 22 June 2007 (CDT) }}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This functions removes a handler function from an [[event]], so that the function is not called anymore when the event is triggered. See [[event system]] for more information on how the event system works.&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 removeEventHandler ( string eventName, element attachedTo, string functionName ) &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''eventName:''' The name of the [[event]] you want to detach the handler function from.&lt;br /&gt;
*'''attachedTo:''' The [[element]] the handler was attached to.&lt;br /&gt;
*'''functionName:''' The name of the handler function that was attached.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the event handler was removed successfully. Returns ''false'' if the specified event handler could not be found or invalid parameters were passed.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example...&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Event_functions}}&lt;br /&gt;
[[Category:Incomplete]]&lt;/div&gt;</summary>
		<author><name>Kevuwk</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Client_Scripting_Functions&amp;diff=7359</id>
		<title>Client Scripting Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Client_Scripting_Functions&amp;diff=7359"/>
		<updated>2007-02-26T22:21:45Z</updated>

		<summary type="html">&lt;p&gt;Kevuwk: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page lists all the '''client-side''' scripting functions that have been implemented and are available as native functions from the Deathmatch mod. To request a function or event, use [[Requested Functions and Events]]&lt;br /&gt;
&lt;br /&gt;
'''Please check all the client side functions work and mark them on this page - [[Temp_Log]], the list on that page should be upto date with newly added functions copied from the server with the same syntax.'''&lt;br /&gt;
&lt;br /&gt;
==Audio functions==&lt;br /&gt;
{{Client_audio_functions}}&lt;br /&gt;
&lt;br /&gt;
==Blip functions==&lt;br /&gt;
{{Client_blip_functions}}&lt;br /&gt;
&lt;br /&gt;
==Element functions==&lt;br /&gt;
{{Client_element_functions}}&lt;br /&gt;
&lt;br /&gt;
==Event functions==&lt;br /&gt;
{{Client_event_functions}}&lt;br /&gt;
&lt;br /&gt;
==Explosion functions==&lt;br /&gt;
{{Client_explosion_functions}}&lt;br /&gt;
&lt;br /&gt;
==GUI functions==&lt;br /&gt;
{{GUI_functions}}&lt;br /&gt;
&lt;br /&gt;
==Player functions==&lt;br /&gt;
{{Client_player_functions}}&lt;br /&gt;
&lt;br /&gt;
==Output functions==&lt;br /&gt;
{{Client_output_functions}}&lt;br /&gt;
&lt;br /&gt;
==Utility functions==&lt;br /&gt;
{{Client_utility_functions}}&lt;br /&gt;
&lt;br /&gt;
==World functions==&lt;br /&gt;
{{Client_world_functions}}&lt;/div&gt;</summary>
		<author><name>Kevuwk</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Server_Scripting_Functions&amp;diff=6979</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=6979"/>
		<updated>2007-01-02T15:32:07Z</updated>

		<summary type="html">&lt;p&gt;Kevuwk: /* Element functions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page lists all the scripting functions that have been implemented and are available as native functions from the Deathmatch mod. To request a function or event, use [[Requested Functions and Events]]&lt;br /&gt;
&lt;br /&gt;
Please note that the scripting functions can now be extended by loading in dynamic modules that provide new functionality, such as MySQL database access. 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 [[Module functions]] for a list of non-native functions and modules that are available.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Important Reminder: Works in Progress==&lt;br /&gt;
Check the [[Main Page]]'s 'works in progress' section. There are other things being developed that need feedback immediately!&lt;br /&gt;
&lt;br /&gt;
==Unfinished Functions==&lt;br /&gt;
&amp;lt;div style=&amp;quot;border:3px solid red;margin-bottom:3px;padding-left:10px;&amp;quot;&amp;gt;&amp;lt;div style=&amp;quot;float:right;padding-right:5px;font-weight:bold;&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
*'''NEED SYNTAX, MTA TEAM:''' [[:Category:Need Syntax]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
*'''Incomplete Functions:''' [[:Category:Incomplete]]&lt;br /&gt;
** [[Complete list of scripting functions | Wiki source function list]] Wiki-created function list for quickview and double-checking&lt;br /&gt;
*'''Incomplete Events List:''' [[:Category:Incomplete Event]]&lt;br /&gt;
*'''Written material accuracy/completion check:''' [[:Category:Needs Checking]]&lt;br /&gt;
&lt;br /&gt;
''If you wish to assist Ransom in adding new (red) functions to the incomplete list, see [[User:Ransom|Ransom's profile]] for the proper steps.''&lt;br /&gt;
&lt;br /&gt;
''Please follow the style of the [[TextCreateTextItem|textCreateTextItem]] to document functions.''&lt;br /&gt;
&lt;br /&gt;
==Account functions==&lt;br /&gt;
{{Account_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;
==All Seeing Eye functions==&lt;br /&gt;
{{ASE_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;
==Client functions==&lt;br /&gt;
{{Client 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;
==Fire functions==&lt;br /&gt;
{{Fire_functions}}&lt;br /&gt;
&lt;br /&gt;
==GUI functions==&lt;br /&gt;
{{GUI_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;
==Object functions==&lt;br /&gt;
{{Object 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;
==Scoreboard functions==&lt;br /&gt;
{{Scoreboard functions}}&lt;br /&gt;
&lt;br /&gt;
==Server functions==&lt;br /&gt;
{{Server functions}}&lt;br /&gt;
&lt;br /&gt;
==Spawnpoint functions==&lt;br /&gt;
{{Spawnpoint 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;
==Vehicle functions==&lt;br /&gt;
{{Vehicle 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;
==Deprecated Functions==&lt;br /&gt;
Access: [http://www.mtavc.com/once-upon_a_time-there_was-this_girl/index.php?title=Category:Deprecated &amp;lt;nowiki&amp;gt;[[Category:Depreciated]]&amp;lt;/nowiki&amp;gt; ]&amp;lt;br&amp;gt;&lt;br /&gt;
''Note: dont change this, done purposely to keep this page from being included in the listing.''&lt;/div&gt;</summary>
		<author><name>Kevuwk</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Server_Scripting_Functions&amp;diff=6978</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=6978"/>
		<updated>2007-01-02T15:30:21Z</updated>

		<summary type="html">&lt;p&gt;Kevuwk: /* Element functions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page lists all the scripting functions that have been implemented and are available as native functions from the Deathmatch mod. To request a function or event, use [[Requested Functions and Events]]&lt;br /&gt;
&lt;br /&gt;
Please note that the scripting functions can now be extended by loading in dynamic modules that provide new functionality, such as MySQL database access. 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 [[Module functions]] for a list of non-native functions and modules that are available.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Important Reminder: Works in Progress==&lt;br /&gt;
Check the [[Main Page]]'s 'works in progress' section. There are other things being developed that need feedback immediately!&lt;br /&gt;
&lt;br /&gt;
==Unfinished Functions==&lt;br /&gt;
&amp;lt;div style=&amp;quot;border:3px solid red;margin-bottom:3px;padding-left:10px;&amp;quot;&amp;gt;&amp;lt;div style=&amp;quot;float:right;padding-right:5px;font-weight:bold;&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
*'''NEED SYNTAX, MTA TEAM:''' [[:Category:Need Syntax]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
*'''Incomplete Functions:''' [[:Category:Incomplete]]&lt;br /&gt;
** [[Complete list of scripting functions | Wiki source function list]] Wiki-created function list for quickview and double-checking&lt;br /&gt;
*'''Incomplete Events List:''' [[:Category:Incomplete Event]]&lt;br /&gt;
*'''Written material accuracy/completion check:''' [[:Category:Needs Checking]]&lt;br /&gt;
&lt;br /&gt;
''If you wish to assist Ransom in adding new (red) functions to the incomplete list, see [[User:Ransom|Ransom's profile]] for the proper steps.''&lt;br /&gt;
&lt;br /&gt;
''Please follow the style of the [[TextCreateTextItem|textCreateTextItem]] to document functions.''&lt;br /&gt;
&lt;br /&gt;
==Account functions==&lt;br /&gt;
{{Account_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;
==All Seeing Eye functions==&lt;br /&gt;
{{ASE_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;
==Client functions==&lt;br /&gt;
{{Client 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;
&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;
==Fire functions==&lt;br /&gt;
{{Fire_functions}}&lt;br /&gt;
&lt;br /&gt;
==GUI functions==&lt;br /&gt;
{{GUI_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;
==Object functions==&lt;br /&gt;
{{Object 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;
==Scoreboard functions==&lt;br /&gt;
{{Scoreboard functions}}&lt;br /&gt;
&lt;br /&gt;
==Server functions==&lt;br /&gt;
{{Server functions}}&lt;br /&gt;
&lt;br /&gt;
==Spawnpoint functions==&lt;br /&gt;
{{Spawnpoint 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;
==Vehicle functions==&lt;br /&gt;
{{Vehicle 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;
==Deprecated Functions==&lt;br /&gt;
Access: [http://www.mtavc.com/once-upon_a_time-there_was-this_girl/index.php?title=Category:Deprecated &amp;lt;nowiki&amp;gt;[[Category:Depreciated]]&amp;lt;/nowiki&amp;gt; ]&amp;lt;br&amp;gt;&lt;br /&gt;
''Note: dont change this, done purposely to keep this page from being included in the listing.''&lt;/div&gt;</summary>
		<author><name>Kevuwk</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetAttachedElements&amp;diff=6962</id>
		<title>GetAttachedElements</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetAttachedElements&amp;diff=6962"/>
		<updated>2007-01-01T20:12:39Z</updated>

		<summary type="html">&lt;p&gt;Kevuwk: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
This function returns a table of all the elements attached to the specified element&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 getAttachedElements ( element theElement )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''theElement''': The [[element]] which you require the information from.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a table of all the elements attached to the specified element.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Print a list of all the players attached to the specified element&lt;br /&gt;
  Inf = getElementByID ( &amp;quot;infernus1&amp;quot; )&lt;br /&gt;
  attachedElements = getAttachedElements ( Inf )&lt;br /&gt;
  if ( attachedElements ) then -- if we got the table&lt;br /&gt;
    attachedElementsList = &amp;quot;none&amp;quot;&lt;br /&gt;
    -- Loop through the table&lt;br /&gt;
    for ElementKey, ElementValue in attachedElements do&lt;br /&gt;
      -- add their name to the list&lt;br /&gt;
      if ( getElementType ( ElementValue ) == &amp;quot;player&amp;quot; ) then&lt;br /&gt;
        if ( attachedElementsList == &amp;quot;none&amp;quot; ) then&lt;br /&gt;
          attachedElementsList = getClientName ( ElementValue )&lt;br /&gt;
        else&lt;br /&gt;
          attachedElementsList = attachedElementsList .. &amp;quot;, &amp;quot; .. getClientName ( ElementValue )&lt;br /&gt;
        end&lt;br /&gt;
      end&lt;br /&gt;
    end&lt;br /&gt;
    outputConsole ( &amp;quot;Players attached: &amp;quot; .. attachedElementsList )&lt;br /&gt;
  end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Element functions}}&lt;/div&gt;</summary>
		<author><name>Kevuwk</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Element_functions&amp;diff=6961</id>
		<title>Template:Element functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Element_functions&amp;diff=6961"/>
		<updated>2007-01-01T20:03:33Z</updated>

		<summary type="html">&lt;p&gt;Kevuwk: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;''Element Functions''&lt;br /&gt;
*[[createElement]]&lt;br /&gt;
*[[destroyElement]]&lt;br /&gt;
*[[cloneElement]]&lt;br /&gt;
*[[getElementByID]]&lt;br /&gt;
*[[getElementByIndex]]&lt;br /&gt;
*[[getElementChild]]&lt;br /&gt;
*[[getElementChildren]]&lt;br /&gt;
*[[getElementChildrenCount]]&lt;br /&gt;
*[[getElementData]]&lt;br /&gt;
*[[getElementID]]&lt;br /&gt;
*[[getElementParent]]&lt;br /&gt;
*[[getElementsByType]]&lt;br /&gt;
*[[getElementType]]&lt;br /&gt;
*[[getRootElement]]&lt;br /&gt;
*[[isElementVisibleTo]]&lt;br /&gt;
*[[isElementWithinColShape]]&lt;br /&gt;
*[[getElementsWithinColShape]]&lt;br /&gt;
*[[getElementPosition]]&lt;br /&gt;
*[[getElementVelocity]]&lt;br /&gt;
*[[getElementInterior]]&lt;br /&gt;
*[[getElementDimension]]&lt;br /&gt;
*[[getElementZoneName]]&lt;br /&gt;
*[[setElementData]]&lt;br /&gt;
*[[setElementID]]&lt;br /&gt;
*[[setElementParent]]&lt;br /&gt;
*[[setElementVisibleTo]]&lt;br /&gt;
*[[clearElementVisibleTo]]&lt;br /&gt;
*[[setElementPosition]]&lt;br /&gt;
*[[setElementVelocity]]&lt;br /&gt;
*[[setElementInterior]]&lt;br /&gt;
*[[setElementDimension]]&lt;br /&gt;
*[[attachElementToElement]]&lt;br /&gt;
*[[detachElementFromElement]]&lt;br /&gt;
*[[isElementAttached]]&lt;br /&gt;
*[[getElementAttachedTo]]&lt;br /&gt;
*[[getAttachedElements]]&lt;/div&gt;</summary>
		<author><name>Kevuwk</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetElementAttachedTo&amp;diff=6960</id>
		<title>GetElementAttachedTo</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetElementAttachedTo&amp;diff=6960"/>
		<updated>2007-01-01T20:00:59Z</updated>

		<summary type="html">&lt;p&gt;Kevuwk: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
This function returns an element from the specified ID.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element getElementAttachedTo ( element theElement )  &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theElement:''' The element you require the information for.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns the element that the chosen element is attached to, or ''false'' if the element isn't attached to another element.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example assigns the element that the specified element is attached to into attached.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler ( &amp;quot;onConsole&amp;quot;, root, &amp;quot;onConsole&amp;quot; )&lt;br /&gt;
function onConsole ( text )&lt;br /&gt;
  if ( getElementType ( source ) == &amp;quot;player&amp;quot; ) then&lt;br /&gt;
    command = gettok ( text, 1, 32 )  &lt;br /&gt;
    if ( command == &amp;quot;getattached&amp;quot; ) then&lt;br /&gt;
      attached = getElementAttachedTo ( source )&lt;br /&gt;
      if ( attached ) then&lt;br /&gt;
        outputConsole ( &amp;quot;element type: &amp;quot; .. getElementType ( attached ) ) -- possible output&lt;br /&gt;
      else&lt;br /&gt;
        outputConsole ( &amp;quot;not attached to an element&amp;quot; ) -- display error&lt;br /&gt;
      end&lt;br /&gt;
    end&lt;br /&gt;
  end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Element_functions}}&lt;/div&gt;</summary>
		<author><name>Kevuwk</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetPlayerTotalAmmo&amp;diff=6527</id>
		<title>GetPlayerTotalAmmo</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetPlayerTotalAmmo&amp;diff=6527"/>
		<updated>2006-11-22T23:32:21Z</updated>

		<summary type="html">&lt;p&gt;Kevuwk: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
This function returns an integer that contains the total ammo in a specified [[player]]'s current weapon.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
int getPlayerTotalAmmo ( player thePlayer )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''thePlayer''': The [[player]] whose ammo you want to check.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns an [[int]] containing the total amount of ammo for the specified player's weapon, or 0 if the player specified is invalid.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example outputs the total amount of ammo a player called ''Someguy'' has for his weapon.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Find the player called 'Someguy'&lt;br /&gt;
myPlayer = findPlayer ( &amp;quot;Someguy&amp;quot; )&lt;br /&gt;
-- If a player called 'Someguy' was found then&lt;br /&gt;
if ( myPlayer ~= false )&lt;br /&gt;
	-- Retrieve the total amount of ammo for that player, and store it in a variable called 'ammo'&lt;br /&gt;
	ammo = getPlayerTotalAmmo ( myPlayer )&lt;br /&gt;
	-- Tell all the players how much ammo 'Someguy' has&lt;br /&gt;
	outputChatBox ( &amp;quot;Someguy's current total ammo: &amp;quot;, ammo, &amp;quot;.&amp;quot; )&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Player functions}}&lt;/div&gt;</summary>
		<author><name>Kevuwk</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetPlayerAmmoInClip&amp;diff=6526</id>
		<title>GetPlayerAmmoInClip</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetPlayerAmmoInClip&amp;diff=6526"/>
		<updated>2006-11-22T23:31:43Z</updated>

		<summary type="html">&lt;p&gt;Kevuwk: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
This function returns an integer that contains the current ammo in a specified [[player]]'s current weapon.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
int getPlayerAmmoInClip ( player thePlayer )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''thePlayer''': The [[player]] whose ammo you want to check.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns an [[int]] containing the ammount of ammo in the specified player's clip, or 0 if the player specified is invalid.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example outputs the ammount of ammo a player called ''Someguy'' has in his weapon's clip.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- Find the player called 'Someguy'&lt;br /&gt;
myPlayer = findPlayer ( &amp;quot;Someguy&amp;quot; )&lt;br /&gt;
-- If a player called 'Someguy' was found then&lt;br /&gt;
if ( myPlayer ~= false )&lt;br /&gt;
	-- Retrieve the ammount of ammo in the clip for that player, and store it in a variable called 'ammo'&lt;br /&gt;
	ammo = getPlayerAmmoInClip ( myPlayer )&lt;br /&gt;
	-- Tell all the players how much ammo 'Someguy' has&lt;br /&gt;
	outputChatBox ( &amp;quot;Someguy's current ammo-in-clip: &amp;quot;, ammo, &amp;quot;.&amp;quot; )&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Player functions}}&lt;/div&gt;</summary>
		<author><name>Kevuwk</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Player_functions&amp;diff=6525</id>
		<title>Template:Player functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Player_functions&amp;diff=6525"/>
		<updated>2006-11-22T23:30:42Z</updated>

		<summary type="html">&lt;p&gt;Kevuwk: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* [[addPlayerClothes]]&lt;br /&gt;
* [[canPlayerUseFunction]]&lt;br /&gt;
* [[doesPlayerHaveJetPack]]&lt;br /&gt;
* [[getPlayerArmor]]&lt;br /&gt;
* [[getPlayerClothes]]&lt;br /&gt;
* [[getPlayerCount]]&lt;br /&gt;
* [[getPlayerAmmoInClip]]&lt;br /&gt;
* [[getPlayerTotalAmmo]]&lt;br /&gt;
* [[getPlayerCurrentWeaponID]]&lt;br /&gt;
* [[getPlayerFromNick]]&lt;br /&gt;
* [[getPlayerHealth]]&lt;br /&gt;
* [[getPlayerLevel]]&lt;br /&gt;
* [[getPlayerMoney]]&lt;br /&gt;
* [[getPlayerOccupiedVehicle]]&lt;br /&gt;
* [[getPlayerOccupiedVehicleSeat]]&lt;br /&gt;
* [[getPlayerPing]]&lt;br /&gt;
* [[getPlayerRotation]]&lt;br /&gt;
* [[getPlayerSkin]]&lt;br /&gt;
* [[getPlayerSourceIP]]&lt;br /&gt;
* [[getPlayerStat]]&lt;br /&gt;
* [[getPlayerTarget]]&lt;br /&gt;
* [[getPlayerTeam]]&lt;br /&gt;
* [[getRandomPlayer]]&lt;br /&gt;
* [[getWantedLevel]]&lt;br /&gt;
* [[givePlayerJetPack]]&lt;br /&gt;
* [[givePlayerMoney]]&lt;br /&gt;
* [[isPlayerDead]]&lt;br /&gt;
* [[isPlayerDucked]]&lt;br /&gt;
* [[isPlayerInVehicle]]&lt;br /&gt;
* [[isPlayerMuted]]&lt;br /&gt;
* [[isPlayerOnGround]]&lt;br /&gt;
* [[isPlayerUnderWater]]&lt;br /&gt;
* [[isPlayerScoreboardForced]]&lt;br /&gt;
* [[isPlayerMapForced]]&lt;br /&gt;
* [[getAlivePlayers]]&lt;br /&gt;
* [[getDeadPlayers]]&lt;br /&gt;
* [[getPlayerTask]]&lt;br /&gt;
* [[getPlayerSimplestTask]]&lt;br /&gt;
* [[isPlayerDoingTask]]&lt;br /&gt;
* [[getPlayerNametagText]]&lt;br /&gt;
* [[getPlayerNametagColor]]&lt;br /&gt;
* [[killPlayer]]&lt;br /&gt;
* [[removePlayerClothes]]&lt;br /&gt;
* [[removePlayerFromVehicle]]&lt;br /&gt;
* [[removePlayerJetPack]]&lt;br /&gt;
* [[setPlayerArmor]]&lt;br /&gt;
* [[setPlayerHealth]]&lt;br /&gt;
* [[setPlayerMoney]]&lt;br /&gt;
* [[setPlayerRotation]]&lt;br /&gt;
* [[setPlayerSkin]]&lt;br /&gt;
* [[setPlayerStat]]&lt;br /&gt;
* [[setWantedLevel]]&lt;br /&gt;
* [[showPlayerHudComponent]]&lt;br /&gt;
* [[spawnPlayer]]&lt;br /&gt;
* [[spawnPlayerAtSpawnpoint]]&lt;br /&gt;
* [[takePlayerMoney]]&lt;br /&gt;
* [[warpPlayerIntoVehicle]]&lt;br /&gt;
* [[forcePlayerScoreboard]]&lt;br /&gt;
* [[forcePlayerMap]]&lt;br /&gt;
* [[setPlayerNametagText]]&lt;br /&gt;
* [[setPlayerNametagColor]]&lt;/div&gt;</summary>
		<author><name>Kevuwk</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetVehicleSirensOn&amp;diff=6504</id>
		<title>SetVehicleSirensOn</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetVehicleSirensOn&amp;diff=6504"/>
		<updated>2006-11-19T18:16:57Z</updated>

		<summary type="html">&lt;p&gt;Kevuwk: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Incomplete]]&lt;br /&gt;
&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This function changes the state of the sirens on the specified vehicle.&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 setVehicleSirenOn ( vehicle theVehicle , bool sirensOn )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theVehicle:''' The vehicle that will have the sirens set&lt;br /&gt;
*'''sirensOn:''' The state to set the sirens to&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the sirens are set for the specified vehicle, ''false'' if the sirens can't be set for the specified vehicle, if the vehicle doesn't have sirens or if invalid arguments are specified.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example does...&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
--This line does...&lt;br /&gt;
blabhalbalhb --abababa&lt;br /&gt;
--This line does this...&lt;br /&gt;
mooo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{FunctionArea_Functions}}&lt;/div&gt;</summary>
		<author><name>Kevuwk</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetVehicleSirensOn&amp;diff=6502</id>
		<title>GetVehicleSirensOn</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetVehicleSirensOn&amp;diff=6502"/>
		<updated>2006-11-19T18:13:04Z</updated>

		<summary type="html">&lt;p&gt;Kevuwk: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Incomplete]]&lt;br /&gt;
&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This function returns whether the sirens are turned on for the specified vehicle.&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 getVehicleSirensOn ( vehicle theVehicle )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theVehicle:''' The vehicle that will be checked&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the sirens are turned on for the specified vehicle, ''false'' if the sirens are turned off for the specified vehicle, if the vehicle doesn't have sirens or if invalid arguments are specified.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example does...&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
--This line does...&lt;br /&gt;
blabhalbalhb --abababa&lt;br /&gt;
--This line does this...&lt;br /&gt;
mooo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{FunctionArea_Functions}}&lt;/div&gt;</summary>
		<author><name>Kevuwk</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetTeamFriendlyFire&amp;diff=6501</id>
		<title>GetTeamFriendlyFire</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetTeamFriendlyFire&amp;diff=6501"/>
		<updated>2006-11-19T18:08:29Z</updated>

		<summary type="html">&lt;p&gt;Kevuwk: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Incomplete]]&lt;br /&gt;
&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This function returns the friendly fire value for the specified team.&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 getTeamFriendlyFire ( team theTeam )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theTeam:''' The team that will be checked&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if friendly fire is on for the specified team, ''false'' if friendly fire is turned off for the specified team or if invalid arguments are specified.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example does...&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
--This line does...&lt;br /&gt;
blabhalbalhb --abababa&lt;br /&gt;
--This line does this...&lt;br /&gt;
mooo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{FunctionArea_Functions}}&lt;/div&gt;</summary>
		<author><name>Kevuwk</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetTeamFriendlyFire&amp;diff=6500</id>
		<title>SetTeamFriendlyFire</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetTeamFriendlyFire&amp;diff=6500"/>
		<updated>2006-11-19T18:08:07Z</updated>

		<summary type="html">&lt;p&gt;Kevuwk: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Incomplete]]&lt;br /&gt;
&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This function sets the friendly fire value for the specified team.&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 setTeamFriendlyFire ( team theTeam , bool friendlyFire )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theTeam:''' The team that will have friendly fire set&lt;br /&gt;
*'''friendlyFire:''' The friendly fire value&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the friendly fire value is set for the specified team, ''false'' if the friendly fire value can't be set for the specified team or if invalid arguments are specified.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example does...&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
--This line does...&lt;br /&gt;
blabhalbalhb --abababa&lt;br /&gt;
--This line does this...&lt;br /&gt;
mooo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{FunctionArea_Functions}}&lt;/div&gt;</summary>
		<author><name>Kevuwk</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetTeamFriendlyFire&amp;diff=6499</id>
		<title>GetTeamFriendlyFire</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetTeamFriendlyFire&amp;diff=6499"/>
		<updated>2006-11-19T18:04:26Z</updated>

		<summary type="html">&lt;p&gt;Kevuwk: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Incomplete]]&lt;br /&gt;
&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This function returns the friendly fire value for the specified team.&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 getTeamFriendlyFire ( team theTeam )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theTeam:''' The client that will be checked&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if friendly fire is on for the specified team, ''false'' if friendly fire is turned off for the specified team or if invalid arguments are specified.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example does...&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
--This line does...&lt;br /&gt;
blabhalbalhb --abababa&lt;br /&gt;
--This line does this...&lt;br /&gt;
mooo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{FunctionArea_Functions}}&lt;/div&gt;</summary>
		<author><name>Kevuwk</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetClientName&amp;diff=6496</id>
		<title>SetClientName</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetClientName&amp;diff=6496"/>
		<updated>2006-11-19T17:55:11Z</updated>

		<summary type="html">&lt;p&gt;Kevuwk: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Incomplete]]&lt;br /&gt;
&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This function sets the name of the specified client.&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 setClientName ( client theClient , string name )         &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theClient:''' The client that will have it's name set&lt;br /&gt;
*'''name:''' The name to set for the client&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the client's name was changed succesfully, ''false'' if invalid arguments are specified.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example does...&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
--This line does...&lt;br /&gt;
blabhalbalhb --abababa&lt;br /&gt;
--This line does this...&lt;br /&gt;
mooo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{FunctionArea_Functions}}&lt;/div&gt;</summary>
		<author><name>Kevuwk</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=BanPlayer&amp;diff=6494</id>
		<title>BanPlayer</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=BanPlayer&amp;diff=6494"/>
		<updated>2006-11-19T17:49:21Z</updated>

		<summary type="html">&lt;p&gt;Kevuwk: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Incomplete]]&lt;br /&gt;
&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This function will ban the specified player from the server.&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 banPlayer ( player bannedPlayer , [ player responsiblePlayer , string reason ] )         &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''bannedPlayer:''' The player that will be banned from the server&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}} &lt;br /&gt;
*'''responsiblePlayer:''' The player that is responsible the event&lt;br /&gt;
*'''reason:''' The reason the player will be banned from the server&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the player was banned succesfully, ''false'' if invalid arguments are specified.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example does...&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
--This line does...&lt;br /&gt;
blabhalbalhb --abababa&lt;br /&gt;
--This line does this...&lt;br /&gt;
mooo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{FunctionArea_Functions}}&lt;/div&gt;</summary>
		<author><name>Kevuwk</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=BanPlayer&amp;diff=6493</id>
		<title>BanPlayer</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=BanPlayer&amp;diff=6493"/>
		<updated>2006-11-19T17:46:42Z</updated>

		<summary type="html">&lt;p&gt;Kevuwk: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Incomplete]]&lt;br /&gt;
&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This function will ban the specified player from the server.&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 banPlayer ( player bannedPlayer , [ player responsiblePlayer , string reason ] )         &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''banPlayer:''' The player that will be banned from the server&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}} &lt;br /&gt;
*'''responsiblePlayer:''' The player that is responsible the event&lt;br /&gt;
*'''reason:''' The reason the player will be banned from the server&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the player was banned succesfully, ''false'' if invalid arguments are specified.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example does...&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
--This line does...&lt;br /&gt;
blabhalbalhb --abababa&lt;br /&gt;
--This line does this...&lt;br /&gt;
mooo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{FunctionArea_Functions}}&lt;/div&gt;</summary>
		<author><name>Kevuwk</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=KickPlayer&amp;diff=6492</id>
		<title>KickPlayer</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=KickPlayer&amp;diff=6492"/>
		<updated>2006-11-19T17:45:02Z</updated>

		<summary type="html">&lt;p&gt;Kevuwk: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Incomplete]]&lt;br /&gt;
&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This function will kick the specified player from the server.&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 kickPlayer ( player kickedPlayer , [ player responsiblePlayer , string reason ] )         &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''kickPlayer:''' The player that will be kicked from the server&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}} &lt;br /&gt;
*'''responsiblePlayer:''' The player that is responsible the event&lt;br /&gt;
*'''reason:''' The reason the player will be kicked from the server&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the player was kicked succesfully, ''false'' if invalid arguments are specified.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example does...&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
--This line does...&lt;br /&gt;
blabhalbalhb --abababa&lt;br /&gt;
--This line does this...&lt;br /&gt;
mooo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{FunctionArea_Functions}}&lt;/div&gt;</summary>
		<author><name>Kevuwk</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=KickPlayer&amp;diff=6491</id>
		<title>KickPlayer</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=KickPlayer&amp;diff=6491"/>
		<updated>2006-11-19T17:43:29Z</updated>

		<summary type="html">&lt;p&gt;Kevuwk: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Incomplete]]&lt;br /&gt;
&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This fake function is for use with blah &amp;amp; blah and does blahblahblabhalbhl&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 kickPlayer ( player kickedPlayer , [ player responsiblePlayer , string reason ] )         &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''kickPlayer:''' The player that will be kicked from the server&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}} &lt;br /&gt;
*'''responsiblePlayer:''' The player that is responsible the event&lt;br /&gt;
*'''reason:''' The reason the player will be kicked from the server&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the player was kicked succesfully, ''false'' if invalid arguments are specified.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example does...&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
--This line does...&lt;br /&gt;
blabhalbalhb --abababa&lt;br /&gt;
--This line does this...&lt;br /&gt;
mooo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{FunctionArea_Functions}}&lt;/div&gt;</summary>
		<author><name>Kevuwk</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=KickPlayer&amp;diff=6490</id>
		<title>KickPlayer</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=KickPlayer&amp;diff=6490"/>
		<updated>2006-11-19T17:38:50Z</updated>

		<summary type="html">&lt;p&gt;Kevuwk: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Incomplete]]&lt;br /&gt;
&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This fake function is for use with blah &amp;amp; blah and does blahblahblabhalbhl&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 kickPlayer ( player kickedPlayer , player responsiblePlayer , string reason )         &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''argumentName:''' description&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}} &lt;br /&gt;
*'''argumentName2:''' descriptiona&lt;br /&gt;
*'''argumentName3:''' description&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if blah, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example does...&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
--This line does...&lt;br /&gt;
blabhalbalhb --abababa&lt;br /&gt;
--This line does this...&lt;br /&gt;
mooo&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{FunctionArea_Functions}}&lt;/div&gt;</summary>
		<author><name>Kevuwk</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Player_functions&amp;diff=6482</id>
		<title>Template:Player functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Player_functions&amp;diff=6482"/>
		<updated>2006-11-19T17:08:50Z</updated>

		<summary type="html">&lt;p&gt;Kevuwk: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* [[addPlayerClothes]]&lt;br /&gt;
* [[canPlayerUseFunction]]&lt;br /&gt;
* [[doesPlayerHaveJetPack]]&lt;br /&gt;
* [[getPlayerArmor]]&lt;br /&gt;
* [[getPlayerClothes]]&lt;br /&gt;
* [[getPlayerCount]]&lt;br /&gt;
* [[getPlayerCurrentWeaponAmmoInClip]]&lt;br /&gt;
* [[getPlayerCurrentWeaponTotalAmmo]]&lt;br /&gt;
* [[getPlayerCurrentWeaponID]]&lt;br /&gt;
* [[getPlayerFromNick]]&lt;br /&gt;
* [[getPlayerHealth]]&lt;br /&gt;
* [[getPlayerLevel]]&lt;br /&gt;
* [[getPlayerMoney]]&lt;br /&gt;
* [[getPlayerOccupiedVehicle]]&lt;br /&gt;
* [[getPlayerOccupiedVehicleSeat]]&lt;br /&gt;
* [[getPlayerPing]]&lt;br /&gt;
* [[getPlayerRotation]]&lt;br /&gt;
* [[getPlayerSkin]]&lt;br /&gt;
* [[getPlayerSourceIP]]&lt;br /&gt;
* [[getPlayerStat]]&lt;br /&gt;
* [[getPlayerTarget]]&lt;br /&gt;
* [[getPlayerTeam]]&lt;br /&gt;
* [[getRandomPlayer]]&lt;br /&gt;
* [[getWantedLevel]]&lt;br /&gt;
* [[givePlayerJetPack]]&lt;br /&gt;
* [[givePlayerMoney]]&lt;br /&gt;
* [[isPlayerDead]]&lt;br /&gt;
* [[isPlayerDucked]]&lt;br /&gt;
* [[isPlayerInVehicle]]&lt;br /&gt;
* [[isPlayerMuted]]&lt;br /&gt;
* [[isPlayerOnGround]]&lt;br /&gt;
* [[isPlayerUnderWater]]&lt;br /&gt;
* [[isPlayerScoreboardForced]]&lt;br /&gt;
* [[isPlayerMapForced]]&lt;br /&gt;
* [[getAlivePlayers]]&lt;br /&gt;
* [[getDeadPlayers]]&lt;br /&gt;
* [[getPlayerTask]]&lt;br /&gt;
* [[getPlayerSimplestTask]]&lt;br /&gt;
* [[isPlayerDoingTask]]&lt;br /&gt;
* [[killPlayer]]&lt;br /&gt;
* [[removePlayerClothes]]&lt;br /&gt;
* [[removePlayerFromVehicle]]&lt;br /&gt;
* [[removePlayerJetPack]]&lt;br /&gt;
* [[setPlayerArmor]]&lt;br /&gt;
* [[setPlayerHealth]]&lt;br /&gt;
* [[setPlayerMoney]]&lt;br /&gt;
* [[setPlayerRotation]]&lt;br /&gt;
* [[setPlayerSkin]]&lt;br /&gt;
* [[setPlayerStat]]&lt;br /&gt;
* [[setWantedLevel]]&lt;br /&gt;
* [[showPlayerHudComponent]]&lt;br /&gt;
* [[spawnPlayer]]&lt;br /&gt;
* [[spawnPlayerAtSpawnpoint]]&lt;br /&gt;
* [[takePlayerMoney]]&lt;br /&gt;
* [[warpPlayerIntoVehicle]]&lt;br /&gt;
* [[forcePlayerScoreboard]]&lt;br /&gt;
* [[forcePlayerMap]]&lt;/div&gt;</summary>
		<author><name>Kevuwk</name></author>
	</entry>
</feed>