<?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=Jflm</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=Jflm"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Jflm"/>
	<updated>2026-04-24T16:23:30Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=IsTransferBoxActive&amp;diff=16609</id>
		<title>IsTransferBoxActive</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=IsTransferBoxActive&amp;diff=16609"/>
		<updated>2008-04-25T20:48:49Z</updated>

		<summary type="html">&lt;p&gt;Jflm: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
This function returns whether the transferbox is visible or not.&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 isTransferBoxActive ()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the transferbox is visible, ''false'' if not.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This will camera fade in, when resource transfere will be finished.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
resourceRoot = getResourceRootElement(getThisResource())&lt;br /&gt;
function checkTransfer()&lt;br /&gt;
	if isTransferBoxActive() == true then&lt;br /&gt;
		setTimer(checkTransfer,2000,1) -- Check again after 2 seconds&lt;br /&gt;
	else &lt;br /&gt;
		fadeCamera(true)  -- TransferBox isnt active, fade in camera&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onClientResourceStart&amp;quot;,resourceRoot,checkTransfer)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{GUI_functions}}&lt;/div&gt;</summary>
		<author><name>Jflm</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Getting_MTA:SA_to_work_with_wine&amp;diff=16555</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=16555"/>
		<updated>2008-04-13T00:06:35Z</updated>

		<summary type="html">&lt;p&gt;Jflm: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;You will need the latest version of Wine to get the installer working.&lt;br /&gt;
&lt;br /&gt;
Install MTA:SA:DM, it does not matter wherever you install MTA, and the GTA:SA path.&lt;br /&gt;
&lt;br /&gt;
You will need the version of Wine greater than 0.9.49 to run MTA:SA:DM.&lt;br /&gt;
&lt;br /&gt;
Once you installed it, download this [http://mtabeta.com/mtasadm_unix.zip &amp;quot;hack&amp;quot;] by Tweak, and extract it to your GTA:SA directory.&lt;br /&gt;
&lt;br /&gt;
Download the fonts [http://www.afosteo.org/Download/Fonts/verdana.ttf verdana], [http://www.bikeparadise.cz/jpgraph/ttf/tahoma.ttf tahoma] and [http://www.bikeparadise.cz/jpgraph/ttf/tahomabd.ttf tahomabd] needed by CEGUI, and place them in $HOME/.wine/drive_c/windows/fonts/&lt;br /&gt;
&lt;br /&gt;
Open &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;winecfg&amp;lt;/syntaxhighlight&amp;gt;, go to the graphics tab, and uncheck &amp;quot;Allow Pixel Shader&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Remove in your GTA:SA directory MTA/data/menu.mkv&lt;br /&gt;
&lt;br /&gt;
Paste [http://pastebin.com/f4c91e22b this] in MTA/coreconfig.xml (menu_options must be always 7).&lt;br /&gt;
&lt;br /&gt;
Run MTA_SA_unix.exe&lt;/div&gt;</summary>
		<author><name>Jflm</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Getting_MTA:SA_to_work_with_wine&amp;diff=16470</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=16470"/>
		<updated>2008-04-01T11:52:06Z</updated>

		<summary type="html">&lt;p&gt;Jflm: New page: You will need the latest version of Wine to get the installer working.  Install MTA:SA:DM, it does not matter wherever you install MTA, and the GTA:SA path.  You will need the version of W...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;You will need the latest version of Wine to get the installer working.&lt;br /&gt;
&lt;br /&gt;
Install MTA:SA:DM, it does not matter wherever you install MTA, and the GTA:SA path.&lt;br /&gt;
&lt;br /&gt;
You will need the version of Wine greater than 0.9.49 to run MTA:SA:DM.&lt;br /&gt;
&lt;br /&gt;
Once you installed it, download this [http://mtabeta.com/mtasadm_unix.zip &amp;quot;hack&amp;quot;] by Tweak, and extract it to your GTA:SA directory.&lt;br /&gt;
&lt;br /&gt;
Download the fonts [http://www.afosteo.org/Download/Fonts/verdana.ttf verdana], [http://www.bikeparadise.cz/jpgraph/ttf/tahoma.ttf tahoma] and [http://www.bikeparadise.cz/jpgraph/ttf/tahomabd.ttf tahomabd] needed by CEGUI, and place them in $HOME/.wine/drive_c/windows/fonts/&lt;br /&gt;
&lt;br /&gt;
Open &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;winecfg&amp;lt;/syntaxhighlight&amp;gt;, go to the graphics tab, and uncheck &amp;quot;Allow Pixel Shader&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Remove in your GTA:SA directory, MTA/coreconfig.xml and MTA/data/menu.mkv&lt;br /&gt;
&lt;br /&gt;
Run MTA_SA_unix.exe&lt;/div&gt;</summary>
		<author><name>Jflm</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetVehicleGunsEnabled&amp;diff=15608</id>
		<title>SetVehicleGunsEnabled</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetVehicleGunsEnabled&amp;diff=15608"/>
		<updated>2008-01-28T12:42:09Z</updated>

		<summary type="html">&lt;p&gt;Jflm: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function enables or disables the weapons on a vehicle&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setVehicleGunsEnabled ( vehicle theVehicle, bool gunsEnabled )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''theVehicle''': The [[element]] representing the [[vehicle]] whose guns you want to toggle.&lt;br /&gt;
*'''gunsEnabled''': A bool representing whether guns are enabled or disabled.  ''false'' will disable them, ''true'' will enable them.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the guns were toggled succesfully, ''false'' if arguments passed were invalid.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example 1&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This function will disables the ability to fire rockets on a hydra.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function disableFireForHydra ( theVehicle, seat, jacked )&lt;br /&gt;
    if ( getVehicleID ( theVehicle ) == 520 ) then -- if they entered a hydra&lt;br /&gt;
        setVehicleGunsEnabled ( theVehicle, false ) -- disable their guns&lt;br /&gt;
    else -- if they entered another vehicle&lt;br /&gt;
        setVehicleGunsEnabled ( theVehicle, true ) -- enable their guns&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerVehicleEnter&amp;quot;, getRootElement(), disableFireForHydra )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example 2&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
This function will disables the ability to fire rockets on a hydra.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function disableFireForHydra ( theVehicle, seat )&lt;br /&gt;
    if ( getVehicleID ( theVehicle ) == 520 ) then -- if they entered a hydra&lt;br /&gt;
        setVehicleGunsEnabled ( theVehicle, false ) -- disable their guns&lt;br /&gt;
    else -- if they entered another vehicle&lt;br /&gt;
        setVehicleGunsEnabled ( theVehicle, true ) -- enable their guns&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onClientPlayerEnterVehicle&amp;quot;, getLocalPlayer(), disableFireForHydra )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Vehicle functions}}&lt;/div&gt;</summary>
		<author><name>Jflm</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=ToggleControl&amp;diff=15607</id>
		<title>ToggleControl</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=ToggleControl&amp;diff=15607"/>
		<updated>2008-01-28T12:41:56Z</updated>

		<summary type="html">&lt;p&gt;Jflm: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
Enables or disables the use of a GTA control for a specific player.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool toggleControl ( player thePlayer, string control, bool enabled ) &amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''thePlayer:''' The player you wish to toggle the control ability of.&lt;br /&gt;
*'''control:''' The control that you want to toggle the ability of. See [[control names]] for a list of possible controls.&lt;br /&gt;
*'''enable:''' A boolean value representing whether or not the key will be usable or not.&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool toggleControl ( string control, bool enabled ) &amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''control:''' The control that you want to toggle the ability of. See [[control names]] for a list of possible controls.&lt;br /&gt;
*'''enable:''' A boolean value representing whether or not the key will be usable or not.&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Returns==&lt;br /&gt;
This function ''true'' if the control was set successfully, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==  &lt;br /&gt;
&amp;lt;section name=&amp;quot;Example 1&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This function will disable the use of the vehicle secondary-fire key for anyone in a Hydra, consequently removing the ability to fire rockets.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function disableFireForHydra ( theVehicle, seat, jacked )&lt;br /&gt;
    if ( getVehicleID ( theVehicle ) == 520 ) then -- if they entered a hydra&lt;br /&gt;
        toggleControl ( source, &amp;quot;vehicle_secondary_fire&amp;quot;, false ) -- disable their fire key&lt;br /&gt;
    else -- if they entered another vehicle&lt;br /&gt;
        toggleControl ( source, &amp;quot;vehicle_secondary_fire&amp;quot;, true ) -- enable their fire key&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onPlayerVehicleEnter&amp;quot;, getRootElement(), disableFireForHydra )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
''Note: The same can be achieved by using [[setVehicleGunsEnabled]]''.&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example 2&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
This function will disable the use of the vehicle secondary-fire key for anyone in a Hydra, consequently removing the ability to fire rockets.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function disableFireForHydra ( theVehicle, seat )&lt;br /&gt;
    if ( getVehicleID ( theVehicle ) == 520 ) then -- if they entered a hydra&lt;br /&gt;
        toggleControl ( &amp;quot;vehicle_secondary_fire&amp;quot;, false ) -- disable their fire key&lt;br /&gt;
    else -- if they entered another vehicle&lt;br /&gt;
        toggleControl ( &amp;quot;vehicle_secondary_fire&amp;quot;, true ) -- enable their fire key&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onClientPlayerEnterVehicle&amp;quot;, getLocalPlayer(), disableFireForHydra )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
''Note: The same can be achieved by using [[setVehicleGunsEnabled]]''.&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Input functions}}&lt;/div&gt;</summary>
		<author><name>Jflm</name></author>
	</entry>
</feed>