<?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=Bass</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=Bass"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Bass"/>
	<updated>2026-04-22T14:13:20Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnClientKey&amp;diff=35604</id>
		<title>OnClientKey</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnClientKey&amp;diff=35604"/>
		<updated>2013-04-28T10:50:58Z</updated>

		<summary type="html">&lt;p&gt;Bass: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client event}}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This event triggers whenever the user presses a button on their keyboard.&lt;br /&gt;
This event can also be used to see if the client scrolls his mousewheel.&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;string button, bool pressOrRelease&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
* '''button''':  This refers the button pressed.&lt;br /&gt;
* '''pressOrRelease''': This refers to whether they were pressing or releasing the key, true when pressing, false when releasing.&lt;br /&gt;
==Source==&lt;br /&gt;
The [[event system#Event source|source]] of this event is the client's [[root element]].&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example will say in chatbox every time the user presses down a a key.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function playerPressedKey(button, press)&lt;br /&gt;
    if (press) then -- Only output when they press it down&lt;br /&gt;
        outputChatBox(&amp;quot;You pressed the &amp;quot;..button..&amp;quot; key!&amp;quot;)&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onClientKey&amp;quot;, root, playerPressedKey)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This example outputs if the client moves his mousewheel.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler( &amp;quot;onClientKey&amp;quot;, root, function(button,press) &lt;br /&gt;
    -- Since mouse_wheel_up and mouse_wheel_down cant return a release, we dont have to check the press.&lt;br /&gt;
    if button == &amp;quot;mouse_wheel_up&amp;quot; or button == &amp;quot;mouse_wheel_down&amp;quot; then&lt;br /&gt;
        outputDebugString( button .. &amp;quot; moved.&amp;quot; )&lt;br /&gt;
        return true&lt;br /&gt;
    end&lt;br /&gt;
    return false&lt;br /&gt;
end )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
===GUI events===&lt;br /&gt;
{{GUI_events}}&lt;br /&gt;
===Client event functions===&lt;br /&gt;
{{Client_event_functions}}&lt;/div&gt;</summary>
		<author><name>Bass</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=IsControlEnabled&amp;diff=35261</id>
		<title>IsControlEnabled</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=IsControlEnabled&amp;diff=35261"/>
		<updated>2013-04-01T19:54:06Z</updated>

		<summary type="html">&lt;p&gt;Bass: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
Checks whether a GTA control is enabled or disabled for a certain 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;&lt;br /&gt;
bool isControlEnabled ( player thePlayer, string control )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''thePlayer:''' The player you wish the control status of.&lt;br /&gt;
*'''control:''' The control you wish to check. See [[control names]] for a list of possible controls.&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&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 isControlEnabled ( string control ) &amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''control:''' The control you wish to check. See [[control names]] for a list of possible controls.&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if control is enabled, ''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 example uses a command handler to allow a player to toggle whether he can use vehicle weapons by disabling or enabling the primary and secondary vehicle fire keys. The command handler is trigged with 'toggleweapons'&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;function changeWeaponControls ( player, commandName )&lt;br /&gt;
	--Check to see if the player can use primary/secondary vehicle fire controls&lt;br /&gt;
        primaryWeaponControl = isControlEnabled ( player, &amp;quot;vehicle_fire&amp;quot; )&lt;br /&gt;
        secondaryWeaponControl = isControlEnabled ( player, &amp;quot;vehicle_secondary_fire&amp;quot; )&lt;br /&gt;
	--Toggle the use of the primary vehicle fire control ability.&lt;br /&gt;
        if ( primaryWeaponControl == true ) then&lt;br /&gt;
             toggleControl ( player, &amp;quot;vehicle_fire&amp;quot;, false )&lt;br /&gt;
    	     outputChatBox ( &amp;quot;Disabled your ability to use primary vehicle weapons.&amp;quot; )&lt;br /&gt;
        else&lt;br /&gt;
             toggleControl ( player, &amp;quot;vehicle_fire&amp;quot;, true )&lt;br /&gt;
    	     outputChatBox ( &amp;quot;Enabled your ability to use primary vehicle weapons.&amp;quot; )&lt;br /&gt;
        end&lt;br /&gt;
        --Toggle the use of the secondar vehicle fire control ability.&lt;br /&gt;
        if ( secondaryWeaponControl == true ) then&lt;br /&gt;
             toggleControl ( player, &amp;quot;vehicle_secondary_fire&amp;quot;, false )&lt;br /&gt;
    	     outputChatBox ( &amp;quot;Disabled your ability to use secondary vehicle weapons.&amp;quot; )&lt;br /&gt;
        else&lt;br /&gt;
             toggleControl ( player, &amp;quot;vehicle_secondary_fire&amp;quot;, true )&lt;br /&gt;
    	     outputChatBox ( &amp;quot;Enabled your ability to use secondary vehicle weapons.&amp;quot; )&lt;br /&gt;
        end&lt;br /&gt;
end  &lt;br /&gt;
addCommandHandler ( &amp;quot;toggleweapons&amp;quot;, changeWeaponControls )&amp;lt;/syntaxhighlight&amp;gt;&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>Bass</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=String.split&amp;diff=34459</id>
		<title>String.split</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=String.split&amp;diff=34459"/>
		<updated>2013-01-11T22:00:44Z</updated>

		<summary type="html">&lt;p&gt;Bass: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&lt;br /&gt;
&amp;lt;lowercasetitle&amp;gt;&amp;lt;/lowercasetitle&amp;gt;&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function splits a string into a table. There is no separator in this function, so all characters will be split no matter what.&amp;lt;br/&amp;gt;&lt;br /&gt;
If you are looking for a function to split a string from a separator, you should look at [[split]].&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;table string.split( string str )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
* '''str''': The string to split.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a table containing the pieces of the split string.&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server- and/or clientside Script&amp;quot; class=&amp;quot;both&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function string.split(str)&lt;br /&gt;
&lt;br /&gt;
   if not str or type(str) ~= &amp;quot;string&amp;quot; then return false end&lt;br /&gt;
&lt;br /&gt;
   local splitStr = {}&lt;br /&gt;
   for i=1,string.len(str) do&lt;br /&gt;
      local char = str:sub( i, i )&lt;br /&gt;
      table.insert( splitStr , char )&lt;br /&gt;
   end&lt;br /&gt;
&lt;br /&gt;
   return splitStr &lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This example splits the string &amp;quot;test string&amp;quot; into a table.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local splitStr = string.split( &amp;quot;test string&amp;quot; )&lt;br /&gt;
outputDebugString( splitStr[1] ) -- &amp;gt;&amp;gt; &amp;quot;t&amp;quot;&lt;br /&gt;
outputDebugString( splitStr[2] ) -- &amp;gt;&amp;gt; &amp;quot;e&amp;quot;&lt;br /&gt;
outputDebugString( splitStr[3] ) -- &amp;gt;&amp;gt; &amp;quot;s&amp;quot;&lt;br /&gt;
outputDebugString( splitStr[4] ) -- &amp;gt;&amp;gt; &amp;quot;t&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Author: Wafamde&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Useful_Functions}}&lt;/div&gt;</summary>
		<author><name>Bass</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=String.split&amp;diff=34416</id>
		<title>String.split</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=String.split&amp;diff=34416"/>
		<updated>2013-01-07T17:01:10Z</updated>

		<summary type="html">&lt;p&gt;Bass: Created page with &amp;quot;{{Useful Function}} &amp;lt;lowercasetitle&amp;gt;&amp;lt;/lowercasetitle&amp;gt; __NOTOC__ This function splits a string into a table. There is no separator in this function, so all characters will be spli...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&lt;br /&gt;
&amp;lt;lowercasetitle&amp;gt;&amp;lt;/lowercasetitle&amp;gt;&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function splits a string into a table. There is no separator in this function, so all characters will be split no matter what.&amp;lt;br/&amp;gt;&lt;br /&gt;
If you are looking for a function to split a string from a separator, you should look at [[split]].&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;table string.split( string str )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
* '''str''': The string to split.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a table containing the pieces of the split string.&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
{{RequiredFunctions|Check}}&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server- and/or clientside Script&amp;quot; class=&amp;quot;both&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function string.split(str)&lt;br /&gt;
&lt;br /&gt;
   if not str or type(str) ~= &amp;quot;string&amp;quot; then return false end&lt;br /&gt;
&lt;br /&gt;
   local splitStr = {}&lt;br /&gt;
   for i=1,string.len(str) do&lt;br /&gt;
      local char = str:sub( i, i )&lt;br /&gt;
      table.insert( splitStr , char )&lt;br /&gt;
   end&lt;br /&gt;
&lt;br /&gt;
   return splitStr &lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This example splits the string &amp;quot;test string&amp;quot; into a table.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local splitStr = string.split( &amp;quot;test string&amp;quot; )&lt;br /&gt;
outputDebugString( splitStr[1] ) -- &amp;gt;&amp;gt; &amp;quot;t&amp;quot;&lt;br /&gt;
outputDebugString( splitStr[2] ) -- &amp;gt;&amp;gt; &amp;quot;e&amp;quot;&lt;br /&gt;
outputDebugString( splitStr[3] ) -- &amp;gt;&amp;gt; &amp;quot;s&amp;quot;&lt;br /&gt;
outputDebugString( splitStr[4] ) -- &amp;gt;&amp;gt; &amp;quot;t&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Author: Wafamde&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Useful_Functions}}&lt;/div&gt;</summary>
		<author><name>Bass</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Talk:Math.neg&amp;diff=34373</id>
		<title>Talk:Math.neg</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Talk:Math.neg&amp;diff=34373"/>
		<updated>2013-01-02T00:30:51Z</updated>

		<summary type="html">&lt;p&gt;Bass: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;How is this necessary at all when if you want to make a number negative you do &amp;quot;-variable&amp;quot; you don't need a strange function.&amp;lt;br/&amp;gt;&lt;br /&gt;
.. What he said ^&lt;/div&gt;</summary>
		<author><name>Bass</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Talk:Math.neg&amp;diff=34372</id>
		<title>Talk:Math.neg</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Talk:Math.neg&amp;diff=34372"/>
		<updated>2013-01-02T00:30:37Z</updated>

		<summary type="html">&lt;p&gt;Bass: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;How is this necessary at all when if you want to make a number negative you do &amp;quot;-variable&amp;quot; you don't need a strange function.&lt;br /&gt;
.. What he said ^&lt;/div&gt;</summary>
		<author><name>Bass</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GuiEditSetCaretIndex&amp;diff=34330</id>
		<title>GuiEditSetCaretIndex</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GuiEditSetCaretIndex&amp;diff=34330"/>
		<updated>2012-12-24T21:23:14Z</updated>

		<summary type="html">&lt;p&gt;Bass: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
This function sets the current position of the caret (the text cursor) within the edit box.&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 guiEditSetCaretIndex ( element theElement, int index )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theElement:''' The edit box to be changed.&lt;br /&gt;
*'''index:''' An integer referring to the desired position within the box.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the index was successfully set, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example makes the text cursor jump to the end of an edit box if the user is holding the Left Control button. &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function moveToEndOnClick()&lt;br /&gt;
	if ( getKeyState ( &amp;quot;lctrl&amp;quot; ) == true ) and ( getElementType(source) == &amp;quot;gui-edit&amp;quot; ) then          -- if the user is holding down left control&lt;br /&gt;
		local text = guiGetText ( source )&lt;br /&gt;
		local textLength = string.len ( text )&lt;br /&gt;
		guiEditSetCaretIndex ( source, textLength )  -- set the caret index. No need to check if the clicked control is actually an edit box as this function won't work on other controls anyway&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addEventHandler ( &amp;quot;onClientGUIClick&amp;quot;, getRootElement(), moveToEndOnClick )    -- add an event handler for clicks&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>Bass</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetPedOxygenLevel&amp;diff=34159</id>
		<title>SetPedOxygenLevel</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetPedOxygenLevel&amp;diff=34159"/>
		<updated>2012-11-25T16:49:29Z</updated>

		<summary type="html">&lt;p&gt;Bass: /* Required Arguments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client function}}&lt;br /&gt;
This function allows you to set the oxygen level of a [[ped]].&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool setPedOxygenLevel ( ped thePed, float oxygen )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''thePed''': the [[ped]] whose oxygen level you want to modify.&lt;br /&gt;
*'''oxygen''': the amount of oxygen you want to set on the ped. Native values are from 0 to 1000 (At the maximum value of UNDERWATER_STAMINA full oxygen level is 2500. Higher values do not appear in the HUD).&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the oxygen level was changed succesfully. Returns ''false'' if an invalid ped and/or oxygen level was specified.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
This example fills the local player's oxygen.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function fillOxygen ( command )&lt;br /&gt;
	local maxOxygen = getPedStat ( localPlayer, 225 ) * 1.502 + 1750&lt;br /&gt;
	setPedOxygenLevel ( localPlayer, maxOxygen )&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;filloxygen&amp;quot;, fillOxygen )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client_ped_functions}}&lt;/div&gt;</summary>
		<author><name>Bass</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxDrawImage&amp;diff=34113</id>
		<title>DxDrawImage</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxDrawImage&amp;diff=34113"/>
		<updated>2012-11-10T13:44:20Z</updated>

		<summary type="html">&lt;p&gt;Bass: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}} &lt;br /&gt;
&lt;br /&gt;
Draws an image on the screen for a single frame. In order for the image to stay visible continuously, you need to call this function with the same parameters on each frame update (see [[onClientRender]]).&amp;lt;br/&amp;gt;&lt;br /&gt;
Image files should ideally have dimensions that are a power of two, to prevent possible blurring.&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;Power of two: 2px, 4px, 8px, 16px, 32px, 64px, 128px, 256px, 512px, 1024px...&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool dxDrawImage ( float posX, float posY, float width, float height, mixed image [, float rotation = 0, float rotationCenterOffsetX = 0, &lt;br /&gt;
float rotationCenterOffsetY = 0, int color = white, bool postGUI = false ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''posX:''' the absolute X coordinate of the top left corner of the image&lt;br /&gt;
*'''posY:''' the absolute Y coordinate of the top left corner of the image&lt;br /&gt;
*'''width:''' the absolute width of the image&lt;br /&gt;
*'''height:''' the absolute height of the image&lt;br /&gt;
*'''image:''' Either a [[material]] element or a [[filepath]] of the image which is going to be drawn. (.dds images are also supported). Image files should ideally have dimensions that are a power of two, to prevent possible blurring.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
*'''rotation:''' the rotation, in degrees for the image.&lt;br /&gt;
*'''rotationCenterOffsetX:''' the absolute X offset from the image center for which to rotate the image from.&lt;br /&gt;
*'''rotationCenterOffsetY:''' the absolute Y offset from the image center for which to rotate the image from.&lt;br /&gt;
*'''color:''' Tints the image with a value produced by [[tocolor]] or hexadecimal number in format: 0xAARRGGBB (AA = alpha, RR = red, GG = green, BB = blue).&lt;br /&gt;
*'''postgui :''' A bool representing whether the image should be drawn on top of or behind any ingame GUI (rendered by CEGUI).&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if successful, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
Example of a pendulum swinging from the top of the screen, made using dxDrawImage.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local screenWidth,screenHeight = guiGetScreenSize()  -- Get screen resolution.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
function renderDisplay ( )&lt;br /&gt;
	local seconds = getTickCount() / 1000&lt;br /&gt;
	local angle = math.sin(seconds) * 80&lt;br /&gt;
	-- This will draw the graphic file 'arrow.png' at the top middle of the screen&lt;br /&gt;
	-- using the size of 100 pixels wide, and 240 pixels high.&lt;br /&gt;
	-- The center of rotation is at the top of the image.&lt;br /&gt;
	dxDrawImage ( screenWidth/2 - 50, 0, 100, 240, 'arrow.png', angle, 0, -120 )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
function HandleTheRendering ( )&lt;br /&gt;
	addEventHandler(&amp;quot;onClientRender&amp;quot;, getRootElement(), renderDisplay)  -- Keep everything visible with onClientRender.&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onClientResourceStart&amp;quot;,resourceRoot, HandleTheRendering)&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;
{{Drawing_functions}}&lt;/div&gt;</summary>
		<author><name>Bass</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetElementID&amp;diff=31886</id>
		<title>SetElementID</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetElementID&amp;diff=31886"/>
		<updated>2012-07-13T20:34:18Z</updated>

		<summary type="html">&lt;p&gt;Bass: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server client function}} &lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This function sets the ID of an element to a string. This can be anything from an identifying number, to a name.&lt;br /&gt;
You can only change the ID of an element clientside if that element has been created clientside as well.&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setElementID ( element theElement, string name ) &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theElement:''' The [[element]] you want to set the ID of.&lt;br /&gt;
*'''name:''' The new ID for theElement.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
This returns ''true'' if successful. It will return ''false'' if '''theElement''' is invalid, or does not exist, or if '''name''' is invalid, or is not a string.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local players = getElementsByType( &amp;quot;player&amp;quot; )&lt;br /&gt;
 &lt;br /&gt;
for i=1,#players do&lt;br /&gt;
   setElementID( players[i], &amp;quot;player&amp;quot; .. i )	-- Change element IDs to 'player1', 'players2', 'players3'...&lt;br /&gt;
   outputDebugString( &amp;quot;Player[&amp;quot; .. i .. &amp;quot;] = &amp;quot; .. getElementID( players[i] ) ) -- Output all the new element IDs&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Could also be --&lt;br /&gt;
&lt;br /&gt;
for i=1,#players do&lt;br /&gt;
   setElementID( players[i], getPlayerName( players[i] ) )	-- Change the element ID to the players name.&lt;br /&gt;
   outputDebugString( &amp;quot;Player[&amp;quot; .. i .. &amp;quot;] = &amp;quot; .. getElementID( players[i] ) )&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;br /&gt;
&lt;br /&gt;
[[Category:Needs Example]]&lt;/div&gt;</summary>
		<author><name>Bass</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetElementID&amp;diff=31885</id>
		<title>SetElementID</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetElementID&amp;diff=31885"/>
		<updated>2012-07-13T20:17:00Z</updated>

		<summary type="html">&lt;p&gt;Bass: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server client function}} &lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This function sets the ID of an element to a string. This can be anything from an identifying number, to a name.&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 setElementID ( element theElement, string name ) &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theElement:''' The [[element]] you want to set the ID of.&lt;br /&gt;
*'''name:''' The new ID for theElement.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
This returns ''true'' if successful. It will return ''false'' if '''theElement''' is invalid, or does not exist, or if '''name''' is invalid, or is not a string.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local players = getElementsByType( &amp;quot;player&amp;quot; )&lt;br /&gt;
 &lt;br /&gt;
for i=1,#players do&lt;br /&gt;
   setElementID( players[i], &amp;quot;player&amp;quot; .. i )	-- Change element IDs to 'player1', 'players2', 'players3'...&lt;br /&gt;
   outputDebugString( &amp;quot;Player[&amp;quot; .. i .. &amp;quot;] = &amp;quot; .. getElementID( players[i] ) ) -- Output all the new element IDs&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Could also be --&lt;br /&gt;
&lt;br /&gt;
for i=1,#players do&lt;br /&gt;
   setElementID( players[i], getPlayerName( players[i] ) )	-- Change the element ID to the players name.&lt;br /&gt;
   outputDebugString( &amp;quot;Player[&amp;quot; .. i .. &amp;quot;] = &amp;quot; .. getElementID( players[i] ) )&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;br /&gt;
&lt;br /&gt;
[[Category:Needs Example]]&lt;/div&gt;</summary>
		<author><name>Bass</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetElementID&amp;diff=31884</id>
		<title>SetElementID</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetElementID&amp;diff=31884"/>
		<updated>2012-07-13T19:58:12Z</updated>

		<summary type="html">&lt;p&gt;Bass: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server client function}} &lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This function sets the ID of an element to a string. This can be anything from an identifying number, to a name.&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 setElementID ( element theElement, string name ) &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theElement:''' The [[element]] you want to set the ID of.&lt;br /&gt;
*'''name:''' The new ID for theElement.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
This returns ''true'' if successful. It will return ''false'' if '''theElement''' is invalid, or does not exist, or if '''name''' is invalid, or is not a string.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local players = getElementsByType( &amp;quot;player&amp;quot; )&lt;br /&gt;
 &lt;br /&gt;
for i=1,#players do&lt;br /&gt;
   setElementID( players[i], &amp;quot;player&amp;quot; .. tostring(i) )	-- Change element IDs to 'player1', 'players2', 'players3'...&lt;br /&gt;
   outputDebugString( &amp;quot;Player[&amp;quot; .. i .. &amp;quot;] = &amp;quot; .. getElementID( players[i] ) ) -- Output all the new element IDs&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Could also be --&lt;br /&gt;
&lt;br /&gt;
for i=1,#players do&lt;br /&gt;
   setElementID( players[i], getPlayerName( players[i] ) )	-- Change the element ID to the players name.&lt;br /&gt;
   outputDebugString( &amp;quot;Player[&amp;quot; .. i .. &amp;quot;] = &amp;quot; .. getElementID( players[i] ) )&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;br /&gt;
&lt;br /&gt;
[[Category:Needs Example]]&lt;/div&gt;</summary>
		<author><name>Bass</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetElementID&amp;diff=31883</id>
		<title>SetElementID</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetElementID&amp;diff=31883"/>
		<updated>2012-07-13T19:52:21Z</updated>

		<summary type="html">&lt;p&gt;Bass: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server client function}} &lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This function sets the ID of an element to a string. This can be anything from an identifying number, to a name.&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 setElementID ( element theElement, string name ) &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theElement:''' The [[element]] you want to set the ID of.&lt;br /&gt;
*'''name:''' The new ID for theElement.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
This returns ''true'' if successful. It will return ''false'' if '''theElement''' is invalid, or does not exist, or if '''name''' is invalid, or is not a string.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local players = getElementsByType( &amp;quot;player&amp;quot; ) -- Get a table of all players.&lt;br /&gt;
&lt;br /&gt;
for i=1,#players do&lt;br /&gt;
   setElementID( players[i], &amp;quot;player&amp;quot; .. tostring(i) ) -- Loop the table and change the element IDs to 'player1', 'player2', 'player3'...&lt;br /&gt;
   outputDebugString( &amp;quot;Player[&amp;quot; .. i .. &amp;quot;] = &amp;quot; .. getElementID( players[i] ) ) -- Output the new element IDs to debugstring.&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;br /&gt;
&lt;br /&gt;
[[Category:Needs Example]]&lt;/div&gt;</summary>
		<author><name>Bass</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetElementID&amp;diff=31882</id>
		<title>SetElementID</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetElementID&amp;diff=31882"/>
		<updated>2012-07-13T19:45:37Z</updated>

		<summary type="html">&lt;p&gt;Bass: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server client function}} &lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This function sets the ID of an element to a string. This can be anything from an identifying number, to a name.&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 setElementID ( element theElement, string name ) &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theElement:''' The [[element]] you want to set the ID of.&lt;br /&gt;
*'''name:''' The new ID for theElement.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
This returns ''true'' if successful. It will return ''false'' if '''theElement''' is invalid, or does not exist, or if '''name''' is invalid, or is not a string.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local players = getElementsByType( &amp;quot;player&amp;quot; ) -- Get a table of all players.&lt;br /&gt;
&lt;br /&gt;
for i=1,#players do&lt;br /&gt;
   setElementID( players[i], &amp;quot;player&amp;quot; .. tostring(i) ) -- Loop the table and change the element IDs to 'player1', 'player2', 'player3'...&lt;br /&gt;
end&lt;br /&gt;
-- COULD ALSO BE --&lt;br /&gt;
for i=1,#players do&lt;br /&gt;
   setElementID( players[i], getPlayerName( players[i] ) -- This will change the element ID to the players name.&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
for i=1,#players do&lt;br /&gt;
   outputDebugString( &amp;quot;Player[&amp;quot; .. i .. &amp;quot;] = &amp;quot; .. getElementID( players[i] ) ) -- Output the new element IDs to debugstring.&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;br /&gt;
&lt;br /&gt;
[[Category:Needs Example]]&lt;/div&gt;</summary>
		<author><name>Bass</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetElementCollisionsEnabled&amp;diff=31881</id>
		<title>GetElementCollisionsEnabled</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetElementCollisionsEnabled&amp;diff=31881"/>
		<updated>2012-07-13T19:07:32Z</updated>

		<summary type="html">&lt;p&gt;Bass: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server client function}} &lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This function indicates if a specific element is set to have collisions disabled. An element without collisions does not interact with the physical environment and remains static.&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 getElementCollisionsEnabled ( element theElement ) &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theElement:''' The element for which you want to check whether collisions are enabled&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the collisions are enabled, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example check if there are any players with collisions disabled.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
for _,player in ipairs( getElementsByType( &amp;quot;player&amp;quot; ) ) do&lt;br /&gt;
   if not getElementCollisionsEnabled( player ) then -- If we get a false return from the function, we know that the collisions are disabled.&lt;br /&gt;
      outputConsole( &amp;quot;Player &amp;quot; .. getPlayerName( player ) .. &amp;quot; has collisions disabled.&amp;quot; ) &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>Bass</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:Bass&amp;diff=31880</id>
		<title>User:Bass</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:Bass&amp;diff=31880"/>
		<updated>2012-07-13T18:43:47Z</updated>

		<summary type="html">&lt;p&gt;Bass: Created page with &amp;quot;Its just me... Wafamde.&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Its just me... Wafamde.&lt;/div&gt;</summary>
		<author><name>Bass</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Engine_functions&amp;diff=31879</id>
		<title>Template:Engine functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Engine_functions&amp;diff=31879"/>
		<updated>2012-07-13T18:40:14Z</updated>

		<summary type="html">&lt;p&gt;Bass: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* [[engineImportTXD]]&lt;br /&gt;
* [[engineLoadCOL]]&lt;br /&gt;
* [[engineLoadDFF]]&lt;br /&gt;
* [[engineLoadTXD]]&lt;br /&gt;
* [[engineReplaceCOL]]&lt;br /&gt;
* [[engineReplaceModel]]&lt;br /&gt;
* [[engineRestoreCOL]]&lt;br /&gt;
* [[engineRestoreModel]]&lt;br /&gt;
* [[engineSetAsynchronousLoading]]&lt;br /&gt;
* [[engineSetModelLODDistance]]&lt;br /&gt;
* [[engineApplyShaderToWorldTexture]]&lt;br /&gt;
* [[engineRemoveShaderFromWorldTexture]]&lt;br /&gt;
* [[engineGetModelNameFromID]]&lt;br /&gt;
* [[engineGetModelIDFromName]]&lt;br /&gt;
* [[engineGetVisibleTextureNames]]&lt;br /&gt;
* [[engineGetModelTextureNames]]&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Functions templates]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Bass</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=EngineGetModelTextureNames&amp;diff=31878</id>
		<title>EngineGetModelTextureNames</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=EngineGetModelTextureNames&amp;diff=31878"/>
		<updated>2012-07-13T18:39:19Z</updated>

		<summary type="html">&lt;p&gt;Bass: Created page with &amp;quot;{{Client function}} __NOTOC__ This function returns a table of the world textures which are applied to the specified model.  ==Syntax==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; table engineGetModelTexture...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function returns a table of the world textures which are applied to the specified model.&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 engineGetModelTextureNames( string modelId = &amp;quot;&amp;quot; )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''modelId :''' You can either use the model id or the model name.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a table if this function succeeds, false if it fails for some reason.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example will output the texture names applied to the Comet.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
for _,name in ipairs( engineGetModelTextureNames( &amp;quot;480&amp;quot; ) ) do&lt;br /&gt;
    outputConsole( name )&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The model name can also be used.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
for _,name in ipairs( engineGetModelTextureNames( &amp;quot;Comet&amp;quot; ) ) do&lt;br /&gt;
    outputConsole( name )&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Engine_functions}}&lt;br /&gt;
{{Drawing_functions}}&lt;/div&gt;</summary>
		<author><name>Bass</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template_talk:Engine_functions&amp;diff=31845</id>
		<title>Template talk:Engine functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template_talk:Engine_functions&amp;diff=31845"/>
		<updated>2012-07-11T15:26:30Z</updated>

		<summary type="html">&lt;p&gt;Bass: Created page with &amp;quot;Should engineGetModelTextureNames be added? If so. I wont mind doing it.&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Should engineGetModelTextureNames be added? If so. I wont mind doing it.&lt;/div&gt;</summary>
		<author><name>Bass</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Engine_functions&amp;diff=31844</id>
		<title>Template:Engine functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Engine_functions&amp;diff=31844"/>
		<updated>2012-07-11T15:26:11Z</updated>

		<summary type="html">&lt;p&gt;Bass: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* [[engineImportTXD]]&lt;br /&gt;
* [[engineLoadCOL]]&lt;br /&gt;
* [[engineLoadDFF]]&lt;br /&gt;
* [[engineLoadTXD]]&lt;br /&gt;
* [[engineReplaceCOL]]&lt;br /&gt;
* [[engineReplaceModel]]&lt;br /&gt;
* [[engineRestoreCOL]]&lt;br /&gt;
* [[engineRestoreModel]]&lt;br /&gt;
* [[engineSetAsynchronousLoading]]&lt;br /&gt;
* [[engineSetModelLODDistance]]&lt;br /&gt;
* [[engineApplyShaderToWorldTexture]]&lt;br /&gt;
* [[engineRemoveShaderFromWorldTexture]]&lt;br /&gt;
* [[engineGetModelNameFromID]]&lt;br /&gt;
* [[engineGetModelIDFromName]]&lt;br /&gt;
* [[engineGetVisibleTextureNames]]&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Functions templates]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Bass</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Engine_functions&amp;diff=31843</id>
		<title>Template:Engine functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Engine_functions&amp;diff=31843"/>
		<updated>2012-07-11T15:25:40Z</updated>

		<summary type="html">&lt;p&gt;Bass: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* [[engineImportTXD]]&lt;br /&gt;
* [[engineLoadCOL]]&lt;br /&gt;
* [[engineLoadDFF]]&lt;br /&gt;
* [[engineLoadTXD]]&lt;br /&gt;
* [[engineReplaceCOL]]&lt;br /&gt;
* [[engineReplaceModel]]&lt;br /&gt;
* [[engineRestoreCOL]]&lt;br /&gt;
* [[engineRestoreModel]]&lt;br /&gt;
* [[engineSetAsynchronousLoading]]&lt;br /&gt;
* [[engineSetModelLODDistance]]&lt;br /&gt;
* [[engineApplyShaderToWorldTexture]]&lt;br /&gt;
* [[engineRemoveShaderFromWorldTexture]]&lt;br /&gt;
* [[engineGetModelNameFromID]]&lt;br /&gt;
* [[engineGetModelIDFromName]]&lt;br /&gt;
* [[engineGetVisibleTextureNames]]&lt;br /&gt;
* [[engineGetModelTextureNames]]&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Functions templates]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Bass</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=OnPlayerChangeNick&amp;diff=29958</id>
		<title>OnPlayerChangeNick</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=OnPlayerChangeNick&amp;diff=29958"/>
		<updated>2012-04-12T07:10:13Z</updated>

		<summary type="html">&lt;p&gt;Bass: /* Cancel effect */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Server event}}&lt;br /&gt;
__NOTOC__ &lt;br /&gt;
This event is triggered when a player changes his nickname.&lt;br /&gt;
&lt;br /&gt;
==Parameters== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string oldNick, string newNick&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''oldNick:''' the nickname the player had before.&lt;br /&gt;
*'''newNick:''' the new nickname of the player.&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The source of this event is the player that changed his nick&lt;br /&gt;
&lt;br /&gt;
==Cancel effect==&lt;br /&gt;
Cancelling this event depends on how it is called, if it is called by the scripting event then it is NOT cancelable. If it is called from the /nick command it IS cancelable. If this event is cancelled and can be cancelled then the name will not change.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function nickChangeHandler(oldNick, newNick)&lt;br /&gt;
    -- check if there's account with newNick as username&lt;br /&gt;
    if getAccount(newNick) then&lt;br /&gt;
        outputChatBox(&amp;quot;Sorry, there already exists an account with your new nickname as username.&amp;quot;, source, 0, 255, 0)&lt;br /&gt;
        outputChatBox(&amp;quot;Please choose another one.&amp;quot;, source, 0, 255, 0)&lt;br /&gt;
        -- cancel the event to prevent the nick from being changed&lt;br /&gt;
        cancelEvent()&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
-- add an event handler&lt;br /&gt;
addEventHandler(&amp;quot;onPlayerChangeNick&amp;quot;, getRootElement(), nickChangeHandler)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This example displays a message to everyone every time player changed his nick&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function nickChangeHandler(oldNick, newNick)&lt;br /&gt;
outputChatBox(oldNick..&amp;quot; is now known as &amp;quot;..newNick, getRootElement(), 255, 100, 100) -- display the message&lt;br /&gt;
end&lt;br /&gt;
addEventHandler(&amp;quot;onPlayerChangeNick&amp;quot;, getRootElement(), nickChangeHandler) -- add an event handler&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
{{See also/Server event|Player events}}&lt;/div&gt;</summary>
		<author><name>Bass</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetPedMoveState&amp;diff=29951</id>
		<title>GetPedMoveState</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetPedMoveState&amp;diff=29951"/>
		<updated>2012-04-11T13:54:34Z</updated>

		<summary type="html">&lt;p&gt;Bass: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
This function returns the current move state for the specified [[ped]].&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getPedMoveState ( ped thePed )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''thePed:''' The [[ped]] whose move state you want to know&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a [[string]] indicating the ped's move state, or ''false'' if the ped is not streamed in, the movement type is unknown, the ped is in a vehicle or the ped is invalid.&lt;br /&gt;
&lt;br /&gt;
{{Ped move states}}&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
'''Example 1:''' This example shows how you can output a players current movestate.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function getMoveState( command, playerName )&lt;br /&gt;
-- If the player name exists we will have our 'player'&lt;br /&gt;
local player = getPlayerFromName( playerName )&lt;br /&gt;
 &lt;br /&gt;
	-- If the player does not exist, the script will stop.&lt;br /&gt;
	if not player then &lt;br /&gt;
		outputChatBox( &amp;quot;No player named &amp;quot; .. playerName .. &amp;quot; was found.&amp;quot;, 250, 0, 0, true )&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
 &lt;br /&gt;
-- If we found the player from the name, we can get his movestate.&lt;br /&gt;
local moveState = getPedMoveState( player )&lt;br /&gt;
-- If a player and a movestate is found, the script will output it to the chatbox.&lt;br /&gt;
outputChatBox( playerName .. &amp;quot;'s current moveState is: &amp;quot; .. moveState, 0, 150, 0, true )&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler( &amp;quot;getMoveState&amp;quot;, getMoveState ) -- To execute this command, simply write: /getMoveState playerName&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Ped functions}}&lt;/div&gt;</summary>
		<author><name>Bass</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetPedMoveState&amp;diff=28944</id>
		<title>GetPedMoveState</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetPedMoveState&amp;diff=28944"/>
		<updated>2012-01-09T14:36:17Z</updated>

		<summary type="html">&lt;p&gt;Bass: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
This function returns the current move state for the specified [[ped]].&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getPedMoveState ( ped thePed )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''thePed:''' The [[ped]] whose move state you want to know&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a [[string]] indicating the ped's move state, or ''false'' if the ped is not streamed in, the movement type is unknown, the ped is in a vehicle or the ped is invalid.&lt;br /&gt;
&lt;br /&gt;
{{Ped move states}}&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
'''Example 1:''' This example shows how you can output a players current movestate.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function getMoveState( command, playerName )&lt;br /&gt;
-- If the player name exists we will have out 'player'&lt;br /&gt;
local player = getPlayerFromName( playerName )&lt;br /&gt;
 &lt;br /&gt;
	-- If the player does not exist, the script will stop.&lt;br /&gt;
	if not player then &lt;br /&gt;
		outputChatBox( &amp;quot;No player named &amp;quot; .. playerName .. &amp;quot; was found.&amp;quot;, 250, 0, 0, true )&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
 &lt;br /&gt;
-- If we found the player from the name, we can get his movestate.&lt;br /&gt;
local moveState = getPedMoveState( player )&lt;br /&gt;
-- If a player and a movestate is found, the script will output it to the chatbox.&lt;br /&gt;
outputChatBox( playerName .. &amp;quot;'s current moveState is: &amp;quot; .. moveState, 0, 150, 0, true )&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler( &amp;quot;getMoveState&amp;quot;, getMoveState ) -- To execute this command, simply write: /getMoveState playerName&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Ped functions}}&lt;/div&gt;</summary>
		<author><name>Bass</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetPedMoveState&amp;diff=28943</id>
		<title>GetPedMoveState</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetPedMoveState&amp;diff=28943"/>
		<updated>2012-01-09T11:21:54Z</updated>

		<summary type="html">&lt;p&gt;Bass: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
This function returns the current move state for the specified [[ped]].&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getPedMoveState ( ped thePed )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''thePed:''' The [[ped]] whose move state you want to know&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a [[string]] indicating the ped's move state, or ''false'' if the ped is not streamed in, the movement type is unknown, the ped is in a vehicle or the ped is invalid.&lt;br /&gt;
&lt;br /&gt;
{{Ped move states}}&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
'''Example 1:''' This example shows how you can output a players current movestate.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function getMoveState( command, playerName )&lt;br /&gt;
-- If the player name exists we will have out 'player'&lt;br /&gt;
local player = getPlayerFromName( playerName )&lt;br /&gt;
 &lt;br /&gt;
	-- If the player does not exist, the script will stop.&lt;br /&gt;
	if not player then &lt;br /&gt;
		outputChatBox( &amp;quot;No player named &amp;quot; .. playerName .. &amp;quot; was found.&amp;quot;, 250, 0, 0, true )&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
 &lt;br /&gt;
-- If we found the player from the name, we can get his movestate.&lt;br /&gt;
local moveState = getPedMoveState( player )&lt;br /&gt;
-- If a player and a movestate is found, the script will output it to the chatbox.&lt;br /&gt;
outputChatBox( playerName .. &amp;quot;'s current moveState is: &amp;quot; .. moveState, 0, 150, 0, true )&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler( &amp;quot;getMoveState&amp;quot;, getMoveState) -- To execute this command, simply write: /getMoveState playerName&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Ped functions}}&lt;/div&gt;</summary>
		<author><name>Bass</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetPedMoveState&amp;diff=28942</id>
		<title>GetPedMoveState</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetPedMoveState&amp;diff=28942"/>
		<updated>2012-01-09T11:21:34Z</updated>

		<summary type="html">&lt;p&gt;Bass: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
This function returns the current move state for the specified [[ped]].&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getPedMoveState ( ped thePed )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''thePed:''' The [[ped]] whose move state you want to know&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a [[string]] indicating the ped's move state, or ''false'' if the ped is not streamed in, the movement type is unknown, the ped is in a vehicle or the ped is invalid.&lt;br /&gt;
&lt;br /&gt;
{{Ped move states}}&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
'''Example 1:''' This example shows how you can output a players current movestate.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function getMoveState( command, playerName )&lt;br /&gt;
-- If the player name exists we will have out 'player'&lt;br /&gt;
local player = getPlayerFromName( playerName )&lt;br /&gt;
 &lt;br /&gt;
	-- If the player does not exist, the script will stop.&lt;br /&gt;
	if not player then &lt;br /&gt;
		outputChatBox( &amp;quot;No player named &amp;quot; .. playerName .. &amp;quot; was found.&amp;quot;, 250, 0, 0, true )&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
 &lt;br /&gt;
-- If we found the player from the name, we can get his movestate.&lt;br /&gt;
local moveState = getPedMoveState( player )&lt;br /&gt;
-- If a player and a movestate is found, the script will output it to the chatbox.&lt;br /&gt;
outputChatBox( playerName .. &amp;quot;'s current moveState is: &amp;quot; .. moveState, 0, 150, 0, true )&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler( &amp;quot;getMoveState&amp;quot;, getMoveState) -- To execute this command, simply write: /getMoveState playerName&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Ped functions}}&lt;/div&gt;</summary>
		<author><name>Bass</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetPedMoveState&amp;diff=28941</id>
		<title>GetPedMoveState</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetPedMoveState&amp;diff=28941"/>
		<updated>2012-01-09T11:19:15Z</updated>

		<summary type="html">&lt;p&gt;Bass: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
This function returns the current move state for the specified [[ped]].&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getPedMoveState ( ped thePed )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''thePed:''' The [[ped]] whose move state you want to know&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a [[string]] indicating the ped's move state, or ''false'' if the ped is not streamed in, the movement type is unknown, the ped is in a vehicle or the ped is invalid.&lt;br /&gt;
&lt;br /&gt;
{{Ped move states}}&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
'''Example 1:''' This example shows how you can output a players current movestate.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function getMoveState( command, playerName )&lt;br /&gt;
-- If the player name exists we will have out 'player'&lt;br /&gt;
local player = getPlayerFromName( playerName )&lt;br /&gt;
 &lt;br /&gt;
	-- If the player does not exist, the script will stop.&lt;br /&gt;
	if not player then &lt;br /&gt;
		outputChatBox( &amp;quot;No player named &amp;quot; .. playerName .. &amp;quot; was found.&amp;quot;, 250, 0, 0, true )&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
 &lt;br /&gt;
-- If we found the player from the name, we can get his movestate.&lt;br /&gt;
local moveState = getPedMoveState( player )&lt;br /&gt;
-- If a player and a movestate is found, the script will output it to the chatbox.&lt;br /&gt;
outputChatBox( playerName .. &amp;quot;'s current moveState is: &amp;quot; .. moveState, 0, 150, 0, true )&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler( &amp;quot;getMoveState&amp;quot;, getMoveState) -- To execute this command, simply write: /getMoveState playerName&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Ped functions}}&lt;/div&gt;</summary>
		<author><name>Bass</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetPedMoveState&amp;diff=28940</id>
		<title>GetPedMoveState</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetPedMoveState&amp;diff=28940"/>
		<updated>2012-01-09T11:17:58Z</updated>

		<summary type="html">&lt;p&gt;Bass: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
{{Needs Example}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function returns the current move state for the specified [[ped]].&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getPedMoveState ( ped thePed )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''thePed:''' The [[ped]] whose move state you want to know&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a [[string]] indicating the ped's move state, or ''false'' if the ped is not streamed in, the movement type is unknown, the ped is in a vehicle or the ped is invalid.&lt;br /&gt;
&lt;br /&gt;
{{Ped move states}}&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
'''Example 1:''' This example shows how you can output a players current movestate.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function getMoveState( command, playerName )&lt;br /&gt;
-- If the player name exists we will have out 'player'&lt;br /&gt;
local player = getPlayerFromName( playerName )&lt;br /&gt;
 &lt;br /&gt;
	-- If the player does not exist, the script will stop.&lt;br /&gt;
	if not player then &lt;br /&gt;
		outputChatBox( &amp;quot;No player named &amp;quot; .. playerName .. &amp;quot; was found.&amp;quot;, 250, 0, 0, true )&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
 &lt;br /&gt;
-- If we found the player from the name, we can get his movestate.&lt;br /&gt;
local moveState = getPedMoveState( player )&lt;br /&gt;
-- If a player and a movestate is found, the script will output it to the chatbox.&lt;br /&gt;
outputChatBox( playerName .. &amp;quot;'s current moveState is: &amp;quot; .. moveState, 0, 150, 0, true )&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler( &amp;quot;getMoveState&amp;quot;, getMoveState) -- To execute this command, simply write: /getMoveState playerName&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Ped functions}}&lt;/div&gt;</summary>
		<author><name>Bass</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetPedMoveState&amp;diff=28939</id>
		<title>GetPedMoveState</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetPedMoveState&amp;diff=28939"/>
		<updated>2012-01-09T11:17:03Z</updated>

		<summary type="html">&lt;p&gt;Bass: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
{{Needs Example}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function returns the current move state for the specified [[ped]].&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getPedMoveState ( ped thePed )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''thePed:''' The [[ped]] whose move state you want to know&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a [[string]] indicating the ped's move state, or ''false'' if the ped is not streamed in, the movement type is unknown, the ped is in a vehicle or the ped is invalid.&lt;br /&gt;
&lt;br /&gt;
{{Ped move states}}&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
'''Example 1:''' This example shows how you can output a players current movestate.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function getMoveState( command, playerName )&lt;br /&gt;
-- If the player name exists we will have out 'player'&lt;br /&gt;
local player = getPlayerFromName( playerName )&lt;br /&gt;
 &lt;br /&gt;
	-- If the player does not exist, the script will stop.&lt;br /&gt;
	if not player then &lt;br /&gt;
		outputChatBox( &amp;quot;No player named &amp;quot; .. playerName .. &amp;quot; was found.&amp;quot;, 250, 0, 0, true )&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
 &lt;br /&gt;
-- If we found the player from the name, we can get his movestate.&lt;br /&gt;
local moveState = getPedMoveState( player )&lt;br /&gt;
-- If a player and a movestate is found, the script will output it to the chatbox.&lt;br /&gt;
outputChatBox( playerName .. &amp;quot;'s current moveState is: &amp;quot; .. moveState, 0, 150, 0, true )&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler( &amp;quot;getMoveState&amp;quot;, getMoveState) -- To execute this command, simply write: /getMoveState playerName&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Ped functions}}&lt;/div&gt;</summary>
		<author><name>Bass</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Talk:GetPedMoveState&amp;diff=28938</id>
		<title>Talk:GetPedMoveState</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Talk:GetPedMoveState&amp;diff=28938"/>
		<updated>2012-01-09T11:00:13Z</updated>

		<summary type="html">&lt;p&gt;Bass: Created page with &amp;quot;'''getPedMoveState should be removed from Server Functions as that function is Clientside ONLY.'''&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''getPedMoveState should be removed from Server Functions as that function is Clientside ONLY.'''&lt;/div&gt;</summary>
		<author><name>Bass</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Talk:Server_Scripting_Functions&amp;diff=28937</id>
		<title>Talk:Server Scripting Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Talk:Server_Scripting_Functions&amp;diff=28937"/>
		<updated>2012-01-09T10:59:57Z</updated>

		<summary type="html">&lt;p&gt;Bass: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Added links for remaining functions. [[User:Vandalite|Vandalite]] 13:20, 23 March 2006 (CST)&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Bass</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Talk:Server_Scripting_Functions&amp;diff=28928</id>
		<title>Talk:Server Scripting Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Talk:Server_Scripting_Functions&amp;diff=28928"/>
		<updated>2012-01-06T06:36:37Z</updated>

		<summary type="html">&lt;p&gt;Bass: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Added links for remaining functions. [[User:Vandalite|Vandalite]] 13:20, 23 March 2006 (CST)&amp;lt;br&amp;gt;&lt;br /&gt;
'''getPedMoveState should be removed from Server Functions as that function is Clientside ONLY.'''&lt;/div&gt;</summary>
		<author><name>Bass</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxCreateTexture&amp;diff=26918</id>
		<title>DxCreateTexture</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxCreateTexture&amp;diff=26918"/>
		<updated>2011-08-28T11:11:36Z</updated>

		<summary type="html">&lt;p&gt;Bass: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{New feature|3.0110|1.1|&lt;br /&gt;
Only available in 1.1&lt;br /&gt;
}}&lt;br /&gt;
This function creates a [[texture]] element that can be used in the dxDraw functions&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element dxCreateTexture ( string filepath )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''filepath:''' The filepath of the image. (.dds images are also supported). Image files should ideally have dimensions that are a power of two, to prevent possible blurring.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a [[texture]] if successful, ''false'' if invalid arguments were passed to the function.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local root = getRootElement()&lt;br /&gt;
&lt;br /&gt;
addEventHandler( &amp;quot;onClientRender&amp;quot;, root,&lt;br /&gt;
    function()&lt;br /&gt;
        if myImage then&lt;br /&gt;
            dxDrawImage( 100, 350, 300, 350, myImage  )&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
-- Use 'toggle' command to switch image on and off&lt;br /&gt;
addCommandHandler( &amp;quot;toggle&amp;quot;,&lt;br /&gt;
    function()&lt;br /&gt;
        if not myImage then&lt;br /&gt;
            myImage = dxCreateTexture( &amp;quot;moonpig.png&amp;quot; )  -- Create texture&lt;br /&gt;
        else        &lt;br /&gt;
            destroyElement( myImage )                 -- Destroy texture&lt;br /&gt;
            myImage = nil&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Drawing_functions}}&lt;/div&gt;</summary>
		<author><name>Bass</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxCreateTexture&amp;diff=26917</id>
		<title>DxCreateTexture</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxCreateTexture&amp;diff=26917"/>
		<updated>2011-08-28T11:08:29Z</updated>

		<summary type="html">&lt;p&gt;Bass: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{New feature|3.0110|1.1|&lt;br /&gt;
Only available in 1.1&lt;br /&gt;
}}&lt;br /&gt;
This function creates a [[texture]] element that can be used in the dxDraw functions&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element dxCreateTexture ( string filepath )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''filepath:''' The filepath of the image. (.dds images are also supported). Image files should ideally have dimensions that are a power of two, to prevent possible blurring.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a [[texture]] if successful, ''false'' if invalid arguments were passed to the function.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
root = getRootElement()&lt;br /&gt;
&lt;br /&gt;
addEventHandler( &amp;quot;onClientRender&amp;quot;, root,&lt;br /&gt;
    function()&lt;br /&gt;
        if myImage then&lt;br /&gt;
            dxDrawImage( 100, 350, 300, 350, myImage  )&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
-- Use 'toggle' command to switch image on and off&lt;br /&gt;
addCommandHandler( &amp;quot;toggle&amp;quot;,&lt;br /&gt;
    function()&lt;br /&gt;
        if not myImage then&lt;br /&gt;
            myImage = dxCreateTexture( &amp;quot;moonpig.png&amp;quot; )  -- Create texture&lt;br /&gt;
        else        &lt;br /&gt;
            destroyElement( myImage )                 -- Destroy texture&lt;br /&gt;
            myImage = nil&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Drawing_functions}}&lt;/div&gt;</summary>
		<author><name>Bass</name></author>
	</entry>
</feed>