<?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=Tjong+Tjong</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=Tjong+Tjong"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Tjong_Tjong"/>
	<updated>2026-05-20T09:10:04Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Getting_MTA:SA_to_work_with_wine&amp;diff=26419</id>
		<title>Getting MTA:SA to work with wine</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Getting_MTA:SA_to_work_with_wine&amp;diff=26419"/>
		<updated>2011-07-28T19:40:16Z</updated>

		<summary type="html">&lt;p&gt;Tjong Tjong: /* Required fonts */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Installing MTA:SA ===&lt;br /&gt;
&lt;br /&gt;
In order to install MTA:SA you will need the latest Wine version available to be able to install and run it.&lt;br /&gt;
&lt;br /&gt;
'''Be sure you use Wine version 1.3 ([http://tinyurl.com/installWine1-3 Click on this link to check and install if needed] (Ubuntu-only)) '''&lt;br /&gt;
&lt;br /&gt;
Once you installed MTA:SA you might need some missing fonts, this is not always the case,&lt;br /&gt;
&lt;br /&gt;
but if the game doesn't start consider installing them.&lt;br /&gt;
&lt;br /&gt;
==== Required fonts ====&lt;br /&gt;
These are the required fonts:&lt;br /&gt;
&lt;br /&gt;
[http://merlin.neon-gaming.de/files/MTA-Fonts.7z verdana, tahoma, tahomabd]&lt;br /&gt;
&lt;br /&gt;
Simply extract the fonts from the .7z archive to the 'Fonts' directory in the Windows directory inside your Wine directory.&lt;br /&gt;
&lt;br /&gt;
=== Bugfixes ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== If MTA is not starting ====&lt;br /&gt;
&lt;br /&gt;
If MTA doesn't start and you've already copied all the fonts needed, &lt;br /&gt;
you can try the following possible fixes:&lt;br /&gt;
* &amp;lt;u&amp;gt;Try to start MTA:SA in a virtual desktop&amp;lt;/u&amp;gt;&amp;lt;br&amp;gt;Go to WineConfig, choose the tab &amp;quot;Graphics&amp;quot; and select &amp;quot;Emulate a virtual desktop&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;u&amp;gt;Try to delete your gta_sa.set file&amp;lt;/u&amp;gt; which is located in the&amp;lt;br&amp;gt;&amp;quot;GTA San Andreas User Files&amp;quot;-folder which can be found in your home directory.&amp;lt;br&amp;gt;'''(Remember to create a copy, if you're playing San Andreas in singleplayer)'''&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;u&amp;gt;Try to delete your MTA config file&amp;lt;/u&amp;gt; which is:&amp;lt;br&amp;gt;&amp;quot;MTA San Andreas/MTA/coreconfig.xml&amp;quot;&amp;lt;br&amp;gt;'''(Also remember to create a copy, if you don't want to lose your edited MTA configuration)'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Crash when connecting ====&lt;br /&gt;
&lt;br /&gt;
Sometimes the audio-server makes problems (could be related to pulseaudio), &lt;br /&gt;
&lt;br /&gt;
in this case you've to go to WineConfig and choose the tab Audio, &lt;br /&gt;
&lt;br /&gt;
then deselect &amp;quot;ALSA&amp;quot; and select &amp;quot;EsoundD&amp;quot;. Save the settings and restart MTA.&lt;/div&gt;</summary>
		<author><name>Tjong Tjong</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Resource:Race&amp;diff=25305</id>
		<title>Resource:Race</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Resource:Race&amp;diff=25305"/>
		<updated>2011-02-01T16:21:45Z</updated>

		<summary type="html">&lt;p&gt;Tjong Tjong: /* .map file */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Resource page}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
The &amp;quot;race&amp;quot; gamemode organizes sprint or freeroam races for one or more players. It supports both maps from MTA:Race and maps in the MTA:SA DM map syntax that were created in the map editor.&lt;br /&gt;
&lt;br /&gt;
==Ingame==&lt;br /&gt;
Playing race is quite straightforward. If there are checkpoints, drive from checkpoint to checkpoint and be the first to reach the finish line within the time. If there are no checkpoints, just drive around and have fun.&lt;br /&gt;
&lt;br /&gt;
In races you may encounter three types of pickups which will have an effect on your vehicle:&lt;br /&gt;
*'''Repair pickups:''' this pickup looks like a wrench. If you drive over it, your vehicle will be restored to full health.&lt;br /&gt;
*'''Nitrous oxide pickups:''' a red NOS bottle. After you drive over one you can press the fire button (by default the left mouse button) to get a temporary speed boost.&lt;br /&gt;
*'''Vehicle change pickups:''' these display the name of a vehicle above them. As soon as you drive over a pickup your vehicle will be changed.&lt;br /&gt;
&lt;br /&gt;
Lastly, if you get stuck during a race, you can enter the /kill command in the chatbox to kill yourself and respawn at the previous checkpoint.&lt;br /&gt;
&lt;br /&gt;
==Converting MTA:Race maps==&lt;br /&gt;
Use the [http://files.mtasa.com/apps/1.0/raceconv.zip batch converter] to convert all your MTA:Race maps into MTA:SA maps in one go.&lt;br /&gt;
&lt;br /&gt;
==Map syntax==&lt;br /&gt;
You can create race maps using the new MTA:SA [[Resource:editor|map editor]]. The map syntax is given here for reference.&lt;br /&gt;
&lt;br /&gt;
===.map file===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;map&amp;gt;&lt;br /&gt;
    &amp;lt;!-- One or more --&amp;gt;&lt;br /&gt;
    &amp;lt;spawnpoint posX=&amp;quot;X&amp;quot; posY=&amp;quot;Y&amp;quot; posZ=&amp;quot;Z&amp;quot; rotation=&amp;quot;Rotation in degrees&amp;quot; vehicle=&amp;quot;Vehicle ID&amp;quot; id=&amp;quot;spawnpointID&amp;quot; [ paintjob=&amp;quot;paintjob ID&amp;quot; upgrades=&amp;quot;comma-separated list of upgrades&amp;quot; ] /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;!-- Zero or more --&amp;gt; &lt;br /&gt;
    &amp;lt;checkpoint posX=&amp;quot;X&amp;quot; posY=&amp;quot;Y&amp;quot; posZ=&amp;quot;Z&amp;quot; color=&amp;quot;#FF0000&amp;quot; id=&amp;quot;textual or numeric checkpoint ID&amp;quot; nextid=&amp;quot;ID of checkpoint after this one&amp;quot; [ size=&amp;quot;checkpoint size&amp;quot; vehicle=&amp;quot;vehicle ID to change into&amp;quot; type=&amp;quot;checkpoint/ring/cylinder/arrow/corona&amp;quot; paintjob=&amp;quot;paintjob ID&amp;quot; upgrades=&amp;quot;comma-separated list of upgrades&amp;quot; ] /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;!-- Zero or more --&amp;gt;&lt;br /&gt;
    &amp;lt;object posX=&amp;quot;X&amp;quot; posY=&amp;quot;Y&amp;quot; posZ=&amp;quot;Z&amp;quot; rotX=&amp;quot;in degrees&amp;quot; rotY=&amp;quot;in degrees&amp;quot; rotZ=&amp;quot;in degrees&amp;quot; model=&amp;quot;model ID&amp;quot; id=&amp;quot;objectID&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
    &amp;lt;!-- Zero or more --&amp;gt;&lt;br /&gt;
    &amp;lt;pickup posX=&amp;quot;X&amp;quot; posY=&amp;quot;Y&amp;quot; posZ=&amp;quot;Z&amp;quot; type=&amp;quot;repair|nitro|vehiclechange&amp;quot; id=&amp;quot;pickupID&amp;quot; [ vehicle=&amp;quot;vehicle ID&amp;quot; paintjob=&amp;quot;paintjob ID&amp;quot; upgrades=&amp;quot;comma-separated list of upgrades&amp;quot; ] /&amp;gt;&lt;br /&gt;
&amp;lt;/map&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===meta.xml===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;meta&amp;gt;&lt;br /&gt;
   &amp;lt;info type=&amp;quot;map&amp;quot; gamemodes=&amp;quot;race&amp;quot; name=&amp;quot;Map name&amp;quot; author=&amp;quot;Author name&amp;quot; description=&amp;quot;Map description&amp;quot; version=&amp;quot;Map version number&amp;quot;/&amp;gt;&lt;br /&gt;
   &amp;lt;race src=&amp;quot;Map file.map&amp;quot;/&amp;gt;&lt;br /&gt;
   &amp;lt;settings&amp;gt;&lt;br /&gt;
      &amp;lt;setting name=&amp;quot;#optionName&amp;quot; value=&amp;quot;optionValue&amp;quot;/&amp;gt;&lt;br /&gt;
      ...&lt;br /&gt;
   &amp;lt;/settings&amp;gt;&lt;br /&gt;
&amp;lt;/meta&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
The &amp;lt;setting&amp;gt;s correspond to options in MTA:Race syntax. For example, &amp;lt;time&amp;gt;4:0&amp;lt;/time&amp;gt; in MTA:Race syntax would correspond to &amp;lt;setting name=&amp;quot;#time&amp;quot; value=&amp;quot;4:0&amp;quot;/&amp;gt; in DM syntax.&lt;br /&gt;
&lt;br /&gt;
==Addons==&lt;br /&gt;
A Race 'addon' is no different from any other script resource, except that is has addon=&amp;quot;race&amp;quot; in the &amp;lt;info&amp;gt; section of it's meta.xml file. This is simply to allow Race to identify it and put it in the /config menu for you. Addons communicate with Race via events. The current list of Race events and what they do are here:&lt;br /&gt;
&lt;br /&gt;
==Events for version 0.8.3==&lt;br /&gt;
'''Note:''' You may have to add the events in your script using addEvent() if you want to use them.&lt;br /&gt;
===Server===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;0&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|width=&amp;quot;200pt&amp;quot;|'''Name'''&lt;br /&gt;
|width=&amp;quot;60pt&amp;quot;|'''Source'''&lt;br /&gt;
|'''Parameters'''	&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;0&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|width=&amp;quot;200pt&amp;quot;|'''onPlayerReachCheckpoint'''&lt;br /&gt;
|width=&amp;quot;60pt&amp;quot;|player	&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;int checkpoint, int time_&amp;lt;/syntaxhighlight&amp;gt;	&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;0&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|width=&amp;quot;200pt&amp;quot;|'''onPlayerPickUpRacePickup'''&lt;br /&gt;
|width=&amp;quot;60pt&amp;quot;|player	&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;int/string pickupID, string pickupType, int vehicleModel&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;0&amp;quot;&lt;br /&gt;
|-		&lt;br /&gt;
|width=&amp;quot;200pt&amp;quot;|'''onMapStarting'''&lt;br /&gt;
|width=&amp;quot;60pt&amp;quot;|&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;table mapInfo, table mapOptions, table gameOptions&amp;lt;/syntaxhighlight&amp;gt;	&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;0&amp;quot;&lt;br /&gt;
|-	&lt;br /&gt;
|width=&amp;quot;200pt&amp;quot;|'''onPlayerFinish'''&lt;br /&gt;
|width=&amp;quot;60pt&amp;quot;|player	&lt;br /&gt;
|height=&amp;quot;20pt&amp;quot;|&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;int rank, int time&amp;lt;/syntaxhighlight&amp;gt;	&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;0&amp;quot;&lt;br /&gt;
|-	&lt;br /&gt;
|width=&amp;quot;200pt&amp;quot;|'''onPostFinish'''	&lt;br /&gt;
|width=&amp;quot;60pt&amp;quot;|&lt;br /&gt;
|height=&amp;quot;38pt&amp;quot;|	&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;0&amp;quot;&lt;br /&gt;
|-	&lt;br /&gt;
|width=&amp;quot;200pt&amp;quot;|'''onPollStarting'''&lt;br /&gt;
|width=&amp;quot;60pt&amp;quot;|&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;table poll&amp;lt;/syntaxhighlight&amp;gt;	&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;0&amp;quot;&lt;br /&gt;
|-	&lt;br /&gt;
|width=&amp;quot;200pt&amp;quot;|'''onRaceStateChanging'''&lt;br /&gt;
|width=&amp;quot;60pt&amp;quot;|&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;string newStateName, string oldStateName&amp;lt;/syntaxhighlight&amp;gt;	&lt;br /&gt;
|-	&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;0&amp;quot;&lt;br /&gt;
|-	&lt;br /&gt;
|width=&amp;quot;200pt&amp;quot;|'''onPlayerRaceWasted'''&lt;br /&gt;
|width=&amp;quot;60pt&amp;quot;|player&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;vehicle playersVehicle&amp;lt;/syntaxhighlight&amp;gt;	&lt;br /&gt;
|-	&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Client===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;0&amp;quot;&lt;br /&gt;
|-	&lt;br /&gt;
|width=&amp;quot;200pt&amp;quot;|'''onClientMapStarting'''&lt;br /&gt;
|width=&amp;quot;60pt&amp;quot;|&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;table mapinfo&amp;lt;/syntaxhighlight&amp;gt;	&lt;br /&gt;
|-	&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;0&amp;quot;&lt;br /&gt;
|-	&lt;br /&gt;
|width=&amp;quot;200pt&amp;quot;|'''onClientPlayerFinish'''&lt;br /&gt;
|width=&amp;quot;60pt&amp;quot;|player	&lt;br /&gt;
|height=&amp;quot;38pt&amp;quot;|&lt;br /&gt;
|-	&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;0&amp;quot;&lt;br /&gt;
|-	&lt;br /&gt;
|width=&amp;quot;200pt&amp;quot;|'''onClientPlayerOutOfTime'''&lt;br /&gt;
|width=&amp;quot;60pt&amp;quot;|player	&lt;br /&gt;
|height=&amp;quot;38pt&amp;quot;|&lt;br /&gt;
|-	&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;0&amp;quot;&lt;br /&gt;
|-	&lt;br /&gt;
|width=&amp;quot;200pt&amp;quot;|'''onClientMapStopping'''&lt;br /&gt;
|width=&amp;quot;60pt&amp;quot;|&lt;br /&gt;
|height=&amp;quot;38pt&amp;quot;|&lt;br /&gt;
|-	&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;0&amp;quot;&lt;br /&gt;
|-	&lt;br /&gt;
|width=&amp;quot;200pt&amp;quot;|'''onClientScreenFadedOut'''&lt;br /&gt;
|width=&amp;quot;60pt&amp;quot;|&lt;br /&gt;
|height=&amp;quot;38pt&amp;quot;|&lt;br /&gt;
|-	&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;0&amp;quot;&lt;br /&gt;
|-	&lt;br /&gt;
|width=&amp;quot;200pt&amp;quot;|'''onClientScreenFadedIn'''&lt;br /&gt;
|width=&amp;quot;60pt&amp;quot;|&lt;br /&gt;
|height=&amp;quot;38pt&amp;quot;|&lt;br /&gt;
|-	&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Events for version 0.8.3 in detail==&lt;br /&gt;
'''Note:''' You may have to add the events in your script using addEvent() if you want to use them.&lt;br /&gt;
===onPlayerReachCheckpoint===&lt;br /&gt;
Triggered when a player reaches any checkpoint but the last one.&lt;br /&gt;
====Parameters====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;int checkpoint, int time&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''checkpoint:''' the number of the checkpoint the player went through. The first checkpoint has number 1.&lt;br /&gt;
*'''time:''' time since the race started, in milliseconds.&lt;br /&gt;
&lt;br /&gt;
====Source====&lt;br /&gt;
The source is the player that reached the checkpoint.&lt;br /&gt;
&lt;br /&gt;
===onPlayerFinish===&lt;br /&gt;
Triggered when a player reaches the last checkpoint (i.e. has finished the race)&lt;br /&gt;
====Parameters====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;int rank, int time&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''rank:''' the player's rank. 1 means he won the race, 2 that he came in second place, etc.&lt;br /&gt;
*'''time:''' time since the race started, in milliseconds.&lt;br /&gt;
&lt;br /&gt;
====Source====&lt;br /&gt;
The source is the player that finished the race.&lt;br /&gt;
&lt;br /&gt;
===onPlayerPickUpRacePickup===&lt;br /&gt;
====Parameters====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;int/string pickupID, string pickupType, int vehicleModel&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''pickupID:''' the number of the pickup in case of MTA:Race syntax (starting at 1), or the &amp;quot;id&amp;quot; attribute of the pickup in case of DM syntax.&lt;br /&gt;
*'''pickupType:''' the pickup type. Can be &amp;quot;nitro&amp;quot;, &amp;quot;repair&amp;quot; or &amp;quot;vehiclechange&amp;quot;.&lt;br /&gt;
*'''vehicleModel:''' if the pickup is of type vehiclechange, this is the vehicle model that it sets.&lt;br /&gt;
&lt;br /&gt;
====Source====&lt;br /&gt;
The source is the player that picked up the pickup.&lt;br /&gt;
&lt;br /&gt;
==Element data==&lt;br /&gt;
These element data are set on each player:&lt;br /&gt;
*'''race rank:''' the current position of the player in the race. 1 = first, 2 = second etc. Updated on a 1 second interval.&lt;br /&gt;
*'''race.checkpoint:''' the number of the checkpoint the player is ''heading for''. When the player spawns this number is 1, after he passed the first checkpoint it's 2, etc.&lt;br /&gt;
*'''race.finished:''' ''true'' if the player has finished, ''false'' if he's still racing.&lt;br /&gt;
&lt;br /&gt;
This server only element data is set for the resource root element:&lt;br /&gt;
*'''info:''' which contains a table with these sub-tables: '''mapInfo''', '''mapOptions''' and '''gameOptions'''.&lt;br /&gt;
&lt;br /&gt;
==Super Advanced Element data==&lt;br /&gt;
You can also set player element data to change the player collision status and render transparency:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
e.g. setElementData( thePlayer, &amp;quot;overrideCollide.uniqueblah&amp;quot;, 0, false )		-- Collide 'off' for this player&lt;br /&gt;
     setElementData( thePlayer, &amp;quot;overrideCollide.uniqueblah&amp;quot;, nil, false )		-- Collide 'default' for this player&lt;br /&gt;
     setElementData( thePlayer, &amp;quot;overrideAlpha.uniqueblah&amp;quot;, 120, false )		-- Alpha '120 maximum' for this player&lt;br /&gt;
     setElementData( thePlayer, &amp;quot;overrideAlpha.uniqueblah&amp;quot;, nil, false )		-- Alpha 'default' for this player&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Set 'uniqueblah' to whatever you like (up to 15 characters long)&lt;br /&gt;
&lt;br /&gt;
==Exported Server functions==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;0&amp;quot;&lt;br /&gt;
|-	&lt;br /&gt;
|width=&amp;quot;80pt&amp;quot;|&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;int&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|width=&amp;quot;110pt&amp;quot;|'''getTimePassed'''&lt;br /&gt;
|height=&amp;quot;38pt&amp;quot;|&lt;br /&gt;
|-	&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;0&amp;quot;&lt;br /&gt;
|-	&lt;br /&gt;
|width=&amp;quot;80pt&amp;quot;|&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;int&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|width=&amp;quot;110pt&amp;quot;|'''getPlayerRank'''&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;player thePlayer&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-	&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;0&amp;quot;&lt;br /&gt;
|-	&lt;br /&gt;
|width=&amp;quot;80pt&amp;quot;|&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;boolean&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|width=&amp;quot;110pt&amp;quot;|'''isPlayerFinished'''&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;player thePlayer&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-	&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; border=&amp;quot;0&amp;quot;&lt;br /&gt;
|-	&lt;br /&gt;
|width=&amp;quot;80pt&amp;quot;|&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;vehicle&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|width=&amp;quot;110pt&amp;quot;|'''getPlayerVehicle'''&lt;br /&gt;
|&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;player thePlayer&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
|-	&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Tjong Tjong</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Getting_MTA:SA_to_work_with_wine&amp;diff=25279</id>
		<title>Getting MTA:SA to work with wine</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Getting_MTA:SA_to_work_with_wine&amp;diff=25279"/>
		<updated>2011-01-27T00:38:55Z</updated>

		<summary type="html">&lt;p&gt;Tjong Tjong: Reuploaded Font-Files&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Installing MTA:SA ===&lt;br /&gt;
&lt;br /&gt;
In order to install MTA:SA you will need the latest Wine version available to be able to install and run it.&lt;br /&gt;
&lt;br /&gt;
'''Be sure you use Wine version 1.3 ([http://tinyurl.com/installWine1-3 Click on this link to check and install if needed] (Ubuntu-only)) '''&lt;br /&gt;
&lt;br /&gt;
Once you installed MTA:SA you might need some missing fonts, this is not always the case,&lt;br /&gt;
&lt;br /&gt;
but if the game doesn't start consider installing them.&lt;br /&gt;
&lt;br /&gt;
==== Required fonts ====&lt;br /&gt;
These are the required fonts:&lt;br /&gt;
&lt;br /&gt;
[http://race.neon-gaming.de/MTA-Fonts.7z verdana, tahoma, tahomabd]&lt;br /&gt;
&lt;br /&gt;
Simply extract the fonts from the .7z archive to the 'Fonts' directory in the Windows directory inside your Wine directory.&lt;br /&gt;
&lt;br /&gt;
=== Bugfixes ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== If MTA is not starting ====&lt;br /&gt;
&lt;br /&gt;
If MTA doesn't start and you've already copied all the fonts needed, &lt;br /&gt;
you can try the following possible fixes:&lt;br /&gt;
* &amp;lt;u&amp;gt;Try to start MTA:SA in a virtual desktop&amp;lt;/u&amp;gt;&amp;lt;br&amp;gt;Go to WineConfig, choose the tab &amp;quot;Graphics&amp;quot; and select &amp;quot;Emulate a virtual desktop&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;u&amp;gt;Try to delete your gta_sa.set file&amp;lt;/u&amp;gt; which is located in the&amp;lt;br&amp;gt;&amp;quot;GTA San Andreas User Files&amp;quot;-folder which can be found in your home directory.&amp;lt;br&amp;gt;'''(Remember to create a copy, if you're playing San Andreas in singleplayer)'''&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;u&amp;gt;Try to delete your MTA config file&amp;lt;/u&amp;gt; which is:&amp;lt;br&amp;gt;&amp;quot;MTA San Andreas/MTA/coreconfig.xml&amp;quot;&amp;lt;br&amp;gt;'''(Also remember to create a copy, if you don't want to lose your edited MTA configuration)'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Crash when connecting ====&lt;br /&gt;
&lt;br /&gt;
Sometimes the audio-server makes problems (could be related to pulseaudio), &lt;br /&gt;
&lt;br /&gt;
in this case you've to go to WineConfig and choose the tab Audio, &lt;br /&gt;
&lt;br /&gt;
then deselect &amp;quot;ALSA&amp;quot; and select &amp;quot;EsoundD&amp;quot;. Save the settings and restart MTA.&lt;/div&gt;</summary>
		<author><name>Tjong Tjong</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Getting_MTA:SA_to_work_with_wine&amp;diff=25276</id>
		<title>Getting MTA:SA to work with wine</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Getting_MTA:SA_to_work_with_wine&amp;diff=25276"/>
		<updated>2011-01-25T20:19:26Z</updated>

		<summary type="html">&lt;p&gt;Tjong Tjong: /* Installing MTA:SA */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Installing MTA:SA ===&lt;br /&gt;
&lt;br /&gt;
In order to install MTA:SA you will need the latest Wine version available to be able to install and run it.&lt;br /&gt;
&lt;br /&gt;
'''Be sure you use Wine version 1.3 ([http://tinyurl.com/installWine1-3 Click on this link to check and install if needed] (Ubuntu-only)) '''&lt;br /&gt;
&lt;br /&gt;
Once you installed MTA:SA you might need some missing fonts, this is not always the case,&lt;br /&gt;
&lt;br /&gt;
but if the game doesn't start consider installing them.&lt;br /&gt;
&lt;br /&gt;
==== Required fonts ====&lt;br /&gt;
These are the required fonts:&lt;br /&gt;
&lt;br /&gt;
[http://projets.developpez.com/repositories/entry/vforum-php/data/fonts/verdana.ttf?format=raw&amp;amp;rev=1 verdana]&lt;br /&gt;
&lt;br /&gt;
[http://www.bikeparadise.cz/jpgraph/ttf/tahoma.ttf tahoma]&lt;br /&gt;
&lt;br /&gt;
[http://www.bikeparadise.cz/jpgraph/ttf/tahomabd.ttf tahomabd]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Simply copy the fonts to the 'Fonts' directory in the Windows directory inside your Wine directory.&lt;br /&gt;
&lt;br /&gt;
=== Bugfixes ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== If MTA is not starting ====&lt;br /&gt;
&lt;br /&gt;
If MTA doesn't start and you've already copied all the fonts needed, &lt;br /&gt;
you can try the following possible fixes:&lt;br /&gt;
* &amp;lt;u&amp;gt;Try to start MTA:SA in a virtual desktop&amp;lt;/u&amp;gt;&amp;lt;br&amp;gt;Go to WineConfig, choose the tab &amp;quot;Graphics&amp;quot; and select &amp;quot;Emulate a virtual desktop&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;u&amp;gt;Try to delete your gta_sa.set file&amp;lt;/u&amp;gt; which is located in the&amp;lt;br&amp;gt;&amp;quot;GTA San Andreas User Files&amp;quot;-folder which can be found in your home directory.&amp;lt;br&amp;gt;'''(Remember to create a copy, if you're playing San Andreas in singleplayer)'''&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;u&amp;gt;Try to delete your MTA config file&amp;lt;/u&amp;gt; which is:&amp;lt;br&amp;gt;&amp;quot;MTA San Andreas/MTA/coreconfig.xml&amp;quot;&amp;lt;br&amp;gt;'''(Also remember to create a copy, if you don't want to lose your edited MTA configuration)'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Crash when connecting ====&lt;br /&gt;
&lt;br /&gt;
Sometimes the audio-server makes problems (could be related to pulseaudio), &lt;br /&gt;
&lt;br /&gt;
in this case you've to go to WineConfig and choose the tab Audio, &lt;br /&gt;
&lt;br /&gt;
then deselect &amp;quot;ALSA&amp;quot; and select &amp;quot;EsoundD&amp;quot;. Save the settings and restart MTA.&lt;/div&gt;</summary>
		<author><name>Tjong Tjong</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Getting_MTA:SA_to_work_with_wine&amp;diff=25275</id>
		<title>Getting MTA:SA to work with wine</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Getting_MTA:SA_to_work_with_wine&amp;diff=25275"/>
		<updated>2011-01-25T19:56:48Z</updated>

		<summary type="html">&lt;p&gt;Tjong Tjong: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Installing MTA:SA ===&lt;br /&gt;
&lt;br /&gt;
In order to install MTA:SA you will need the latest Wine version available to be able to install and run it.&lt;br /&gt;
&lt;br /&gt;
'''Be sure you use Wine version 1.3 ([http://tinyurl.com/installWine1-3 Click on this link to check and install if needed]) '''&lt;br /&gt;
&lt;br /&gt;
Once you installed MTA:SA you might need some missing fonts, this is not always the case,&lt;br /&gt;
&lt;br /&gt;
but if the game doesn't start consider installing them.&lt;br /&gt;
&lt;br /&gt;
==== Required fonts ====&lt;br /&gt;
These are the required fonts:&lt;br /&gt;
&lt;br /&gt;
[http://projets.developpez.com/repositories/entry/vforum-php/data/fonts/verdana.ttf?format=raw&amp;amp;rev=1 verdana]&lt;br /&gt;
&lt;br /&gt;
[http://www.bikeparadise.cz/jpgraph/ttf/tahoma.ttf tahoma]&lt;br /&gt;
&lt;br /&gt;
[http://www.bikeparadise.cz/jpgraph/ttf/tahomabd.ttf tahomabd]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Simply copy the fonts to the 'Fonts' directory in the Windows directory inside your Wine directory.&lt;br /&gt;
&lt;br /&gt;
=== Bugfixes ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== If MTA is not starting ====&lt;br /&gt;
&lt;br /&gt;
If MTA doesn't start and you've already copied all the fonts needed, &lt;br /&gt;
you can try the following possible fixes:&lt;br /&gt;
* &amp;lt;u&amp;gt;Try to start MTA:SA in a virtual desktop&amp;lt;/u&amp;gt;&amp;lt;br&amp;gt;Go to WineConfig, choose the tab &amp;quot;Graphics&amp;quot; and select &amp;quot;Emulate a virtual desktop&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;u&amp;gt;Try to delete your gta_sa.set file&amp;lt;/u&amp;gt; which is located in the&amp;lt;br&amp;gt;&amp;quot;GTA San Andreas User Files&amp;quot;-folder which can be found in your home directory.&amp;lt;br&amp;gt;'''(Remember to create a copy, if you're playing San Andreas in singleplayer)'''&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;u&amp;gt;Try to delete your MTA config file&amp;lt;/u&amp;gt; which is:&amp;lt;br&amp;gt;&amp;quot;MTA San Andreas/MTA/coreconfig.xml&amp;quot;&amp;lt;br&amp;gt;'''(Also remember to create a copy, if you don't want to lose your edited MTA configuration)'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Crash when connecting ====&lt;br /&gt;
&lt;br /&gt;
Sometimes the audio-server makes problems (could be related to pulseaudio), &lt;br /&gt;
&lt;br /&gt;
in this case you've to go to WineConfig and choose the tab Audio, &lt;br /&gt;
&lt;br /&gt;
then deselect &amp;quot;ALSA&amp;quot; and select &amp;quot;EsoundD&amp;quot;. Save the settings and restart MTA.&lt;/div&gt;</summary>
		<author><name>Tjong Tjong</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Slothman/Slothbot&amp;diff=24856</id>
		<title>Slothman/Slothbot</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Slothman/Slothbot&amp;diff=24856"/>
		<updated>2010-12-28T18:27:20Z</updated>

		<summary type="html">&lt;p&gt;Tjong Tjong: /* spawnBot */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is a resource designed to allow scripts or gamemodes to insert a ped into the game that roughly simulates combat with a real player. gamemodes can implement the bots as opponents to actual players or as teammates. &lt;br /&gt;
&lt;br /&gt;
=Features=&lt;br /&gt;
'''Teamplay:'''&lt;br /&gt;
The bot is capable of identifying friend from foe&lt;br /&gt;
&lt;br /&gt;
'''Map Navigation:'''&lt;br /&gt;
When the bot is placed in a map that has suitable pathways marked out (see below on how to do that) the bot will navigate the map, seeking out enemies. Without pathways, a bot can still think for itself, but wont move around as profficiently.&lt;br /&gt;
&lt;br /&gt;
'''Aggressiveness:'''&lt;br /&gt;
Bots will attack any ped, player or bot thats not on it's team.&lt;br /&gt;
&lt;br /&gt;
'''Cooperation:'''&lt;br /&gt;
Bots can automatically team up with teammates (either player or bot) by meeting up with them and sticking together&lt;br /&gt;
&lt;br /&gt;
'''Advanced movement:'''&lt;br /&gt;
If theres obstacles blocking a bot's path, the bot will attempt to get around or over it instead of just walking into a wall for eternity&lt;br /&gt;
&lt;br /&gt;
'''Multiple modes of playing:'''&lt;br /&gt;
*&amp;quot;hunting&amp;quot; - travel pathways untill finding an enemy or teammate&lt;br /&gt;
*&amp;quot;waiting&amp;quot; - stand still untill an enemy of teammate comes into view&lt;br /&gt;
*&amp;quot;guarding&amp;quot; - the bot will attack any enemy that comes within sight, but not move from its spawn position&lt;br /&gt;
*&amp;quot;following&amp;quot; - the bot will follow a player or bot while attacking enemies&lt;br /&gt;
*&amp;quot;chasing&amp;quot; - the bot will attack an anemy bot or player&lt;br /&gt;
&lt;br /&gt;
'''Gamemode/Script integration:'''&lt;br /&gt;
This script provides several functions and events to allow other resources to see and control what the bot's are doing, and even take control of certain behaviour.&lt;br /&gt;
&lt;br /&gt;
'''EDF for map path creation:'''&lt;br /&gt;
Integrated into the map editor, map designers can easily place paths for bots to follow along in their maps. this greatly increased the bots ability to simulate true playing.&lt;br /&gt;
&lt;br /&gt;
=Server Events=&lt;br /&gt;
&lt;br /&gt;
==onBotFindEnemy==&lt;br /&gt;
This triggers when a bot locates an enemy, This event can be cancelled to prevent the bot from chasing players&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Parameters'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element enemy&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''enemy''': The Player or Ped the bot has spotted&lt;br /&gt;
&amp;lt;big&amp;gt;'''Source'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The [[event system#Event source|source]] of this event is the Bot that has found an enemy&lt;br /&gt;
&lt;br /&gt;
==onBotWasted==&lt;br /&gt;
This triggers when a bot is killed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Parameters'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element attacker, float weapon, float bodypart&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''attacker''': The Element that killed the bot&lt;br /&gt;
*'''weapon''': The weapon id used to kill the bot&lt;br /&gt;
*'''bodypart''': The bodypart id that was hit to kill the bot&lt;br /&gt;
&amp;lt;big&amp;gt;'''Source'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The [[event system#Event source|source]] of this event is the Bot that died&lt;br /&gt;
&lt;br /&gt;
==onBotSpawned==&lt;br /&gt;
This triggers when a bot is spawned.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Source'''&amp;lt;/big&amp;gt;&lt;br /&gt;
The [[event system#Event source|source]] of this event is the Bot that spawned&lt;br /&gt;
&lt;br /&gt;
==onBotFollow==&lt;br /&gt;
This triggers when a bot starts following a teammate&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Parameters'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element leader&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''leader''': The Player or Ped the bot has started following&lt;br /&gt;
&amp;lt;big&amp;gt;'''Source'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The [[event system#Event source|source]] of this event is the Bot that starts following a teammate&lt;br /&gt;
&lt;br /&gt;
=Server Functions=&lt;br /&gt;
All of these funtions will have to be used through the [[call]] function, otherwise they won't work&lt;br /&gt;
&lt;br /&gt;
==spawnBot==&lt;br /&gt;
This function spawns a bot ingame, will return the bot element, or false if there was a problem.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element spawnBot ( float x, float y, float z, int rotation = 0, [ int skinID = 0, int interior = 0, int dimension = 0, team theTeam = nil, int weapon = 0, string theMode = &amp;quot;hunting&amp;quot;, element theModesubject = nil ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''x:''' The x co-ordinate to spawn the bot at&lt;br /&gt;
*'''y:''' The y co-ordinate to spawn the bot at&lt;br /&gt;
*'''z:''' The z co-ordinate to spawn the bot at&lt;br /&gt;
*'''rotation:''' Rotation of the bot on spawn&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Optional Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''skinID:''' Bots skin on spawn&lt;br /&gt;
*'''interior:''' Interior the bot will spawn into&lt;br /&gt;
*'''dimension:''' The ID of the [[dimension]] that the bot should be in&lt;br /&gt;
*'''theTeam:''' The team the bot will join&lt;br /&gt;
*'''weapon:''' The weapon the ped will carry&lt;br /&gt;
*'''theMode:''' The action the bot will be performing when spawned (see &amp;quot;modes of playing&amp;quot; above)&lt;br /&gt;
*'''theModeSubject:''' If theMode is &amp;quot;chasing&amp;quot; or &amp;quot;following&amp;quot; this arg is needed to tell the bot what opponent to chase or teammate to follow&lt;br /&gt;
&lt;br /&gt;
==setBotHunt==&lt;br /&gt;
makes the bot travel pathways untill finding an enemy or teammate&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setBotHunt ( element theBot )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot you want to hunt&lt;br /&gt;
&lt;br /&gt;
==setBotWait==&lt;br /&gt;
makes the bot stand still untill an enemy of teammate comes into view&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setBotWait ( element theBot )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot you want to wait&lt;br /&gt;
&lt;br /&gt;
==setBotChase==&lt;br /&gt;
makes the bot attack an anemy bot or player&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setBotChase ( element theBot, element theTarget )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot that you want to do the chasing&lt;br /&gt;
*'''theTarget:''' The bot or player you want to be chased&lt;br /&gt;
&lt;br /&gt;
==setBotFollow==&lt;br /&gt;
makes the bot follow a teammate bot or player&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setBotFollow( element theBot, element theTarget )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot that you want to do the following&lt;br /&gt;
*'''theTarget:''' The bot or player you want to be followed&lt;br /&gt;
&lt;br /&gt;
==setBotGuard==&lt;br /&gt;
makes the bot move to the specific coords and stay there while attacking any enemies&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setBotGuard( element theBot, float x, float y, float z, [ bool priority = false ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot you want to do the guarding&lt;br /&gt;
*'''x:''' The X coords you want the bot to guard&lt;br /&gt;
*'''y:''' The Y coords you want the bot to guard&lt;br /&gt;
*'''z:''' The Z coords you want the bot to guard&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Optional Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''priority:''' Set to true only if you want the bot to only shoot once it has reached the location to guard&lt;br /&gt;
&lt;br /&gt;
==getBotTeam==&lt;br /&gt;
returns the Team the bot is on, false if no team&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getBotTeam ( element theBot)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot you want to check the team of&lt;br /&gt;
&lt;br /&gt;
==setBotTeam==&lt;br /&gt;
changes the bot's team and loyalties&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setBotTeam ( element theBot, team theTeam )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot you want to change the team of&lt;br /&gt;
*'''theTeam:''' The team the bot should join&lt;br /&gt;
&lt;br /&gt;
==getBotAttackEnabled==&lt;br /&gt;
returns true if the bot is allowed to attack, false otherwise&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool getBotAttackEnabled( element theBot)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot you want to check if it can atack&lt;br /&gt;
&lt;br /&gt;
==setBotAttackEnabled==&lt;br /&gt;
allow or disallow the bot to attack (press fire)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setBotAttackEnabled( element theBot, bool enabled)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot you want to set if it can atack&lt;br /&gt;
*'''enabled:''' set to false to remove the bots ability to attack, true to allow it&lt;br /&gt;
&lt;br /&gt;
==getBotMode==&lt;br /&gt;
returns the mode the bot is in (&amp;quot;chasing&amp;quot;, &amp;quot;waiting&amp;quot;, &amp;quot;guarding&amp;quot;, &amp;quot;hunting&amp;quot;, &amp;quot;following&amp;quot;) or if the bot is chasing or following, it will return the mode and the target&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getBotMode( element theBot)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot you want to check the status of&lt;br /&gt;
&lt;br /&gt;
==isPedBot==&lt;br /&gt;
returns true if the ped is a bot, false otherwise&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool ispedbot( element thePed)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''thePed:''' The ped you want to check if its a bot&lt;br /&gt;
&lt;br /&gt;
==setBotWeapon==&lt;br /&gt;
sets the bot's weapon id (ammo is always infinite)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setBotWeapon( element theBot, float weapon)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot you want to set the weapon of&lt;br /&gt;
*'''weapon:''' the weapon id you want to give the bot&lt;br /&gt;
&lt;br /&gt;
=Credits=&lt;br /&gt;
*'''Slothman:''' Bot creator, main scripter&lt;br /&gt;
*'''Gamesnert:''' EDF creator, scripting, testing&lt;br /&gt;
*'''Dragon:''' Gamemode creator, testing, scripting help&lt;br /&gt;
*'''EvGeniz:''' early testing, mapping&lt;br /&gt;
'''Thanks to Everyone else who made suggestions, tested the script, helped when i was stuck, etc'''&lt;/div&gt;</summary>
		<author><name>Tjong Tjong</name></author>
	</entry>
</feed>