<?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=MuLTi</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=MuLTi"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/MuLTi"/>
	<updated>2026-04-30T12:23:28Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetCamera&amp;diff=44813</id>
		<title>GetCamera</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetCamera&amp;diff=44813"/>
		<updated>2015-03-21T19:21:11Z</updated>

		<summary type="html">&lt;p&gt;MuLTi: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
{{New items|3.0135|1.3.5|&lt;br /&gt;
This function returns an [[element]] that corresponds to the game camera &lt;br /&gt;
}}&lt;br /&gt;
{{Note|Using attachElements with the camera and the main player can interfere with movement}}&lt;br /&gt;
{{Note|Using setElementPosition/Rotation/Matrix on the camera element will automatically clear any target set with [[setCameraTarget]]}}&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element getCamera ()&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns an [[element]] that corresponds to the game camera &lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example attaches (fixes) the camera to a vehicle.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local cam = getCamera()&lt;br /&gt;
setElementPosition( cam, 0,0,0 )  -- Clear camera target&lt;br /&gt;
local myVehicle = getPedOccupiedVehicle(localPlayer)&lt;br /&gt;
attachElements( cam, myVehicle, 0,-4,2, -20,0,0 )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client camera functions}}&lt;/div&gt;</summary>
		<author><name>MuLTi</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=CThread&amp;diff=44731</id>
		<title>CThread</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=CThread&amp;diff=44731"/>
		<updated>2015-02-23T18:37:42Z</updated>

		<summary type="html">&lt;p&gt;MuLTi: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Class}}&lt;br /&gt;
&amp;lt;lowercasetitle/&amp;gt;&lt;br /&gt;
__NOTOC__&lt;br /&gt;
&lt;br /&gt;
This class implements the lua coroutines and can be used to limit method calls to a specific amount / second.&lt;br /&gt;
This can be very useful when loading big amounts of data on gamemode startup to avoid an infinite running script and termination.&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
&lt;br /&gt;
''Knowledge''&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
--&lt;br /&gt;
-- Created by IntelliJ IDEA.&lt;br /&gt;
-- User: Noneatme&lt;br /&gt;
-- Date: 25.01.2015&lt;br /&gt;
-- Time: 14:33&lt;br /&gt;
--&lt;br /&gt;
&lt;br /&gt;
cThread = {}&lt;br /&gt;
cThread.__index     = cThread;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Threads     = {}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
function cThread:new(...)&lt;br /&gt;
    local obj = setmetatable({}, {__index = self});&lt;br /&gt;
    if obj.constructor then&lt;br /&gt;
        obj:constructor(...);&lt;br /&gt;
    end&lt;br /&gt;
    return obj;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function cThread:constructor(sName, func, iAmmounts)&lt;br /&gt;
    assert(Threads[sName] == nil);&lt;br /&gt;
    self.name = sName&lt;br /&gt;
    self.func = func&lt;br /&gt;
&lt;br /&gt;
    self.iAmmounts = iAmmounts or 1;&lt;br /&gt;
--  outputConsole(&amp;quot;[TRHEAD: &amp;quot;..sName..&amp;quot;] Constructor&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
    Threads[sName]  = self;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function cThread:start(iMS)&lt;br /&gt;
    self.thread = coroutine.create(self.func)&lt;br /&gt;
    self.yields = 0;&lt;br /&gt;
&lt;br /&gt;
    self.lastTickCount  = getTickCount();&lt;br /&gt;
&lt;br /&gt;
    self:resume()&lt;br /&gt;
&lt;br /&gt;
    self.timer  = setTimer(function()&lt;br /&gt;
        if(self:status() == &amp;quot;suspended&amp;quot;) then&lt;br /&gt;
            if(getTickCount()-self.lastTickCount &amp;gt; 5000) then&lt;br /&gt;
                self.lastTickCount = getTickCount();&lt;br /&gt;
 --             outputConsole(&amp;quot;[THREAD: &amp;quot;..self.name..&amp;quot;] Current Yields: &amp;quot;..self.yields);&lt;br /&gt;
            end&lt;br /&gt;
            for i = 1, self.iAmmounts, 1 do&lt;br /&gt;
                self.yields = self.yields+1;&lt;br /&gt;
                self:resume();&lt;br /&gt;
            end&lt;br /&gt;
        end&lt;br /&gt;
&lt;br /&gt;
        if(self:status() == &amp;quot;dead&amp;quot;) then&lt;br /&gt;
            killTimer(self.timer);&lt;br /&gt;
            self:stop()&lt;br /&gt;
        end&lt;br /&gt;
    end, iMS, -1)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function cThread:resume()&lt;br /&gt;
    coroutine.resume(self.thread)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function cThread:stop()&lt;br /&gt;
    self.thread = nil&lt;br /&gt;
&lt;br /&gt;
--  outputConsole(&amp;quot;[THREAD: &amp;quot;..self.name..&amp;quot;] Completed, Yields: &amp;quot;..self.yields);&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function cThread:status()&lt;br /&gt;
    return coroutine.status(self.thread)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example shows an UserVehicleManager class combined with a Thread which loads all vehicles from a specific database table on server startup.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example&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;
local CUserVehicleManager = inherit(cSingleton)&lt;br /&gt;
&lt;br /&gt;
function CUserVehicleManager:createVehicles()&lt;br /&gt;
    local result = CDatabase:getInstance():query(&amp;quot;SELECT * FROM user_vehicles;&amp;quot;)           -- Big amount of data (&amp;gt; 10000 rows)&lt;br /&gt;
    if(result) and (#result &amp;gt; 0) then       -- Are there any vehicles?&lt;br /&gt;
        for index, row in pairs(result) do  -- Loop through the resultset&lt;br /&gt;
            Vehicle(unpack(row));           -- Create the Vehicle&lt;br /&gt;
            coroutine.yield()               -- Yield back to the thread manager, without the coroutine, the script will abort the loop (infinite running script)&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function CUserVehicleManager:constructor()&lt;br /&gt;
    self.loadFunc		= function() self:createVehicles() end      -- The coroutine main loop function&lt;br /&gt;
    self.thread			= cThread:new(&amp;quot;User Vehicle Loading Thread&amp;quot;, self.loadFunc, 5) -- Limit to 5 yields / call&lt;br /&gt;
    self.thread:start(50);                                          -- Begin the loading process, limited to 5 yields / 50 miliseconds&lt;br /&gt;
end&lt;br /&gt;
&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;
{{Useful_Classes}}&lt;/div&gt;</summary>
		<author><name>MuLTi</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=CThread&amp;diff=44730</id>
		<title>CThread</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=CThread&amp;diff=44730"/>
		<updated>2015-02-23T18:35:11Z</updated>

		<summary type="html">&lt;p&gt;MuLTi: /* Requirements */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Class}}&lt;br /&gt;
{{Needs_Example}}&lt;br /&gt;
&amp;lt;lowercasetitle/&amp;gt;&lt;br /&gt;
__NOTOC__&lt;br /&gt;
&lt;br /&gt;
This class implements the lua coroutines and can be used to limit method calls to a specific amount / second.&lt;br /&gt;
This can be very useful when loading big amounts of data on gamemode startup to avoid an infinite running script and termination.&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
&lt;br /&gt;
''Knowledge''&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
--&lt;br /&gt;
-- Created by IntelliJ IDEA.&lt;br /&gt;
-- User: Noneatme&lt;br /&gt;
-- Date: 25.01.2015&lt;br /&gt;
-- Time: 14:33&lt;br /&gt;
--&lt;br /&gt;
&lt;br /&gt;
cThread = {}&lt;br /&gt;
cThread.__index     = cThread;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Threads     = {}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
function cThread:new(...)&lt;br /&gt;
    local obj = setmetatable({}, {__index = self});&lt;br /&gt;
    if obj.constructor then&lt;br /&gt;
        obj:constructor(...);&lt;br /&gt;
    end&lt;br /&gt;
    return obj;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function cThread:constructor(sName, func, iAmmounts)&lt;br /&gt;
    assert(Threads[sName] == nil);&lt;br /&gt;
    self.name = sName&lt;br /&gt;
    self.func = func&lt;br /&gt;
&lt;br /&gt;
    self.iAmmounts = iAmmounts or 1;&lt;br /&gt;
--  outputConsole(&amp;quot;[TRHEAD: &amp;quot;..sName..&amp;quot;] Constructor&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
    Threads[sName]  = self;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function cThread:start(iMS)&lt;br /&gt;
    self.thread = coroutine.create(self.func)&lt;br /&gt;
    self.yields = 0;&lt;br /&gt;
&lt;br /&gt;
    self.lastTickCount  = getTickCount();&lt;br /&gt;
&lt;br /&gt;
    self:resume()&lt;br /&gt;
&lt;br /&gt;
    self.timer  = setTimer(function()&lt;br /&gt;
        if(self:status() == &amp;quot;suspended&amp;quot;) then&lt;br /&gt;
            if(getTickCount()-self.lastTickCount &amp;gt; 5000) then&lt;br /&gt;
                self.lastTickCount = getTickCount();&lt;br /&gt;
 --             outputConsole(&amp;quot;[THREAD: &amp;quot;..self.name..&amp;quot;] Current Yields: &amp;quot;..self.yields);&lt;br /&gt;
            end&lt;br /&gt;
            for i = 1, self.iAmmounts, 1 do&lt;br /&gt;
                self.yields = self.yields+1;&lt;br /&gt;
                self:resume();&lt;br /&gt;
            end&lt;br /&gt;
        end&lt;br /&gt;
&lt;br /&gt;
        if(self:status() == &amp;quot;dead&amp;quot;) then&lt;br /&gt;
            killTimer(self.timer);&lt;br /&gt;
            self:stop()&lt;br /&gt;
        end&lt;br /&gt;
    end, iMS, -1)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function cThread:resume()&lt;br /&gt;
    coroutine.resume(self.thread)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function cThread:stop()&lt;br /&gt;
    self.thread = nil&lt;br /&gt;
&lt;br /&gt;
--  outputConsole(&amp;quot;[THREAD: &amp;quot;..self.name..&amp;quot;] Completed, Yields: &amp;quot;..self.yields);&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function cThread:status()&lt;br /&gt;
    return coroutine.status(self.thread)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example shows an UserVehicleManager class combined with a Thread which loads all vehicles from a specific database table on server startup.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example&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;
local CUserVehicleManager = inherit(cSingleton)&lt;br /&gt;
&lt;br /&gt;
function CUserVehicleManager:createVehicles()&lt;br /&gt;
    local result = CDatabase:getInstance():query(&amp;quot;SELECT * FROM user_vehicles;&amp;quot;)           -- Big amount of data (&amp;gt; 10000 rows)&lt;br /&gt;
    if(result) and (#result &amp;gt; 0) then       -- Are there any vehicles?&lt;br /&gt;
        for index, row in pairs(result) do  -- Loop through the resultset&lt;br /&gt;
            Vehicle(unpack(row));           -- Create the Vehicle&lt;br /&gt;
            coroutine.yield()               -- Yield back to the thread manager, without the coroutine, the script will abort the loop (infinite running script)&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function CUserVehicleManager:constructor()&lt;br /&gt;
    self.loadFunc		= function() self:createVehicles() end      -- The coroutine main loop function&lt;br /&gt;
    self.thread			= cThread:new(&amp;quot;User Vehicle Loading Thread&amp;quot;, self.loadFunc, 5) -- Limit to 5 yields / call&lt;br /&gt;
    self.thread:start(50);                                          -- Begin the loading process, limited to 5 yields / 50 miliseconds&lt;br /&gt;
end&lt;br /&gt;
&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;
{{Useful_Classes}}&lt;/div&gt;</summary>
		<author><name>MuLTi</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Useful_Classes&amp;diff=44729</id>
		<title>Template:Useful Classes</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Useful_Classes&amp;diff=44729"/>
		<updated>2015-02-23T18:34:46Z</updated>

		<summary type="html">&lt;p&gt;MuLTi: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Useful Classes]]&lt;br /&gt;
*[[CSingleton]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This class allows to restrict the instantiation of a specific class to one object.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[CThread]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This class represents a simple coroutine manager which can be used to limit method calls / loop.&amp;lt;/span&amp;gt;&lt;/div&gt;</summary>
		<author><name>MuLTi</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=CThread&amp;diff=44728</id>
		<title>CThread</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=CThread&amp;diff=44728"/>
		<updated>2015-02-23T18:33:39Z</updated>

		<summary type="html">&lt;p&gt;MuLTi: Created page with &amp;quot;{{Useful Class}} {{Needs_Example}} &amp;lt;lowercasetitle/&amp;gt; __NOTOC__  This class implements the lua coroutines and can be used to limit method calls to a specific amount / second. T...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Class}}&lt;br /&gt;
{{Needs_Example}}&lt;br /&gt;
&amp;lt;lowercasetitle/&amp;gt;&lt;br /&gt;
__NOTOC__&lt;br /&gt;
&lt;br /&gt;
This class implements the lua coroutines and can be used to limit method calls to a specific amount / second.&lt;br /&gt;
This can be very useful when loading big amounts of data on gamemode startup to avoid an infinite running script and termination.&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
&lt;br /&gt;
''No requirements''&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
--&lt;br /&gt;
-- Created by IntelliJ IDEA.&lt;br /&gt;
-- User: Noneatme&lt;br /&gt;
-- Date: 25.01.2015&lt;br /&gt;
-- Time: 14:33&lt;br /&gt;
--&lt;br /&gt;
&lt;br /&gt;
cThread = {}&lt;br /&gt;
cThread.__index     = cThread;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Threads     = {}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
function cThread:new(...)&lt;br /&gt;
    local obj = setmetatable({}, {__index = self});&lt;br /&gt;
    if obj.constructor then&lt;br /&gt;
        obj:constructor(...);&lt;br /&gt;
    end&lt;br /&gt;
    return obj;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function cThread:constructor(sName, func, iAmmounts)&lt;br /&gt;
    assert(Threads[sName] == nil);&lt;br /&gt;
    self.name = sName&lt;br /&gt;
    self.func = func&lt;br /&gt;
&lt;br /&gt;
    self.iAmmounts = iAmmounts or 1;&lt;br /&gt;
--  outputConsole(&amp;quot;[TRHEAD: &amp;quot;..sName..&amp;quot;] Constructor&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
    Threads[sName]  = self;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function cThread:start(iMS)&lt;br /&gt;
    self.thread = coroutine.create(self.func)&lt;br /&gt;
    self.yields = 0;&lt;br /&gt;
&lt;br /&gt;
    self.lastTickCount  = getTickCount();&lt;br /&gt;
&lt;br /&gt;
    self:resume()&lt;br /&gt;
&lt;br /&gt;
    self.timer  = setTimer(function()&lt;br /&gt;
        if(self:status() == &amp;quot;suspended&amp;quot;) then&lt;br /&gt;
            if(getTickCount()-self.lastTickCount &amp;gt; 5000) then&lt;br /&gt;
                self.lastTickCount = getTickCount();&lt;br /&gt;
 --             outputConsole(&amp;quot;[THREAD: &amp;quot;..self.name..&amp;quot;] Current Yields: &amp;quot;..self.yields);&lt;br /&gt;
            end&lt;br /&gt;
            for i = 1, self.iAmmounts, 1 do&lt;br /&gt;
                self.yields = self.yields+1;&lt;br /&gt;
                self:resume();&lt;br /&gt;
            end&lt;br /&gt;
        end&lt;br /&gt;
&lt;br /&gt;
        if(self:status() == &amp;quot;dead&amp;quot;) then&lt;br /&gt;
            killTimer(self.timer);&lt;br /&gt;
            self:stop()&lt;br /&gt;
        end&lt;br /&gt;
    end, iMS, -1)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function cThread:resume()&lt;br /&gt;
    coroutine.resume(self.thread)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function cThread:stop()&lt;br /&gt;
    self.thread = nil&lt;br /&gt;
&lt;br /&gt;
--  outputConsole(&amp;quot;[THREAD: &amp;quot;..self.name..&amp;quot;] Completed, Yields: &amp;quot;..self.yields);&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function cThread:status()&lt;br /&gt;
    return coroutine.status(self.thread)&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example shows an UserVehicleManager class combined with a Thread which loads all vehicles from a specific database table on server startup.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example&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;
local CUserVehicleManager = inherit(cSingleton)&lt;br /&gt;
&lt;br /&gt;
function CUserVehicleManager:createVehicles()&lt;br /&gt;
    local result = CDatabase:getInstance():query(&amp;quot;SELECT * FROM user_vehicles;&amp;quot;)           -- Big amount of data (&amp;gt; 10000 rows)&lt;br /&gt;
    if(result) and (#result &amp;gt; 0) then       -- Are there any vehicles?&lt;br /&gt;
        for index, row in pairs(result) do  -- Loop through the resultset&lt;br /&gt;
            Vehicle(unpack(row));           -- Create the Vehicle&lt;br /&gt;
            coroutine.yield()               -- Yield back to the thread manager, without the coroutine, the script will abort the loop (infinite running script)&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function CUserVehicleManager:constructor()&lt;br /&gt;
    self.loadFunc		= function() self:createVehicles() end      -- The coroutine main loop function&lt;br /&gt;
    self.thread			= cThread:new(&amp;quot;User Vehicle Loading Thread&amp;quot;, self.loadFunc, 5) -- Limit to 5 yields / call&lt;br /&gt;
    self.thread:start(50);                                          -- Begin the loading process, limited to 5 yields / 50 miliseconds&lt;br /&gt;
end&lt;br /&gt;
&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;
{{Useful_Classes}}&lt;/div&gt;</summary>
		<author><name>MuLTi</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=CreateFire&amp;diff=44679</id>
		<title>CreateFire</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=CreateFire&amp;diff=44679"/>
		<updated>2015-02-17T01:01:05Z</updated>

		<summary type="html">&lt;p&gt;MuLTi: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client function}}&lt;br /&gt;
&lt;br /&gt;
Creates a patch of fire that will spread a bit and die out after a while. Because it's a client side only function, other players won't see it, so custom events or custom objects will be needed to make a fire visible to some players.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool createFire ( float x, float y, float z [, float size = 1.8 ] )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''x, y, z:''' the coordinates when the initial patch of fire will be created.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
*'''size:''' a float value indicating the size of the initial patch of fire. It will also make the fire to stay alive more or less time.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if successful, ''false'' if bad arguments were passed or the limit of active fires was reached. There can be a maximum of 60 active fires.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
This example adds a /fire command, which creates a patch of fire in the position of the player that types it.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local function burn(commandName, theSize)&lt;br /&gt;
   if tonumber(theSize) then&lt;br /&gt;
        local x, y, z = getElementPosition(getLocalPlayer())&lt;br /&gt;
        createFire(x, y, z, tonumber(theSize))&lt;br /&gt;
        outputChatBox(&amp;quot;Burn, buuuuurn &amp;gt;:]&amp;quot;)&lt;br /&gt;
   else&lt;br /&gt;
        outputChatBox(&amp;quot;Syntax: /fire &amp;lt;size&amp;gt;&amp;quot;)&lt;br /&gt;
   end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;fire&amp;quot;, burn)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client fire functions}}&lt;/div&gt;</summary>
		<author><name>MuLTi</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Category:Useful_Classes&amp;diff=44670</id>
		<title>Category:Useful Classes</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Category:Useful_Classes&amp;diff=44670"/>
		<updated>2015-02-14T21:04:41Z</updated>

		<summary type="html">&lt;p&gt;MuLTi: Created page with &amp;quot;&amp;lt;pageclass class=&amp;quot;#009696&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;   Category:MTA_environment&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pageclass class=&amp;quot;#009696&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:MTA_environment]]&lt;/div&gt;</summary>
		<author><name>MuLTi</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Useful_Classes&amp;diff=44669</id>
		<title>Template:Useful Classes</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Useful_Classes&amp;diff=44669"/>
		<updated>2015-02-14T21:02:04Z</updated>

		<summary type="html">&lt;p&gt;MuLTi: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Useful Classes]]&lt;br /&gt;
*[[CSingleton]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This class allows to restrict the instantiation of a specific class to one object.&amp;lt;/span&amp;gt;&lt;/div&gt;</summary>
		<author><name>MuLTi</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Singleton&amp;diff=44668</id>
		<title>Singleton</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Singleton&amp;diff=44668"/>
		<updated>2015-02-14T20:59:55Z</updated>

		<summary type="html">&lt;p&gt;MuLTi: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Class}}&lt;br /&gt;
{{Needs_Example}}&lt;br /&gt;
&amp;lt;lowercasetitle/&amp;gt;&lt;br /&gt;
__NOTOC__&lt;br /&gt;
&lt;br /&gt;
This class allows you to restrict the instantiation of a specific class to one object.&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
&lt;br /&gt;
sbx320's classLib, can be found Here[https://github.com/sbx320/lua_utils/blob/master/classlib.lua]&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
Singleton = {}&lt;br /&gt;
&lt;br /&gt;
function Singleton:getSingleton(...)&lt;br /&gt;
	if not self.ms_Instance then&lt;br /&gt;
		self.ms_Instance = self:new(...)&lt;br /&gt;
	end&lt;br /&gt;
	return self.ms_Instance&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function Singleton:new(...)&lt;br /&gt;
	self.new = function() end&lt;br /&gt;
	local inst = new(self, ...)&lt;br /&gt;
	self.ms_Instance = inst&lt;br /&gt;
	return inst&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function Singleton:isInstantiated()&lt;br /&gt;
	return self.ms_Instance ~= nil&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function Singleton:virtual_destructor()&lt;br /&gt;
	for k, v in pairs(super(self)) do&lt;br /&gt;
		v.ms_Instance = nil&lt;br /&gt;
		v.new = Singleton.new&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Original Author: Jusonex&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
 -- TODO&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;
{{Useful_Classes}}&lt;/div&gt;</summary>
		<author><name>MuLTi</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Singleton&amp;diff=44667</id>
		<title>Singleton</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Singleton&amp;diff=44667"/>
		<updated>2015-02-14T20:58:47Z</updated>

		<summary type="html">&lt;p&gt;MuLTi: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Class}}&lt;br /&gt;
{{Needs_Example}}&lt;br /&gt;
&amp;lt;lowercasetitle/&amp;gt;&lt;br /&gt;
__NOTOC__&lt;br /&gt;
&lt;br /&gt;
This class allows you to restrict the instantiation of a specific class to one object.&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
&lt;br /&gt;
sbx320's classLib, can be found Here[https://github.com/sbx320/lua_utils/blob/master/classlib.lua]&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
Singleton = {}&lt;br /&gt;
&lt;br /&gt;
function Singleton:getSingleton(...)&lt;br /&gt;
	if not self.ms_Instance then&lt;br /&gt;
		self.ms_Instance = self:new(...)&lt;br /&gt;
	end&lt;br /&gt;
	return self.ms_Instance&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function Singleton:new(...)&lt;br /&gt;
	self.new = function() end&lt;br /&gt;
	local inst = new(self, ...)&lt;br /&gt;
	self.ms_Instance = inst&lt;br /&gt;
	return inst&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function Singleton:isInstantiated()&lt;br /&gt;
	return self.ms_Instance ~= nil&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function Singleton:virtual_destructor()&lt;br /&gt;
	for k, v in pairs(super(self)) do&lt;br /&gt;
		v.ms_Instance = nil&lt;br /&gt;
		v.new = Singleton.new&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Original Author: Jusonex&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
 -- TODO&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Useful_Classes}}&lt;/div&gt;</summary>
		<author><name>MuLTi</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Singleton&amp;diff=44666</id>
		<title>Singleton</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Singleton&amp;diff=44666"/>
		<updated>2015-02-14T20:58:05Z</updated>

		<summary type="html">&lt;p&gt;MuLTi: Created page with &amp;quot;{{Useful Class}} {{Needs_Example}} &amp;lt;lowercasetitle/&amp;gt; __NOTOC__  This class allows you to restricts the instantiation of a specific class to one object.  ==Requirements==  sbx3...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Class}}&lt;br /&gt;
{{Needs_Example}}&lt;br /&gt;
&amp;lt;lowercasetitle/&amp;gt;&lt;br /&gt;
__NOTOC__&lt;br /&gt;
&lt;br /&gt;
This class allows you to restricts the instantiation of a specific class to one object.&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
&lt;br /&gt;
sbx320's classLib, can be found Here[https://github.com/sbx320/lua_utils/blob/master/classlib.lua]&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
Singleton = {}&lt;br /&gt;
&lt;br /&gt;
function Singleton:getSingleton(...)&lt;br /&gt;
	if not self.ms_Instance then&lt;br /&gt;
		self.ms_Instance = self:new(...)&lt;br /&gt;
	end&lt;br /&gt;
	return self.ms_Instance&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function Singleton:new(...)&lt;br /&gt;
	self.new = function() end&lt;br /&gt;
	local inst = new(self, ...)&lt;br /&gt;
	self.ms_Instance = inst&lt;br /&gt;
	return inst&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function Singleton:isInstantiated()&lt;br /&gt;
	return self.ms_Instance ~= nil&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function Singleton:virtual_destructor()&lt;br /&gt;
	for k, v in pairs(super(self)) do&lt;br /&gt;
		v.ms_Instance = nil&lt;br /&gt;
		v.new = Singleton.new&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Original Author: Jusonex&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Example&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
 -- TODO&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Useful_Classes}}&lt;/div&gt;</summary>
		<author><name>MuLTi</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Useful_Class&amp;diff=44665</id>
		<title>Template:Useful Class</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Useful_Class&amp;diff=44665"/>
		<updated>2015-02-14T20:48:46Z</updated>

		<summary type="html">&lt;p&gt;MuLTi: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pageclass class=&amp;quot;#009696&amp;quot; subcaption=&amp;quot;Useful Class&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
&amp;lt;lowercasetitle&amp;gt;&amp;lt;/lowercasetitle&amp;gt;&lt;br /&gt;
&amp;lt;includeonly&amp;gt;&lt;br /&gt;
[[Category:Useful Classes]]&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>MuLTi</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Useful_Class&amp;diff=44663</id>
		<title>Template:Useful Class</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Useful_Class&amp;diff=44663"/>
		<updated>2015-02-14T20:47:34Z</updated>

		<summary type="html">&lt;p&gt;MuLTi: Created page with &amp;quot;&amp;lt;pageclass class=&amp;quot;#228B22&amp;quot; subcaption=&amp;quot;Useful Class&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt; &amp;lt;lowercasetitle&amp;gt;&amp;lt;/lowercasetitle&amp;gt; &amp;lt;includeonly&amp;gt; Category:Useful Classes &amp;lt;/includeonly&amp;gt;&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pageclass class=&amp;quot;#228B22&amp;quot; subcaption=&amp;quot;Useful Class&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
&amp;lt;lowercasetitle&amp;gt;&amp;lt;/lowercasetitle&amp;gt;&lt;br /&gt;
&amp;lt;includeonly&amp;gt;&lt;br /&gt;
[[Category:Useful Classes]]&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>MuLTi</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Useful_Classes&amp;diff=44659</id>
		<title>Useful Classes</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Useful_Classes&amp;diff=44659"/>
		<updated>2015-02-14T20:37:22Z</updated>

		<summary type="html">&lt;p&gt;MuLTi: Created page with &amp;quot;&amp;lt;pageclass class=&amp;quot;#228B22&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt; {{Adding_Pages_to_Categories_and_Templates}}  This page lists user-made Classes that are not included by default in MTA. &amp;lt;br/&amp;gt; {{Useful...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pageclass class=&amp;quot;#228B22&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
{{Adding_Pages_to_Categories_and_Templates}}&lt;br /&gt;
&lt;br /&gt;
This page lists user-made Classes that are not included by default in MTA.&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
{{Useful_Classes}}&lt;/div&gt;</summary>
		<author><name>MuLTi</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Useful_Classes&amp;diff=44658</id>
		<title>Template:Useful Classes</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Useful_Classes&amp;diff=44658"/>
		<updated>2015-02-14T20:37:10Z</updated>

		<summary type="html">&lt;p&gt;MuLTi: Created page with &amp;quot;Category:Useful Classes&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Useful Classes]]&lt;/div&gt;</summary>
		<author><name>MuLTi</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:MuLTi&amp;diff=44657</id>
		<title>User:MuLTi</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:MuLTi&amp;diff=44657"/>
		<updated>2015-02-14T20:31:12Z</updated>

		<summary type="html">&lt;p&gt;MuLTi: /* About me */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==About me==&lt;br /&gt;
===About me===&lt;br /&gt;
[[Image:Noneatme.png|left|128x128px]][[Image:Package-x-generic.png|16px]] Hello! My Name is Noneatme (Multivan) I like Java.&lt;br /&gt;
&lt;br /&gt;
[[Image:Tech-pro-world-clock.gif|16px]] You can check my Resources at&lt;br /&gt;
[http://noneatme.de/ http://noneatme.de/wordpress/]&lt;br /&gt;
&lt;br /&gt;
[[Image:Tech-pro-world-clock.gif|16px]] or&lt;br /&gt;
[http://www.youtube.com/user/Fluppy288 YouTube] and also [http://www.ilife-sa.de iLife]&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===The Safety Dance===&lt;br /&gt;
[[Image:Applications-office.png|16px]] https://www.youtube.com/watch?v=SkkGeDYv3Lc&lt;br /&gt;
&lt;br /&gt;
==Some stuff==&lt;br /&gt;
[[Image:Package-x-generic.png|16px]] Here I display some usefull stuff I made.&lt;br /&gt;
&lt;br /&gt;
===MTA:SA Awesonium Test===&lt;br /&gt;
[[Image:Tech-pro-world-clock.gif|16px]] Check https://www.youtube.com/watch?v=qvqc1ScZSbM&lt;br /&gt;
&lt;br /&gt;
===Skin Images===&lt;br /&gt;
[[Image:SkinImages.jpg|800x77px]] &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
'''&lt;br /&gt;
[[Image:Tech-pro-world-clock.gif|16px]] Download a free-to-use full image-set of all GTA:SA Skin ID's here:&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:Tech-pro-world-clock.gif|16px]] http://noneatme.de/download/skins.rar&lt;br /&gt;
'''&lt;br /&gt;
&lt;br /&gt;
==Brain stuff==&lt;br /&gt;
===Other things===&lt;br /&gt;
MTA + Cleverbot API = nice, but not possible at the moment. &amp;lt;br&amp;gt;&lt;br /&gt;
Maybe in the future, using Awesonium.&lt;/div&gt;</summary>
		<author><name>MuLTi</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:MuLTi&amp;diff=44656</id>
		<title>User:MuLTi</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:MuLTi&amp;diff=44656"/>
		<updated>2015-02-14T20:30:57Z</updated>

		<summary type="html">&lt;p&gt;MuLTi: /* About me */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==About me==&lt;br /&gt;
===About me===&lt;br /&gt;
[[Image:Noneatme.png|left|128x128px]][[Image:Package-x-generic.png|16px]] Hello! My Name is Noneatme (Multivan) I like Java.&lt;br /&gt;
&lt;br /&gt;
[[Image:Tech-pro-world-clock.gif|16px]] You can check my Resources at&lt;br /&gt;
[http://noneatme.de/ noneatme.de/]&lt;br /&gt;
&lt;br /&gt;
[[Image:Tech-pro-world-clock.gif|16px]] or&lt;br /&gt;
[http://www.youtube.com/user/Fluppy288 YouTube] and also [http://www.ilife-sa.de iLife]&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===The Safety Dance===&lt;br /&gt;
[[Image:Applications-office.png|16px]] https://www.youtube.com/watch?v=SkkGeDYv3Lc&lt;br /&gt;
&lt;br /&gt;
==Some stuff==&lt;br /&gt;
[[Image:Package-x-generic.png|16px]] Here I display some usefull stuff I made.&lt;br /&gt;
&lt;br /&gt;
===MTA:SA Awesonium Test===&lt;br /&gt;
[[Image:Tech-pro-world-clock.gif|16px]] Check https://www.youtube.com/watch?v=qvqc1ScZSbM&lt;br /&gt;
&lt;br /&gt;
===Skin Images===&lt;br /&gt;
[[Image:SkinImages.jpg|800x77px]] &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
'''&lt;br /&gt;
[[Image:Tech-pro-world-clock.gif|16px]] Download a free-to-use full image-set of all GTA:SA Skin ID's here:&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:Tech-pro-world-clock.gif|16px]] http://noneatme.de/download/skins.rar&lt;br /&gt;
'''&lt;br /&gt;
&lt;br /&gt;
==Brain stuff==&lt;br /&gt;
===Other things===&lt;br /&gt;
MTA + Cleverbot API = nice, but not possible at the moment. &amp;lt;br&amp;gt;&lt;br /&gt;
Maybe in the future, using Awesonium.&lt;/div&gt;</summary>
		<author><name>MuLTi</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:MuLTi&amp;diff=39579</id>
		<title>User:MuLTi</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:MuLTi&amp;diff=39579"/>
		<updated>2014-05-23T11:17:34Z</updated>

		<summary type="html">&lt;p&gt;MuLTi: Fixxed links&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==About me==&lt;br /&gt;
===About me===&lt;br /&gt;
[[Image:Noneatme.png|left|128x128px]][[Image:Package-x-generic.png|16px]] Hello! My Name is Noneatme (Multivan) I like Java.&lt;br /&gt;
&lt;br /&gt;
[[Image:Tech-pro-world-clock.gif|16px]] You can check my Resources at&lt;br /&gt;
[http://mta-scripting.net www.mta-scripting.net]&lt;br /&gt;
&lt;br /&gt;
[[Image:Tech-pro-world-clock.gif|16px]] or&lt;br /&gt;
[http://www.youtube.com/user/Fluppy288 YouTube] and also [http://www.ilife-sa.de iLife]&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===The Safety Dance===&lt;br /&gt;
[[Image:Applications-office.png|16px]] https://www.youtube.com/watch?v=SkkGeDYv3Lc&lt;br /&gt;
&lt;br /&gt;
==Some stuff==&lt;br /&gt;
[[Image:Package-x-generic.png|16px]] Here I display some usefull stuff I made.&lt;br /&gt;
&lt;br /&gt;
===MTA:SA Awesonium Test===&lt;br /&gt;
[[Image:Tech-pro-world-clock.gif|16px]] Check https://www.youtube.com/watch?v=qvqc1ScZSbM&lt;br /&gt;
&lt;br /&gt;
===Skin Images===&lt;br /&gt;
[[Image:SkinImages.jpg|800x77px]] &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
'''&lt;br /&gt;
[[Image:Tech-pro-world-clock.gif|16px]] Download a free-to-use full image-set of all GTA:SA Skin ID's here:&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:Tech-pro-world-clock.gif|16px]] http://noneatme.de/download/skins.rar&lt;br /&gt;
'''&lt;br /&gt;
&lt;br /&gt;
==Brain stuff==&lt;br /&gt;
===Other things===&lt;br /&gt;
MTA + Cleverbot API = nice, but not possible at the moment. &amp;lt;br&amp;gt;&lt;br /&gt;
Maybe in the future, using Awesonium.&lt;/div&gt;</summary>
		<author><name>MuLTi</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=DxCreateRenderTarget&amp;diff=39512</id>
		<title>DxCreateRenderTarget</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=DxCreateRenderTarget&amp;diff=39512"/>
		<updated>2014-05-13T15:33:30Z</updated>

		<summary type="html">&lt;p&gt;MuLTi: Added a warning for a mistake I found&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Client function}}&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function creates a render target element, which is a special type of [[texture]] that can be draw on with the dx functions. Successful render target creation is not guaranteed, and may fail due to hardware or memory limitations.&lt;br /&gt;
&lt;br /&gt;
To see if creation is likely to fail, use [[dxGetStatus]]. (When '''VideoMemoryFreeForMTA''' is zero, failure ''is'' guaranteed.)&lt;br /&gt;
{{Tip|It is highly recommended that [[dxSetTestMode]] is used when writing and testing scripts using dxCreateRenderTarget.}}&lt;br /&gt;
{{Note|Render targets are usually cleared when the player minimizes MTA (i.e. alt-tab). See [[onClientRestore]] for details on when to restore any fixed content.}}&lt;br /&gt;
{{Warning|Using '''onClientPreRender''' to render on a render target will not work.}}&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element dxCreateRenderTarget ( int width, int height [, bool withAlpha = false ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''width :''' The width of the texture in pixels.&lt;br /&gt;
*'''height :''' The height of the texture in pixels.&lt;br /&gt;
*'''withAlpha:''' The render target will be created with an alpha channel.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns a [[texture]] element if successful, ''false'' if the system is unable to create a render target.&lt;br /&gt;
&lt;br /&gt;
'''You should always check to see if this function has returned false.'''&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler(&amp;quot;onClientResourceStart&amp;quot;, resourceRoot,&lt;br /&gt;
    function()&lt;br /&gt;
        myRenderTarget = dxCreateRenderTarget( 80, 100 )            -- Create a render target texture which is 80 x 100 pixels&lt;br /&gt;
    end&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
addEventHandler( &amp;quot;onClientRender&amp;quot;, root,&lt;br /&gt;
    function()&lt;br /&gt;
        if myRenderTarget then&lt;br /&gt;
            dxSetRenderTarget( myRenderTarget )                     -- Start drawing on myRenderTarget&lt;br /&gt;
            dxDrawText ( &amp;quot;Hello&amp;quot;, 10, 20 )                          -- Draw a message&lt;br /&gt;
            dxSetRenderTarget()                                     -- Stop drawing on myRenderTarget&lt;br /&gt;
&lt;br /&gt;
            dxDrawImage( 50,  50,  100, 100, myRenderTarget )       -- Now use myRenderTarget as a material and draw it lots of times&lt;br /&gt;
            dxDrawImage( 150, 350, 150, 100, myRenderTarget )&lt;br /&gt;
            dxDrawImage( 250, 250, 100, 150, myRenderTarget )&lt;br /&gt;
            dxDrawImage( 350, 30,  150, 150, myRenderTarget )&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>MuLTi</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:MuLTi&amp;diff=39453</id>
		<title>User:MuLTi</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:MuLTi&amp;diff=39453"/>
		<updated>2014-04-23T15:15:19Z</updated>

		<summary type="html">&lt;p&gt;MuLTi: /* Other things */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==About me==&lt;br /&gt;
===About me===&lt;br /&gt;
[[Image:Noneatme.png|left|128x128px]][[Image:Package-x-generic.png|16px]] Hello! My Name is Noneatme (Multivan) and I'm currently developing MTA iLife.&lt;br /&gt;
&lt;br /&gt;
[[Image:Tech-pro-world-clock.gif|16px]] You can check my Resources at&lt;br /&gt;
[http://mta-scripting.net www.mta-scripting.net]&lt;br /&gt;
&lt;br /&gt;
[[Image:Tech-pro-world-clock.gif|16px]] or&lt;br /&gt;
[http://www.youtube.com/user/Fluppy288 YouTube] and also [http://www.ilife-sa.de iLife]&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===The Safety Dance===&lt;br /&gt;
[[Image:Applications-office.png|16px]] https://www.youtube.com/watch?v=SkkGeDYv3Lc&lt;br /&gt;
&lt;br /&gt;
==Some stuff==&lt;br /&gt;
[[Image:Package-x-generic.png|16px]] Here I display some usefull stuff I made.&lt;br /&gt;
&lt;br /&gt;
===MTA:SA Awesonium Test===&lt;br /&gt;
[[Image:Tech-pro-world-clock.gif|16px]] Check https://www.youtube.com/watch?v=qvqc1ScZSbM&lt;br /&gt;
&lt;br /&gt;
===Skin Images===&lt;br /&gt;
[[Image:SkinImages.jpg|800x77px]] &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
'''&lt;br /&gt;
[[Image:Tech-pro-world-clock.gif|16px]] Download a free-to-use full image-set of all GTA:SA Skin ID's here:&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:Tech-pro-world-clock.gif|16px]] http://noneatme.schotobi.com/download/skins.rar&lt;br /&gt;
'''&lt;br /&gt;
&lt;br /&gt;
==Brain stuff==&lt;br /&gt;
===Other things===&lt;br /&gt;
MTA + Cleverbot API = nice, but not possible at the moment. &amp;lt;br&amp;gt;&lt;br /&gt;
Maybe in the future, using Awesonium.&lt;/div&gt;</summary>
		<author><name>MuLTi</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:MuLTi&amp;diff=39452</id>
		<title>User:MuLTi</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:MuLTi&amp;diff=39452"/>
		<updated>2014-04-23T15:11:20Z</updated>

		<summary type="html">&lt;p&gt;MuLTi: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==About me==&lt;br /&gt;
===About me===&lt;br /&gt;
[[Image:Noneatme.png|left|128x128px]][[Image:Package-x-generic.png|16px]] Hello! My Name is Noneatme (Multivan) and I'm currently developing MTA iLife.&lt;br /&gt;
&lt;br /&gt;
[[Image:Tech-pro-world-clock.gif|16px]] You can check my Resources at&lt;br /&gt;
[http://mta-scripting.net www.mta-scripting.net]&lt;br /&gt;
&lt;br /&gt;
[[Image:Tech-pro-world-clock.gif|16px]] or&lt;br /&gt;
[http://www.youtube.com/user/Fluppy288 YouTube] and also [http://www.ilife-sa.de iLife]&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===The Safety Dance===&lt;br /&gt;
[[Image:Applications-office.png|16px]] https://www.youtube.com/watch?v=SkkGeDYv3Lc&lt;br /&gt;
&lt;br /&gt;
==Some stuff==&lt;br /&gt;
[[Image:Package-x-generic.png|16px]] Here I display some usefull stuff I made.&lt;br /&gt;
&lt;br /&gt;
===MTA:SA Awesonium Test===&lt;br /&gt;
[[Image:Tech-pro-world-clock.gif|16px]] Check https://www.youtube.com/watch?v=qvqc1ScZSbM&lt;br /&gt;
&lt;br /&gt;
===Skin Images===&lt;br /&gt;
[[Image:SkinImages.jpg|800x77px]] &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
'''&lt;br /&gt;
[[Image:Tech-pro-world-clock.gif|16px]] Download a free-to-use full image-set of all GTA:SA Skin ID's here:&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:Tech-pro-world-clock.gif|16px]] http://noneatme.schotobi.com/download/skins.rar&lt;br /&gt;
'''&lt;br /&gt;
&lt;br /&gt;
==Brain stuff==&lt;br /&gt;
===Other things===&lt;br /&gt;
MTA + Cleverbot API = nice, but not possible at the moment.&lt;br /&gt;
Maybe in the future, using Awesonium.&lt;/div&gt;</summary>
		<author><name>MuLTi</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:MuLTi&amp;diff=39451</id>
		<title>User:MuLTi</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:MuLTi&amp;diff=39451"/>
		<updated>2014-04-23T15:02:17Z</updated>

		<summary type="html">&lt;p&gt;MuLTi: /* Skin Images */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==About me==&lt;br /&gt;
===About me===&lt;br /&gt;
[[Image:Noneatme.png|left|128x128px]]&lt;br /&gt;
Hello! My Name is Noneatme (Multivan) and I'm currently developing MTA iLife.&lt;br /&gt;
&lt;br /&gt;
You can check my Resources at&lt;br /&gt;
[http://mta-scripting.net www.mta-scripting.net]&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
[http://www.youtube.com/user/Fluppy288 YouTube]&lt;br /&gt;
&lt;br /&gt;
[http://www.ilife-sa.de iLife]&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===The Safety Dance===&lt;br /&gt;
https://www.youtube.com/watch?v=SkkGeDYv3Lc&lt;br /&gt;
&lt;br /&gt;
==Some stuff==&lt;br /&gt;
Here I display some usefull stuff I made.&lt;br /&gt;
&lt;br /&gt;
===MTA:SA Awesonium Test===&lt;br /&gt;
Check https://www.youtube.com/watch?v=qvqc1ScZSbM&lt;br /&gt;
&lt;br /&gt;
===Skin Images===&lt;br /&gt;
[[Image:SkinImages.jpg|800x77px]] &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
'''&lt;br /&gt;
Download a free-to-use full image-set of all GTA:SA Skin ID's here:&amp;lt;br&amp;gt;&lt;br /&gt;
http://noneatme.schotobi.com/download/skins.rar&lt;br /&gt;
'''&lt;br /&gt;
&lt;br /&gt;
==Brain stuff==&lt;br /&gt;
===Other things===&lt;br /&gt;
MTA + Cleverbot API = nice, but not possible at the moment.&lt;br /&gt;
Maybe in the future, using Awesonium.&lt;/div&gt;</summary>
		<author><name>MuLTi</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:MuLTi&amp;diff=39450</id>
		<title>User:MuLTi</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:MuLTi&amp;diff=39450"/>
		<updated>2014-04-23T15:01:09Z</updated>

		<summary type="html">&lt;p&gt;MuLTi: /* About me */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==About me==&lt;br /&gt;
===About me===&lt;br /&gt;
[[Image:Noneatme.png|left|128x128px]]&lt;br /&gt;
Hello! My Name is Noneatme (Multivan) and I'm currently developing MTA iLife.&lt;br /&gt;
&lt;br /&gt;
You can check my Resources at&lt;br /&gt;
[http://mta-scripting.net www.mta-scripting.net]&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
[http://www.youtube.com/user/Fluppy288 YouTube]&lt;br /&gt;
&lt;br /&gt;
[http://www.ilife-sa.de iLife]&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===The Safety Dance===&lt;br /&gt;
https://www.youtube.com/watch?v=SkkGeDYv3Lc&lt;br /&gt;
&lt;br /&gt;
==Some stuff==&lt;br /&gt;
Here I display some usefull stuff I made.&lt;br /&gt;
&lt;br /&gt;
===MTA:SA Awesonium Test===&lt;br /&gt;
Check https://www.youtube.com/watch?v=qvqc1ScZSbM&lt;br /&gt;
&lt;br /&gt;
===Skin Images===&lt;br /&gt;
[[Image:SkinImages.jpg|800x77px]] &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
'''&lt;br /&gt;
Download a full image-set of all GTA:SA Skin ID's here:&amp;lt;br&amp;gt;&lt;br /&gt;
http://noneatme.schotobi.com/download/skins.rar&lt;br /&gt;
'''&lt;br /&gt;
&lt;br /&gt;
==Brain stuff==&lt;br /&gt;
===Other things===&lt;br /&gt;
MTA + Cleverbot API = nice, but not possible at the moment.&lt;br /&gt;
Maybe in the future, using Awesonium.&lt;/div&gt;</summary>
		<author><name>MuLTi</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:MuLTi&amp;diff=39449</id>
		<title>User:MuLTi</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:MuLTi&amp;diff=39449"/>
		<updated>2014-04-23T15:00:43Z</updated>

		<summary type="html">&lt;p&gt;MuLTi: /* Skin Images */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==About me==&lt;br /&gt;
===About me===&lt;br /&gt;
[[Image:Noneatme.png|left|128x128px]]&lt;br /&gt;
Hello! My Name is Noneatme and I'm currently developing MTA iLife.&lt;br /&gt;
&lt;br /&gt;
You can check my Resources at&lt;br /&gt;
[http://mta-scripting.net www.mta-scripting.net]&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
[http://www.youtube.com/user/Fluppy288 YouTube]&lt;br /&gt;
&lt;br /&gt;
[http://www.ilife-sa.de iLife]&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
===The Safety Dance===&lt;br /&gt;
https://www.youtube.com/watch?v=SkkGeDYv3Lc&lt;br /&gt;
&lt;br /&gt;
==Some stuff==&lt;br /&gt;
Here I display some usefull stuff I made.&lt;br /&gt;
&lt;br /&gt;
===MTA:SA Awesonium Test===&lt;br /&gt;
Check https://www.youtube.com/watch?v=qvqc1ScZSbM&lt;br /&gt;
&lt;br /&gt;
===Skin Images===&lt;br /&gt;
[[Image:SkinImages.jpg|800x77px]] &amp;lt;br&amp;gt; &amp;lt;br&amp;gt;&lt;br /&gt;
'''&lt;br /&gt;
Download a full image-set of all GTA:SA Skin ID's here:&amp;lt;br&amp;gt;&lt;br /&gt;
http://noneatme.schotobi.com/download/skins.rar&lt;br /&gt;
'''&lt;br /&gt;
&lt;br /&gt;
==Brain stuff==&lt;br /&gt;
===Other things===&lt;br /&gt;
MTA + Cleverbot API = nice, but not possible at the moment.&lt;br /&gt;
Maybe in the future, using Awesonium.&lt;/div&gt;</summary>
		<author><name>MuLTi</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:MuLTi&amp;diff=39448</id>
		<title>User:MuLTi</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:MuLTi&amp;diff=39448"/>
		<updated>2014-04-23T15:00:18Z</updated>

		<summary type="html">&lt;p&gt;MuLTi: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==About me==&lt;br /&gt;
===About me===&lt;br /&gt;
[[Image:Noneatme.png|left|128x128px]]&lt;br /&gt;
Hello! My Name is Noneatme and I'm currently developing MTA iLife.&lt;br /&gt;
&lt;br /&gt;
You can check my Resources at&lt;br /&gt;
[http://mta-scripting.net www.mta-scripting.net]&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
[http://www.youtube.com/user/Fluppy288 YouTube]&lt;br /&gt;
&lt;br /&gt;
[http://www.ilife-sa.de iLife]&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
===The Safety Dance===&lt;br /&gt;
https://www.youtube.com/watch?v=SkkGeDYv3Lc&lt;br /&gt;
&lt;br /&gt;
==Some stuff==&lt;br /&gt;
Here I display some usefull stuff I made.&lt;br /&gt;
&lt;br /&gt;
===MTA:SA Awesonium Test===&lt;br /&gt;
Check https://www.youtube.com/watch?v=qvqc1ScZSbM&lt;br /&gt;
&lt;br /&gt;
===Skin Images===&lt;br /&gt;
[[Image:SkinImages.jpg|800x77px]]&lt;br /&gt;
Download a full image-set of all GTA:SA Skin ID's here:&lt;br /&gt;
http://noneatme.schotobi.com/download/skins.rar&lt;br /&gt;
&lt;br /&gt;
==Brain stuff==&lt;br /&gt;
===Other things===&lt;br /&gt;
MTA + Cleverbot API = nice, but not possible at the moment.&lt;br /&gt;
Maybe in the future, using Awesonium.&lt;/div&gt;</summary>
		<author><name>MuLTi</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=File:SkinImages.jpg&amp;diff=39447</id>
		<title>File:SkinImages.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=File:SkinImages.jpg&amp;diff=39447"/>
		<updated>2014-04-23T14:57:39Z</updated>

		<summary type="html">&lt;p&gt;MuLTi: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>MuLTi</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:MuLTi&amp;diff=39446</id>
		<title>User:MuLTi</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:MuLTi&amp;diff=39446"/>
		<updated>2014-04-23T14:50:06Z</updated>

		<summary type="html">&lt;p&gt;MuLTi: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==About me==&lt;br /&gt;
===About me===&lt;br /&gt;
[[Image:Noneatme.png|left|128x128px]]&lt;br /&gt;
Hello! My Name is Noneatme and I'm currently developing MTA iLife.&lt;br /&gt;
&lt;br /&gt;
You can check my Resources at&lt;br /&gt;
[http://mta-scripting.net www.mta-scripting.net]&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
[http://www.youtube.com/user/Fluppy288 YouTube]&lt;br /&gt;
&lt;br /&gt;
[http://www.ilife-sa.de iLife]&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
===The Safety Dance===&lt;br /&gt;
https://www.youtube.com/watch?v=SkkGeDYv3Lc&lt;br /&gt;
&lt;br /&gt;
==Some stuff==&lt;br /&gt;
Here I display some usefull stuff I made.&lt;br /&gt;
&lt;br /&gt;
===MTA:SA Awesonium Test===&lt;br /&gt;
Check https://www.youtube.com/watch?v=qvqc1ScZSbM&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Brain stuff==&lt;br /&gt;
===Other things===&lt;br /&gt;
MTA + Cleverbot API = nice, but not possible at the moment.&lt;br /&gt;
Maybe in the future, using Awesonium.&lt;/div&gt;</summary>
		<author><name>MuLTi</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:MuLTi&amp;diff=39445</id>
		<title>User:MuLTi</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:MuLTi&amp;diff=39445"/>
		<updated>2014-04-23T14:48:10Z</updated>

		<summary type="html">&lt;p&gt;MuLTi: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==About me==&lt;br /&gt;
===About me===&lt;br /&gt;
[[Image:Noneatme.png|left|128x128px]]&lt;br /&gt;
Hello! My Name is Noneatme and I'm currently developing MTA iLife.&lt;br /&gt;
&lt;br /&gt;
You can check my Resources at&lt;br /&gt;
[http://mta-scripting.net www.mta-scripting.net]&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
[http://www.youtube.com/user/Fluppy288 YouTube]&lt;br /&gt;
&lt;br /&gt;
[http://www.ilife-sa.de iLife]&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
===The Safety Dance===&lt;br /&gt;
https://www.youtube.com/watch?v=SkkGeDYv3Lc&lt;br /&gt;
&lt;br /&gt;
==Some stuff==&lt;br /&gt;
Here I display some usefull stuff I made.&lt;br /&gt;
&lt;br /&gt;
===MTA:SA Awesonium Test===&lt;br /&gt;
Check https://www.youtube.com/watch?v=qvqc1ScZSbM&lt;/div&gt;</summary>
		<author><name>MuLTi</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=File:Noneatme.png&amp;diff=39444</id>
		<title>File:Noneatme.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=File:Noneatme.png&amp;diff=39444"/>
		<updated>2014-04-23T14:46:30Z</updated>

		<summary type="html">&lt;p&gt;MuLTi: uploaded a new version of &amp;amp;quot;File:Noneatme.png&amp;amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>MuLTi</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=File:Noneatme.png&amp;diff=39443</id>
		<title>File:Noneatme.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=File:Noneatme.png&amp;diff=39443"/>
		<updated>2014-04-23T14:43:28Z</updated>

		<summary type="html">&lt;p&gt;MuLTi: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>MuLTi</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:MuLTi&amp;diff=39442</id>
		<title>User:MuLTi</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:MuLTi&amp;diff=39442"/>
		<updated>2014-04-23T14:34:56Z</updated>

		<summary type="html">&lt;p&gt;MuLTi: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==About me==&lt;br /&gt;
===About me===&lt;br /&gt;
Hello! My Name is Noneatme and I'm currently developing MTA iLife.&lt;br /&gt;
&lt;br /&gt;
You can check my Resources at&lt;br /&gt;
[http://mta-scripting.net www.mta-scripting.net]&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
[http://www.youtube.com/user/Fluppy288 YouTube]&lt;br /&gt;
&lt;br /&gt;
[http://www.ilife-sa.de iLife]&lt;br /&gt;
===The Safety Dance===&lt;br /&gt;
https://www.youtube.com/watch?v=SkkGeDYv3Lc&lt;br /&gt;
&lt;br /&gt;
==Some stuff==&lt;br /&gt;
Here I display some usefull stuff I made.&lt;br /&gt;
&lt;br /&gt;
===MTA:SA Awesonium Test===&lt;br /&gt;
Check https://www.youtube.com/watch?v=qvqc1ScZSbM&lt;/div&gt;</summary>
		<author><name>MuLTi</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:MuLTi&amp;diff=39441</id>
		<title>User:MuLTi</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:MuLTi&amp;diff=39441"/>
		<updated>2014-04-23T14:26:54Z</updated>

		<summary type="html">&lt;p&gt;MuLTi: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hello! My Name is Noneatme and I'm currently developing MTA iLife.&lt;br /&gt;
&lt;br /&gt;
You can check my Resources at&lt;br /&gt;
[http://mta-scripting.net www.mta-scripting.net]&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
[http://www.youtube.com/user/Fluppy288 YouTube]&lt;br /&gt;
&lt;br /&gt;
[http://www.ilife-sa.de iLife]&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
==Some stuff==&lt;br /&gt;
Here I display some usefull stuff I made.&lt;/div&gt;</summary>
		<author><name>MuLTi</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:MuLTi&amp;diff=38352</id>
		<title>User:MuLTi</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:MuLTi&amp;diff=38352"/>
		<updated>2014-01-13T13:59:35Z</updated>

		<summary type="html">&lt;p&gt;MuLTi: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hello! My Name is Noneatme and I'm currently developing MTA iLife.&lt;br /&gt;
&lt;br /&gt;
You can check my Resources at&lt;br /&gt;
[http://mta-scripting.net www.mta-scripting.net]&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
[http://www.youtube.com/user/Fluppy288 YouTube]&lt;br /&gt;
&lt;br /&gt;
[http://www.ilife-sa.de iLife]&lt;/div&gt;</summary>
		<author><name>MuLTi</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:MuLTi&amp;diff=38351</id>
		<title>User:MuLTi</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:MuLTi&amp;diff=38351"/>
		<updated>2014-01-13T13:59:21Z</updated>

		<summary type="html">&lt;p&gt;MuLTi: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hello! My Name is Noneatme and I'm currently developing MTA iLife.&lt;br /&gt;
&lt;br /&gt;
You can check my Resources at&lt;br /&gt;
[http://mta-scripting.net www.mta-scripting.net]&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
[http://www.youtube.com/user/Fluppy288 YouTube]&lt;br /&gt;
&lt;br /&gt;
[www.ilife-sa.de iLife]&lt;/div&gt;</summary>
		<author><name>MuLTi</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:MuLTi&amp;diff=38350</id>
		<title>User:MuLTi</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:MuLTi&amp;diff=38350"/>
		<updated>2014-01-13T13:57:58Z</updated>

		<summary type="html">&lt;p&gt;MuLTi: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hello! My Name is Noneatme and I'm currently developing MTA iLife.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
www.ilife-sa.de&lt;/div&gt;</summary>
		<author><name>MuLTi</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:MuLTi&amp;diff=36472</id>
		<title>User:MuLTi</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:MuLTi&amp;diff=36472"/>
		<updated>2013-06-28T09:39:34Z</updated>

		<summary type="html">&lt;p&gt;MuLTi: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hello! My Name is Noneatme and somebody will know me allright.&lt;/div&gt;</summary>
		<author><name>MuLTi</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Talk:SetObjectMass&amp;diff=35864</id>
		<title>Talk:SetObjectMass</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Talk:SetObjectMass&amp;diff=35864"/>
		<updated>2013-05-07T15:33:08Z</updated>

		<summary type="html">&lt;p&gt;MuLTi: Created page with &amp;quot;The example makes no sense, because you can't change the mass of a static object... :D  -Multi 17:32 07 May 2013&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The example makes no sense, because you can't change the mass of a static object... :D&lt;br /&gt;
&lt;br /&gt;
-[[User:MuLTi|Multi]] 17:32 07 May 2013&lt;/div&gt;</summary>
		<author><name>MuLTi</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SetElementPosition&amp;diff=35690</id>
		<title>SetElementPosition</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SetElementPosition&amp;diff=35690"/>
		<updated>2013-05-03T11:39:14Z</updated>

		<summary type="html">&lt;p&gt;MuLTi: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function sets the position of an element to the specified coordinates.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background: #FF7070; border: 3px solid #FF0000;&amp;quot;&amp;gt;&lt;br /&gt;
'''Attention:''' Do not use this function to spawn a [[ped]]/[[player]]. It will cause problems with other functions like [[warpPedIntoVehicle]]. &amp;lt;br&amp;gt;&lt;br /&gt;
Use [[spawnPlayer]] and [[createPed]] instead.&lt;br /&gt;
&amp;lt;/div&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 setElementPosition ( element theElement, float x, float y, float z [, bool warp = true ] )  &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theElement:''' A valid [[element]] to be moved.&lt;br /&gt;
*'''x:''' The x coordinate of the destination.&lt;br /&gt;
*'''y:''' The y coordinate of the destination.&lt;br /&gt;
*'''z:''' The z coordinate of the destination.&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments===&lt;br /&gt;
*'''warp:''' teleports players, resetting any animations they were doing. Setting this to ''false'' preserves the current animation.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the function was successful, ''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 adds a &amp;quot;setpos&amp;quot; command to console, which allows setting of a player's position.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function consoleSetPlayerPosition ( source, commandName, posX, posY, posZ )&lt;br /&gt;
	setElementPosition ( source, posX, posY, posZ )&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;setpos&amp;quot;, consoleSetPlayerPosition  )&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 example adds a &amp;quot;setpos&amp;quot; command to console, which allows setting of the local player's position.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function consoleSetPlayerPosition ( commandName, posX, posY, posZ )&lt;br /&gt;
	setElementPosition ( getLocalPlayer(), posX, posY, posZ )&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;setpos&amp;quot;, consoleSetPlayerPosition  )&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 3&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
This example enables a player to type /warpto &amp;lt;playername&amp;gt; to warp to them. If the player being warped to is in a vehicle with a free passenger seat, it will warp into the vehicle.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function consoleWarpTo ( sourcePlayer, commandName, player2nick )&lt;br /&gt;
	-- Make sure required parameters are set&lt;br /&gt;
	if ( not sourcePlayer or not player2nick ) then return end&lt;br /&gt;
	-- Setup the variables we will be using for teleportation&lt;br /&gt;
	local x, y, z, r, d = 0, 0, 0, 0, 2.5&lt;br /&gt;
	-- Grab the element identifier of the player we are trying to warp to&lt;br /&gt;
	local player2 = getPlayerFromNick ( player2nick )&lt;br /&gt;
	-- Make sure it exists!&lt;br /&gt;
	if ( player2 ) then&lt;br /&gt;
		-- Is the player we're warping to in a vehicle?&lt;br /&gt;
		if ( isPlayerInVehicle ( player2 ) ) then&lt;br /&gt;
			-- Indeed they are, let's get the vehicle information such as the vehicle element itself, and the seats it's got.&lt;br /&gt;
			local player2vehicle = getPlayerOccupiedVehicle ( player2 )&lt;br /&gt;
			local numseats = getVehicleMaxPassengers ( player2vehicle )&lt;br /&gt;
			local i = 0&lt;br /&gt;
			-- Loop over the seats to see if there's a free one&lt;br /&gt;
			while ( i &amp;lt; numseats ) do&lt;br /&gt;
				if ( getVehicleOccupant ( player2vehicle, i ) ) then&lt;br /&gt;
					-- This seat isn't free, go ahead and check the next one&lt;br /&gt;
					i = i + 1&lt;br /&gt;
				else&lt;br /&gt;
					-- This seat is free, get out of the loop&lt;br /&gt;
					break&lt;br /&gt;
				end&lt;br /&gt;
			end&lt;br /&gt;
			-- Check if 'i' is lower than the number of seats. If it is, it means it's the number of a free seat&lt;br /&gt;
			if ( i &amp;lt; numseats ) then&lt;br /&gt;
				-- Teleport the player into the seat&lt;br /&gt;
				warpPlayerIntoVehicle ( sourcePlayer, player2vehicle, i )&lt;br /&gt;
			else&lt;br /&gt;
				-- There are no free seats, tell the player that.&lt;br /&gt;
				outputChatBox ( &amp;quot;Sorry, the player's vehicle is full (&amp;quot; .. getVehicleName ( player2vehicle ) .. &amp;quot; &amp;quot; .. i .. &amp;quot;/&amp;quot; .. numseats .. &amp;quot;)&amp;quot;, sourcePlayer )&lt;br /&gt;
			end&lt;br /&gt;
		else&lt;br /&gt;
			-- The player isn't in a vehicle, let's get the player's position and warp to them.&lt;br /&gt;
			x, y, z = getElementPosition ( player2 )&lt;br /&gt;
			r = getPlayerRotation ( player2 )&lt;br /&gt;
			-- Make sure we get interior data, they might be inside one!&lt;br /&gt;
			interior = getElementInterior ( player2 )&lt;br /&gt;
			dimension = getElementDimension ( player2 )&lt;br /&gt;
			-- Do some funky math to make sure that we dont teleport inside of them (get us both stuck inside each other)&lt;br /&gt;
			x = x - ( ( math.cos ( math.rad ( r + 90 ) ) ) * d )&lt;br /&gt;
			y = y - ( ( math.sin ( math.rad ( r + 90 ) ) ) * d )&lt;br /&gt;
			-- Set a few timers for setting interiors, dimensions and positions&lt;br /&gt;
			setTimer ( setElementInterior, 800, 1, sourcePlayer, interior )&lt;br /&gt;
			setTimer ( setElementDimension, 900, 1, sourcePlayer, dimension )&lt;br /&gt;
			setTimer ( setElementPosition, 1000, 1, sourcePlayer, x, y, z )&lt;br /&gt;
			setTimer ( setPlayerRotation, 1000, 1, sourcePlayer, r )&lt;br /&gt;
			-- Fade the camera to make it look nicer&lt;br /&gt;
			fadeCamera ( sourcePlayer, false, 1, 0, 0, 0 )&lt;br /&gt;
			-- Fade it back once it's all complete!&lt;br /&gt;
			setTimer ( fadeCamera, 1000, 1, sourcePlayer, true, 1 )&lt;br /&gt;
		end&lt;br /&gt;
	else&lt;br /&gt;
		-- No player by the specified name was found, tell the warper this.&lt;br /&gt;
		outputChatBox ( &amp;quot;No such player.&amp;quot;, sourcePlayer )&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;warpto&amp;quot;, consoleWarpTo )&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;
{{Element functions}}&lt;/div&gt;</summary>
		<author><name>MuLTi</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=WarpPedIntoVehicle&amp;diff=35689</id>
		<title>WarpPedIntoVehicle</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=WarpPedIntoVehicle&amp;diff=35689"/>
		<updated>2013-05-03T11:37:19Z</updated>

		<summary type="html">&lt;p&gt;MuLTi: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function is used to warp or force a ped into a vehicle.  There are no animations involved when this happens.&lt;br /&gt;
&lt;br /&gt;
'''Available client side from 1.3.1''' (It will only work with client side vehicles and peds)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background: #FF7070; border: 3px solid #FF0000;&amp;quot;&amp;gt;&lt;br /&gt;
'''Attention:''' If you used [[setElementPosition]] to spawn the [[ped]]/[[player]], this function will not work and returns '''false'''. &amp;lt;/div&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 warpPedIntoVehicle ( ped thePed, vehicle theVehicle, [ int seat=0 ] )          &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''thePed:''' The ped which you wish to force inside the vehicle&lt;br /&gt;
*'''theVehicle:''' The vehicle you wish to force the ped into&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}} &lt;br /&gt;
*'''seat:''' An integer representing the seat ID. ''0'' represents the driver, any higher represent passenger seats.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the operation is successful, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example creates a vehicle and warps a ped inside immediately.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function setupForRace ( )&lt;br /&gt;
    local RacerPed = createPed ( 252, 0, 0, 3 )&lt;br /&gt;
    local RaceVehicle = createVehicle ( 411, 4, 0, 3 )            -- create a vehicle.&lt;br /&gt;
    warpPedIntoVehicle ( RacerPed, RaceVehicle )                  -- warp the ped straight into the vehicle&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;startrace&amp;quot;, setupForRace )                   -- add a command to start race&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Ped functions}}&lt;br /&gt;
[[ru:warpPedIntoVehicle]]&lt;/div&gt;</summary>
		<author><name>MuLTi</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=WarpPedIntoVehicle&amp;diff=35688</id>
		<title>WarpPedIntoVehicle</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=WarpPedIntoVehicle&amp;diff=35688"/>
		<updated>2013-05-03T11:34:50Z</updated>

		<summary type="html">&lt;p&gt;MuLTi: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function is used to warp or force a ped into a vehicle.  There are no animations involved when this happens.&lt;br /&gt;
&lt;br /&gt;
'''Available client side from 1.3.1''' (It will only work with client side vehicles and peds)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background: #FF7070; border: 3px solid #FF0000;&amp;quot;&amp;gt;&lt;br /&gt;
'''Attention:''' Using this function before using [[spawnPlayer]] can cause that this function will not work and returns '''false'''. &amp;lt;/div&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 warpPedIntoVehicle ( ped thePed, vehicle theVehicle, [ int seat=0 ] )          &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''thePed:''' The ped which you wish to force inside the vehicle&lt;br /&gt;
*'''theVehicle:''' The vehicle you wish to force the ped into&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}} &lt;br /&gt;
*'''seat:''' An integer representing the seat ID. ''0'' represents the driver, any higher represent passenger seats.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the operation is successful, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example creates a vehicle and warps a ped inside immediately.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function setupForRace ( )&lt;br /&gt;
    local RacerPed = createPed ( 252, 0, 0, 3 )&lt;br /&gt;
    local RaceVehicle = createVehicle ( 411, 4, 0, 3 )            -- create a vehicle.&lt;br /&gt;
    warpPedIntoVehicle ( RacerPed, RaceVehicle )                  -- warp the ped straight into the vehicle&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;startrace&amp;quot;, setupForRace )                   -- add a command to start race&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Ped functions}}&lt;br /&gt;
[[ru:warpPedIntoVehicle]]&lt;/div&gt;</summary>
		<author><name>MuLTi</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=WarpPedIntoVehicle&amp;diff=35687</id>
		<title>WarpPedIntoVehicle</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=WarpPedIntoVehicle&amp;diff=35687"/>
		<updated>2013-05-03T11:32:30Z</updated>

		<summary type="html">&lt;p&gt;MuLTi: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Server client function}}&lt;br /&gt;
This function is used to warp or force a ped into a vehicle.  There are no animations involved when this happens.&lt;br /&gt;
&lt;br /&gt;
'''Available client side from 1.3.1''' (It will only work with client side vehicles and peds)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background: #FF7070; border: 3px solid #CEDFF2;&amp;quot;&amp;gt;&lt;br /&gt;
'''Attention:''' Using this function before using [[spawnPlayer]] can cause that this function will not work and returns '''false'''. &amp;lt;/div&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 warpPedIntoVehicle ( ped thePed, vehicle theVehicle, [ int seat=0 ] )          &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''thePed:''' The ped which you wish to force inside the vehicle&lt;br /&gt;
*'''theVehicle:''' The vehicle you wish to force the ped into&lt;br /&gt;
&lt;br /&gt;
===Optional Arguments=== &lt;br /&gt;
{{OptionalArg}} &lt;br /&gt;
*'''seat:''' An integer representing the seat ID. ''0'' represents the driver, any higher represent passenger seats.&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns ''true'' if the operation is successful, ''false'' otherwise.&lt;br /&gt;
&lt;br /&gt;
==Example== &lt;br /&gt;
This example creates a vehicle and warps a ped inside immediately.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
function setupForRace ( )&lt;br /&gt;
    local RacerPed = createPed ( 252, 0, 0, 3 )&lt;br /&gt;
    local RaceVehicle = createVehicle ( 411, 4, 0, 3 )            -- create a vehicle.&lt;br /&gt;
    warpPedIntoVehicle ( RacerPed, RaceVehicle )                  -- warp the ped straight into the vehicle&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler ( &amp;quot;startrace&amp;quot;, setupForRace )                   -- add a command to start race&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Ped functions}}&lt;br /&gt;
[[ru:warpPedIntoVehicle]]&lt;/div&gt;</summary>
		<author><name>MuLTi</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:MuLTi&amp;diff=34762</id>
		<title>User:MuLTi</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:MuLTi&amp;diff=34762"/>
		<updated>2013-02-04T13:29:56Z</updated>

		<summary type="html">&lt;p&gt;MuLTi: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hello! My Name is Noneatme and somebody will know me allright.&lt;br /&gt;
I'm a german trainee who developed for example Butterfly Reallife.&lt;br /&gt;
&lt;br /&gt;
I'm currently in the Project X Gaming clan, and CEO of the Project X Roleplay server.&lt;br /&gt;
[&lt;br /&gt;
http://www.projectx-gaming.net&lt;br /&gt;
]&lt;/div&gt;</summary>
		<author><name>MuLTi</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:MuLTi&amp;diff=34761</id>
		<title>User:MuLTi</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:MuLTi&amp;diff=34761"/>
		<updated>2013-02-04T13:29:33Z</updated>

		<summary type="html">&lt;p&gt;MuLTi: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hello! My Name is Noneatme and somebody will know me allright.&lt;br /&gt;
I'm a german trainee who developed for example Butterfly Reallife.&lt;br /&gt;
&lt;br /&gt;
I'm currently in the Project X Gaming clan, and CEO of the Project X Roleplay server.&lt;br /&gt;
&lt;br /&gt;
www.projectx-gaming.net&lt;/div&gt;</summary>
		<author><name>MuLTi</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Useful_Functions&amp;diff=34760</id>
		<title>Template:Useful Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Useful_Functions&amp;diff=34760"/>
		<updated>2013-02-04T13:26:28Z</updated>

		<summary type="html">&lt;p&gt;MuLTi: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[callClientFunction]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to call any clientside function from the server's side.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[callServerFunction]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to call any server-side function from the client's side.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[centerWindow]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function center the window in any resolution.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[Check]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks if it's arguments are of the right types and calls the error-function if one isn't.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[coroutine.resume]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Fix for hidden coroutine error messages&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawColorText]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function draws a dx text with #RRGGBB color codes support.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawGifImage]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function simulates the effect of a GIF image by using image sprites.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawImage3D]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function draws a 3D image.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawRectangle3D]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function draws a 3D rectangle.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxGetFontSizeFromHeight]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function calculate a font size from given height for dxDraw.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxGetRealFontHeight]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Accurately measures the pixel height of a font.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[findRotation]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Takes two points and returns the direction from point A to point B.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[FormatDate]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Formats a date on the basis of a format string and returns it.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[GenerateString]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» With this function you can generate a random string with any characters.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getAge]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function calculates the age of a birthday.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getAlivePlayers (Client)|getAlivePlayers]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns all the alive players by a client side, so you can store them into a Gridlist or something like that, faster.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getAlivePlayersInTeam]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of the alive players in a team.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getCursorMoveOn]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks in which way the cursor is currently moving.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getDistanceBetweenPointAndSegment2D]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Takes point coordinates and line (a segment) starting and ending coordinates. It returns the shortest distance between the point and the line.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getElementSpeed]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to get element speed in kph or mph units.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getJetpackWeaponsEnabled]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of enabled weapons usable on a jetpack.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getOffsetFromXYZ]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to take an entity and a position and calculate the relative offset between them accounting for rotations.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getOnlineAdmins]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function will give the online admins.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getOnlineStaff]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Returns all online staff, names separated by two spaces.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getPlayerFromNamePart]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to get player From his Name part.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getPlayersInPhotograph]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function gets all the players in a photograph.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getPointFromDistanceRotation]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Finds a point based on a starting point, direction and distance.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getResourceSettings]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of the resource settings.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getTimestamp]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» With this function you can get the UNIX timestamp.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getXMLNodes]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Returns all children of a node&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getVehicleRespawnPosition]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to get the spawn position of a vehicle.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[guiComboBoxAdjustHeight]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Adjusts the combobox to have a correct height.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[guiEditSetActive]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Puts the caret of an editbox to the gived position.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[IfElse]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Returns one of two values based on a boolean expression.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isElementInPhotograph]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks if an element was in the player's camera picture.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isElementInRange]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to check is the element's range to the main point is smaller than (or as big as) the maximum range.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[IsElementMoving]]&amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks if an element is moving.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isPedAiming]]&amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks if a ped is aiming.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isPlayerInTeam]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function check if the player in the team.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isLeapYear]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Checks if the given year is a leap year.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isVehicleOnRoof]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks whether vehicle is on roof.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[iterElements]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Returns an iterator for your for loops saving time typing ipairs( getElementsByType( type ) ), instead you type: iterElements( type ).&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[math.round]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Rounds a number whereas the number of decimals to keep and the method may be set.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[multi_check]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks one element to many, handy and clean.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[onVehicleWeaponFire]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This code implements an event that is triggered when a player in a vehicle fires a vehicles weapon.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[setElementSpeed]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to set moving element speed in kph or mph units.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[setTableProtected]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Protects a table and makes it read-only.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[setVehicleGravityPoint]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This clientside function sets a vehicle's gravity in the direction of a 3 dimensional coordinate with the strength specified.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[smoothMoveCamera]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This clientside function allows you to create a cinematic camera flight.&lt;br /&gt;
*[[string.count]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function counts a text from a text.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[string.explode]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function splits a string at a given separator pattern and returns a table with the pieces.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[switch]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function allow the value of a variable or expression to control the flow of program execution via a multiway branch.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[table.copy]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function copies a whole table and all the tables in that table.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[table.condition]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function check if both tables is equal. &amp;lt;/span&amp;gt;&lt;br /&gt;
*[[table.empty]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function check is empty table or not.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[table.map]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function goes through a table and replaces every field with the return of the passed function, where the field's value is passed as first argument and optionally more arguments.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[table.random]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function retrieves a random variable from a table.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[table.size]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Finds the absolute size of a table.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[var dump]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function outputs information about one or more variables using outputConsole()&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[RGBToHex]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a string representing the color in hexadecimal.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[toHex]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function converts a decimal number to a hexadecimal number, as a fix to be used clientside.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[wavelengthToRGBA]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function converts a phisical wavelength of light to a RGBA color.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[convertNumber]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function converts large numbers and adds commas to it. (Example: 100000 -&amp;gt; 100,000)&amp;lt;/span&amp;gt;&lt;br /&gt;
[[Category:Useful Functions]]&lt;/div&gt;</summary>
		<author><name>MuLTi</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetVehicleRespawnPosition&amp;diff=34759</id>
		<title>GetVehicleRespawnPosition</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetVehicleRespawnPosition&amp;diff=34759"/>
		<updated>2013-02-04T13:24:18Z</updated>

		<summary type="html">&lt;p&gt;MuLTi: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&lt;br /&gt;
&amp;lt;lowercasetitle/&amp;gt;&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function allows you to get the respawn position of a specific [[vehicle]] element.&lt;br /&gt;
'''Note:''' Please insert this code in a file that stands on the top of your meta.xml file to work correctly.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;float, float, float, float, float, float getVehicleRespawnPosition( element theVehicle )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
* '''theVehicle''': A vehicle that have been created using [[createVehicle]].&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns 6 variables representing the vehicle's respawn position. (x, y, z, rotx, roty, rotz)&lt;br /&gt;
If the vehicle is incorrect or the table is missing, it returns false.&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server and 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;
local vehSpawn = {}&lt;br /&gt;
&lt;br /&gt;
_createVehicle = createVehicle&lt;br /&gt;
_setVehicleRespawnPosition = setVehicleRespawnPosition&lt;br /&gt;
&lt;br /&gt;
-- Overwrite the existing functions --&lt;br /&gt;
function createVehicle(id, x, y, z, rx, ry, rz, ...)&lt;br /&gt;
	local veh = _createVehicle(id, x, y, z, rx, ry, rz, ...)&lt;br /&gt;
	if(veh) then&lt;br /&gt;
		vehSpawn[veh] = {x, y, z, rx, ry, rz}&lt;br /&gt;
		return veh&lt;br /&gt;
	else&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
function setVehicleRespawnPosition(theVehicle, ...)&lt;br /&gt;
	assert(vehSpawn[theVehicle], &amp;quot;Bad Argument @ setVehicleRespawnPosition (Vehicle respawn position does not exists)&amp;quot;)&lt;br /&gt;
	vehSpawn[theVehicle] = {...}&lt;br /&gt;
	return _setVehicleRespawnPosition(theVehicle, ...)&lt;br /&gt;
end	&lt;br /&gt;
&lt;br /&gt;
-- Add's the new function --&lt;br /&gt;
function getVehicleRespawnPosition(theVehicle)&lt;br /&gt;
	if(vehSpawn[theVehicle]) then&lt;br /&gt;
		return vehSpawn[theVehicle][1], vehSpawn[theVehicle][2], vehSpawn[theVehicle][3], vehSpawn[theVehicle][4], vehSpawn[theVehicle][5], vehSpawn[theVehicle][6]&lt;br /&gt;
	else&lt;br /&gt;
		return false&lt;br /&gt;
	end&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;
Author: Noneatme&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Useful_Functions}}&lt;/div&gt;</summary>
		<author><name>MuLTi</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetVehicleRespawnPosition&amp;diff=34758</id>
		<title>GetVehicleRespawnPosition</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetVehicleRespawnPosition&amp;diff=34758"/>
		<updated>2013-02-04T13:23:33Z</updated>

		<summary type="html">&lt;p&gt;MuLTi: Created page with &amp;quot;{{Useful Function}} &amp;lt;lowercasetitle/&amp;gt; __NOTOC__ This function allows you to get the respawn Position of a specific vehicle element. '''Note:''' Please insert this code in a f...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&lt;br /&gt;
&amp;lt;lowercasetitle/&amp;gt;&lt;br /&gt;
__NOTOC__&lt;br /&gt;
This function allows you to get the respawn Position of a specific [[vehicle]] element.&lt;br /&gt;
'''Note:''' Please insert this code in a file that stands on the top of your meta.xml file to work correctly.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;float, float, float, float, float, float getVehicleRespawnPosition( element theVehicle )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
* '''theVehicle''': A vehicle that have been created using [[createVehicle]].&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns 6 variables representing the vehicle's respawn position. (x, y, z, rotx, roty, rotz)&lt;br /&gt;
If the vehicle is incorrect or the table is missing, it returns false.&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Server and 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;
local vehSpawn = {}&lt;br /&gt;
&lt;br /&gt;
_createVehicle = createVehicle&lt;br /&gt;
_setVehicleRespawnPosition = setVehicleRespawnPosition&lt;br /&gt;
&lt;br /&gt;
-- Overwrite the existing functions --&lt;br /&gt;
function createVehicle(id, x, y, z, rx, ry, rz, ...)&lt;br /&gt;
	local veh = _createVehicle(id, x, y, z, rx, ry, rz, ...)&lt;br /&gt;
	if(veh) then&lt;br /&gt;
		vehSpawn[veh] = {x, y, z, rx, ry, rz}&lt;br /&gt;
		return veh&lt;br /&gt;
	else&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
function setVehicleRespawnPosition(theVehicle, ...)&lt;br /&gt;
	assert(vehSpawn[theVehicle], &amp;quot;Bad Argument @ setVehicleRespawnPosition (Vehicle respawn position does not exists)&amp;quot;)&lt;br /&gt;
	vehSpawn[theVehicle] = {...}&lt;br /&gt;
	return _setVehicleRespawnPosition(theVehicle, ...)&lt;br /&gt;
end	&lt;br /&gt;
&lt;br /&gt;
-- Add's the new function --&lt;br /&gt;
function getVehicleRespawnPosition(theVehicle)&lt;br /&gt;
	if(vehSpawn[theVehicle]) then&lt;br /&gt;
		return vehSpawn[theVehicle][1], vehSpawn[theVehicle][2], vehSpawn[theVehicle][3], vehSpawn[theVehicle][4], vehSpawn[theVehicle][5], vehSpawn[theVehicle][6]&lt;br /&gt;
	else&lt;br /&gt;
		return false&lt;br /&gt;
	end&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;
Author: Noneatme&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Useful_Functions}}&lt;/div&gt;</summary>
		<author><name>MuLTi</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SmoothMoveCamera&amp;diff=34581</id>
		<title>SmoothMoveCamera</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SmoothMoveCamera&amp;diff=34581"/>
		<updated>2013-01-20T14:13:13Z</updated>

		<summary type="html">&lt;p&gt;MuLTi: /* Code */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&lt;br /&gt;
&amp;lt;lowercasetitle/&amp;gt;&lt;br /&gt;
__NOTOC__&lt;br /&gt;
&lt;br /&gt;
This function allows you to create a cinematic-camera-flight, which moves from a specific position to a specific position.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool smoothMoveCamera ( float x1, float y1, float z1, float x1t, float y1t, float z1t, float x2, float y2, float z2, float x2t, float y2t, float z2t, int time )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''x1, y1, z1''': The camera's start position.&lt;br /&gt;
* '''x1t, y1t, z1t''': The camera's start look at.&lt;br /&gt;
* '''x2, y2, z2''': The camera's end position.&lt;br /&gt;
* '''x2t, y2t, z2t''': The camera's end kook at.&lt;br /&gt;
* '''time''': The speed of the camera's movement.&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Clientside Script&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;&lt;br /&gt;
local sm = {}&lt;br /&gt;
sm.moov = 0&lt;br /&gt;
sm.object1, sm.object2 = nil, nil&lt;br /&gt;
&lt;br /&gt;
local function removeCamHandler ()&lt;br /&gt;
	if(sm.moov == 1) then&lt;br /&gt;
		sm.moov = 0&lt;br /&gt;
		removeEventHandler ( &amp;quot;onClientPreRender&amp;quot;, getRootElement(), camRender )&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function camRender ()&lt;br /&gt;
	local x1, y1, z1 = getElementPosition ( sm.object1 )&lt;br /&gt;
	local x2, y2, z2 = getElementPosition ( sm.object2 )&lt;br /&gt;
	setCameraMatrix ( x1, y1, z1, x2, y2, z2 )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function smoothMoveCamera ( x1, y1, z1, x1t, y1t, z1t, x2, y2, z2, x2t, y2t, z2t, time )&lt;br /&gt;
	if(sm.moov == 1) then return false end&lt;br /&gt;
	sm.object1 = createObject ( 1337, x1, y1, z1 )&lt;br /&gt;
	sm.object2 = createObject ( 1337, x1t, y1t, z1t )&lt;br /&gt;
	setElementAlpha ( sm.object1, 0 )&lt;br /&gt;
	setElementAlpha ( sm.object2, 0 )&lt;br /&gt;
	setObjectScale(sm.object1, 0.01)&lt;br /&gt;
	setObjectScale(sm.object2, 0.01)&lt;br /&gt;
	moveObject ( sm.object1, time, x2, y2, z2, 0, 0, 0, &amp;quot;InOutQuad&amp;quot; )&lt;br /&gt;
	moveObject ( sm.object2, time, x2t, y2t, z2t, 0, 0, 0, &amp;quot;InOutQuad&amp;quot; )&lt;br /&gt;
	&lt;br /&gt;
	addEventHandler ( &amp;quot;onClientPreRender&amp;quot;, getRootElement(), camRender )&lt;br /&gt;
	sm.moov = 1&lt;br /&gt;
	setTimer ( removeCamHandler, time, 1 )&lt;br /&gt;
	setTimer ( destroyElement, time, 1, sm.object1 )&lt;br /&gt;
	setTimer ( destroyElement, time, 1, sm.object2 )&lt;br /&gt;
	return true&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;
Author: Noneatme(Me)&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Useful_Functions}}&lt;/div&gt;</summary>
		<author><name>MuLTi</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:Useful_Functions&amp;diff=34579</id>
		<title>Template:Useful Functions</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:Useful_Functions&amp;diff=34579"/>
		<updated>2013-01-19T19:01:17Z</updated>

		<summary type="html">&lt;p&gt;MuLTi: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*[[callClientFunction]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to call any clientside function from the server's side.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[callServerFunction]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to call any server-side function from the client's side.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[centerWindow]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function center the window in any resolution.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[Check]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks if it's arguments are of the right types and calls the error-function if one isn't.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[coroutine.resume]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Fix for hidden coroutine error messages&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[colorToRGBA]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function is the opposite of [http://wiki.multitheftauto.com/index.php?title=Tocolor tocolor].&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawColorText]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function draws a dx text with #RRGGBB color codes support.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawEmptyRectangle]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Draws a rectangle that is empty. The thickness can be set.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawGifImage]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function simulates the effect of a GIF image by using image sprites.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawImage3D]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function draws a 3D image.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxDrawRectangle3D]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function draws a 3D rectangle.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxGetFontSizeFromHeight]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function calculate a font size from given height for dxDraw.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[dxGetRealFontHeight]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Accurately measures the pixel height of a font.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[findRotation]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Takes two points and returns the direction from point A to point B.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[FormatDate]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Formats a date on the basis of a format string and returns it.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[GenerateString]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» With this function you can generate a random string with any characters.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getAge]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function calculates the age of a birthday.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getAlivePlayers (Client)|getAlivePlayers]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns all the alive players by a client side, so you can store them into a Gridlist or something like that, faster.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getAlivePlayersInTeam]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of the alive players in a team.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getColorRed]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to retrieve the Red component of a color.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getColorGreen]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to retrieve the Green component of a color.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getColorBlue]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to retrieve the Blue component of a color.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getColorAlpha]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to retrieve the Alpha component of a color.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getCursorMoveOn]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks in which way the cursor is currently moving.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getDistanceBetweenPointAndSegment2D]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Takes point coordinates and line (a segment) starting and ending coordinates. It returns the shortest distance between the point and the line.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getElementSpeed]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to get element speed in kph or mph units.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getJetpackWeaponsEnabled]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of enabled weapons usable on a jetpack.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getOffsetFromXYZ]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to take an entity and a position and calculate the relative offset between them accounting for rotations.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getOnlineAdmins]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function will give the online admins.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getOnlineStaff]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Returns all online staff, names separated by two spaces.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getPlayerFromNamePart]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to get player From his Name part.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getPlayersInPhotograph]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function gets all the players in a photograph.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getPointFromDistanceRotation]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Finds a point based on a starting point, direction and distance.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getResourceSettings]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a table of the resource settings.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getTimestamp]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» With this function you can get the UNIX timestamp.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[getXMLNodes]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Returns all children of a node&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[guiComboBoxAdjustHeight]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Adjusts the combobox to have a correct height.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[guiEditSetActive]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Puts the caret of an editbox to the gived position.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[IfElse]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Returns one of two values based on a boolean expression.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isElementInPhotograph]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks if an element was in the player's camera picture.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isElementInRange]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to check is the element's range to the main point is smaller than (or as big as) the maximum range.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[IsElementMoving]]&amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks if an element is moving.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isPedAiming]]&amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks if a ped is aiming.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isPlayerInTeam]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function check if the player in the team.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isLeapYear]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Checks if the given year is a leap year.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[isVehicleOnRoof]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks whether vehicle is on roof.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[iterElements]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Returns an iterator for your for loops saving time typing ipairs( getElementsByType( type ) ), instead you type: iterElements( type ).&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[mapValue]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function maps a value from one range to another.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[math.round]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Rounds a number whereas the number of decimals to keep and the method may be set.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[multi_check]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function checks one element to many, handy and clean.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[onVehicleWeaponFire]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This code implements an event that is triggered when a player in a vehicle fires a vehicles weapon.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[setColorRed]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to change the Red component of a color.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[setColorGreen]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to change the Green component of a color.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[setColorBlue]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to change the Blue component of a color.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[setColorAlpha]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to change the Alpha component of a color.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[setElementSpeed]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function allows you to set moving element speed in kph or mph units.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[setTableProtected]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Protects a table and makes it read-only.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[setVehicleGravityPoint]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This clientside function sets a vehicle's gravity in the direction of a 3 dimensional coordinate with the strength specified.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[smoothMoveCamera]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This clientside function allows you to create a cinematic camera flight.&lt;br /&gt;
*[[string.count]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function counts a text from a text.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[string.explode]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function splits a string at a given separator pattern and returns a table with the pieces.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[switch]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function allow the value of a variable or expression to control the flow of program execution via a multiway branch.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[table.copy]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function copies a whole table and all the tables in that table.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[table.condition]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function check if both tables is equal. &amp;lt;/span&amp;gt;&lt;br /&gt;
*[[table.empty]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function check is empty table or not.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[table.map]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function goes through a table and replaces every field with the return of the passed function, where the field's value is passed as first argument and optionally more arguments.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[table.random]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function retrieves a random variable from a table.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[table.size]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» Finds the absolute size of a table.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[var dump]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function outputs information about one or more variables using outputConsole()&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[RGBToHex]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function returns a string representing the color in hexadecimal.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[toHex]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function converts a decimal number to a hexadecimal number, as a fix to be used clientside.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[wavelengthToRGBA]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function converts a phisical wavelength of light to a RGBA color.&amp;lt;/span&amp;gt;&lt;br /&gt;
*[[convertNumber]] &amp;lt;span style=&amp;quot;color:gray; font-family:'Georgia',sans-serif; font-size:smaller;&amp;quot;&amp;gt;» This function converts large numbers and adds commas to it. (Example: 100000 -&amp;gt; 100,000)&amp;lt;/span&amp;gt;&lt;br /&gt;
[[Category:Useful Functions]]&lt;/div&gt;</summary>
		<author><name>MuLTi</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SmoothMoveCamera&amp;diff=34578</id>
		<title>SmoothMoveCamera</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SmoothMoveCamera&amp;diff=34578"/>
		<updated>2013-01-19T18:59:20Z</updated>

		<summary type="html">&lt;p&gt;MuLTi: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&lt;br /&gt;
&amp;lt;lowercasetitle/&amp;gt;&lt;br /&gt;
__NOTOC__&lt;br /&gt;
&lt;br /&gt;
This function allows you to create a cinematic-camera-flight, which moves from a specific position to a specific position.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool smoothMoveCamera ( float x1, float y1, float z1, float x1t, float y1t, float z1t, float x2, float y2, float z2, float x2t, float y2t, float z2t, int time )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''x1, y1, z1''': The camera's start position.&lt;br /&gt;
* '''x1t, y1t, z1t''': The camera's start look at.&lt;br /&gt;
* '''x2, y2, z2''': The camera's end position.&lt;br /&gt;
* '''x2t, y2t, z2t''': The camera's end kook at.&lt;br /&gt;
* '''time''': The speed of the camera's movement.&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Clientside Script&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;&lt;br /&gt;
local sm = {}&lt;br /&gt;
sm.moov = 0&lt;br /&gt;
sm.object1, sm.object2 = nil, nil&lt;br /&gt;
&lt;br /&gt;
local function removeCamHandler ()&lt;br /&gt;
	if(sm.moov == 1) then&lt;br /&gt;
		sm.moov = 0&lt;br /&gt;
		removeEventHandler ( &amp;quot;onClientPreRender&amp;quot;, getRootElement(), camRender )&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function camRender ()&lt;br /&gt;
	local x1, y1, z1 = getElementPosition ( sm.object1 )&lt;br /&gt;
	local x2, y2, z2 = getElementPosition ( sm.object2 )&lt;br /&gt;
	setCameraMatrix ( x1, y1, z1, x2, y2, z2 )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function smoothMoveCamera ( x1, y1, z1, x1t, y1t, z1t, x2, y2, z2, x2t, y2t, z2t, time )&lt;br /&gt;
	if(sm.moov == 1) then return false end&lt;br /&gt;
	sm.object1 = createObject ( 1337, x1, y1, z1 )&lt;br /&gt;
	sm.object2 = createObject ( 1337, x1t, y1t, z1t )&lt;br /&gt;
	setElementAlpha ( sm.object1, 0 )&lt;br /&gt;
	setElementAlpha ( sm.object2, 0 )&lt;br /&gt;
	setObjectScale(sm.object1, 0.01)&lt;br /&gt;
	setObjectScale(sm.object2, 0.01)&lt;br /&gt;
	moveObject ( sm.object1, time, x2, y2, z2, 0, 0, 0, &amp;quot;InOutQuad&amp;quot; )&lt;br /&gt;
	moveObject ( sm.object2, time, x2t, y2t, z2t, 0, 0, 0, &amp;quot;InOutQuad&amp;quot; )&lt;br /&gt;
	&lt;br /&gt;
	addEventHandler ( &amp;quot;onClientPreRender&amp;quot;, getRootElement(), camRender )&lt;br /&gt;
	sm.moov = 1&lt;br /&gt;
	setTimer ( removeCamHandler, time, 1 )&lt;br /&gt;
	setTimer ( destroyElement, time, 1, object1 )&lt;br /&gt;
	setTimer ( destroyElement, time, 1, object2 )&lt;br /&gt;
	return true&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;
Author: Noneatme(Me)&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Useful_Functions}}&lt;/div&gt;</summary>
		<author><name>MuLTi</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=SmoothMoveCamera&amp;diff=34577</id>
		<title>SmoothMoveCamera</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=SmoothMoveCamera&amp;diff=34577"/>
		<updated>2013-01-19T18:58:38Z</updated>

		<summary type="html">&lt;p&gt;MuLTi: Created page with &amp;quot;{{Useful Function}} &amp;lt;lowercasetitle/&amp;gt; __NOTOC__  This function allows you to create a cinematic-camera-flight, which moves from a specific position to a specific position.  ==Syn...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Useful Function}}&lt;br /&gt;
&amp;lt;lowercasetitle/&amp;gt;&lt;br /&gt;
__NOTOC__&lt;br /&gt;
&lt;br /&gt;
This function allows you to create a cinematic-camera-flight, which moves from a specific position to a specific position.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;bool smoothMoveCamera ( float x1, float y1, float z1, float x1t, float y1t, float z1t, float x2, float y2, float z2, float x2t, float y2t, float z2t, int time )&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* '''x1, y1, z1''': The camera's start position.&lt;br /&gt;
* '''x1t, y1t, z1t''': The camera's start look at.&lt;br /&gt;
* '''x2, y2, z2''': The camera's end position.&lt;br /&gt;
* '''x2t, y2t, z2t''': The camera's end kook at.&lt;br /&gt;
* '''time''': The speed of the camera's movement.&lt;br /&gt;
&lt;br /&gt;
==Code==&lt;br /&gt;
&amp;lt;section name=&amp;quot;Clientside Script&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;&lt;br /&gt;
local sm = {}&lt;br /&gt;
sm.moov = 0&lt;br /&gt;
sm.object1, sm.object2 = nil, nil&lt;br /&gt;
&lt;br /&gt;
function smoothMoveCamera ( x1, y1, z1, x1t, y1t, z1t, x2, y2, z2, x2t, y2t, z2t, time )&lt;br /&gt;
	if(sm.moov == 1) then return false end&lt;br /&gt;
	sm.object1 = createObject ( 1337, x1, y1, z1 )&lt;br /&gt;
	sm.object2 = createObject ( 1337, x1t, y1t, z1t )&lt;br /&gt;
	setElementAlpha ( sm.object1, 0 )&lt;br /&gt;
	setElementAlpha ( sm.object2, 0 )&lt;br /&gt;
	setObjectScale(sm.object1, 0.01)&lt;br /&gt;
	setObjectScale(sm.object2, 0.01)&lt;br /&gt;
	moveObject ( sm.object1, time, x2, y2, z2, 0, 0, 0, &amp;quot;InOutQuad&amp;quot; )&lt;br /&gt;
	moveObject ( sm.object2, time, x2t, y2t, z2t, 0, 0, 0, &amp;quot;InOutQuad&amp;quot; )&lt;br /&gt;
	&lt;br /&gt;
	addEventHandler ( &amp;quot;onClientPreRender&amp;quot;, getRootElement(), camRender )&lt;br /&gt;
	sm.moov = 1&lt;br /&gt;
	setTimer ( removeCamHandler, time, 1 )&lt;br /&gt;
	setTimer ( destroyElement, time, 1, object1 )&lt;br /&gt;
	setTimer ( destroyElement, time, 1, object2 )&lt;br /&gt;
	return true&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function removeCamHandler ()&lt;br /&gt;
	if(sm.moov == 1) then&lt;br /&gt;
		sm.moov = 0&lt;br /&gt;
		removeEventHandler ( &amp;quot;onClientPreRender&amp;quot;, getRootElement(), camRender )&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function camRender ()&lt;br /&gt;
	local x1, y1, z1 = getElementPosition ( sm.object1 )&lt;br /&gt;
	local x2, y2, z2 = getElementPosition ( sm.object2 )&lt;br /&gt;
	setCameraMatrix ( x1, y1, z1, x2, y2, z2 )&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;
Author: Noneatme(Me)&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Useful_Functions}}&lt;/div&gt;</summary>
		<author><name>MuLTi</name></author>
	</entry>
</feed>