<?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=%C3%81d%C3%A1m+Steer</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=%C3%81d%C3%A1m+Steer"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/%C3%81d%C3%A1m_Steer"/>
	<updated>2026-04-23T04:38:25Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:Stryp&amp;diff=41391</id>
		<title>User:Stryp</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:Stryp&amp;diff=41391"/>
		<updated>2014-08-16T13:10:53Z</updated>

		<summary type="html">&lt;p&gt;Ádám Steer: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Deleting colorcodes from whatever (thanks for '''eeew''') ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;function noColors(input)return input:gsub(&amp;quot;#%x%x%x%x%x%x&amp;quot;,&amp;quot;&amp;quot;)end&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
== isVehicleLockable by me ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;function isVehicleLockable (vehicle)&lt;br /&gt;
    local notLockableVehicles = {594, 606, 607, 611, 584, 608, 435, 450, 591, 539, 441, 464, 501, 465, 564, 472, 473, 493, 595, 484, 430, 453, 452, 446, 454, 581, 509, 481, 462, 521, 463, 510, 522, 461, 448, 468, 586, 425, 520}&lt;br /&gt;
    -- Table for lockable vehicles, 100% from me :D&lt;br /&gt;
    -- Maybe I missed some vehicles, feel free to edit it.&lt;br /&gt;
    local myVehicle = getElementModel(vehicle) -- Get the model ID of the vehicle to work with it.&lt;br /&gt;
    for k, notLockableVehicle in pairs(notLockableVehicles) do -- Do for every notlockable vehicle&lt;br /&gt;
        if myVehicle == notLockableVehicle then -- If the vehicle inputted is a not lockable vehicle&lt;br /&gt;
            return false -- So return false, it isn't lockable&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
    return true -- If we didn't return false before, then it's lockable so return true.&lt;br /&gt;
    end&lt;br /&gt;
    -- By Stryp&lt;br /&gt;
end&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Some announce-like function to write to every players screen ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;function showTextDisplay(player,command,...)&lt;br /&gt;
local display = textCreateDisplay()&lt;br /&gt;
local ann = table.concat(arg,&amp;quot; &amp;quot;)&lt;br /&gt;
for k,v in ipairs(getElementsByType(&amp;quot;player&amp;quot;)) do&lt;br /&gt;
textDisplayAddObserver(display,v)&lt;br /&gt;
end&lt;br /&gt;
txt = textCreateTextItem(ann,0.01,0.95,&amp;quot;low&amp;quot;,0,255,0,255,3)&lt;br /&gt;
textDisplayAddText(display,txt)&lt;br /&gt;
setTimer(textDisplayRemoveText,10000,1,display,txt)&lt;br /&gt;
setTimer(textDestroyDisplay,10000,1,display)&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;ann&amp;quot;,showTextDisplay,true,false)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Server-side, can be used without command handler&lt;br /&gt;
Need to add right to ACL to get it working&lt;br /&gt;
&lt;br /&gt;
== Not valid skin-ids ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; notValidSkins = {1,2,3,4,5,6,8,42,65,74,86,119,149,208,217,265,266,267,268,269,270,271,272,273} &amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Serversided /pos command to show player position ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;addCommandHandler(&amp;quot;pos&amp;quot;,function(p)local x,y,z=getElementPosition(p)outputChatBox(tonumber((&amp;quot;%.5f&amp;quot;):format(x))..&amp;quot;, #00FF00&amp;quot;..tonumber((&amp;quot;%.5f&amp;quot;):format(y))..&amp;quot;, #00FFFF&amp;quot;..tonumber((&amp;quot;%.5f&amp;quot;):format(z)),p,255,0,0,true)end)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Serversided command to give admins an NRG-500 or Infernus ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;for k,v in ipairs(getElementsByType(&amp;quot;player&amp;quot;))do setElementData(v,&amp;quot;s_c&amp;quot;,nil)end&lt;br /&gt;
addCommandHandler(&amp;quot;anrg&amp;quot;,function(p)if not hasObjectPermissionTo(p,&amp;quot;command.kick&amp;quot;,false)then return end local x,y,z=getElementPosition(p)if not getElementData(p,&amp;quot;s_c&amp;quot;)then local v=createVehicle(522,x,y,z)setElementData(p,&amp;quot;s_c&amp;quot;,v)warpPedIntoVehicle(p,v)else local v=getElementData(p,&amp;quot;s_c&amp;quot;)fixVehicle(v)setElementModel(v,522)setElementPosition(v,x,y,z)warpPedIntoVehicle(p,v)end end)&lt;br /&gt;
addCommandHandler(&amp;quot;acar&amp;quot;,function(p)if not hasObjectPermissionTo(p,&amp;quot;command.kick&amp;quot;,false)then return end local x,y,z=getElementPosition(p)if not getElementData(p,&amp;quot;s_c&amp;quot;)then local v=createVehicle(411,x,y,z)setElementData(p,&amp;quot;s_c&amp;quot;,v)warpPedIntoVehicle(p,v)else local v=getElementData(p,&amp;quot;s_c&amp;quot;)fixVehicle(v)setElementModel(v,411)setElementPosition(v,x,y,z)warpPedIntoVehicle(p,v)end end)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Add all 3 lines for the script to work. If you spawn an NRG, then you leave it, you can later type /anrg to get your original NRG-500 fixed to you. If you had an NRG and now want an Infernus, just simply type in /acar and it will convert the NRG to an Infernus for you.&lt;br /&gt;
The script has a built-in check so you don't need to worry about giving everyone free NRG's and Infernuses.&lt;/div&gt;</summary>
		<author><name>Ádám Steer</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=User:Stryp&amp;diff=41390</id>
		<title>User:Stryp</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=User:Stryp&amp;diff=41390"/>
		<updated>2014-08-16T13:07:15Z</updated>

		<summary type="html">&lt;p&gt;Ádám Steer: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Deleting colorcodes from whatever (thanks for '''eeew''') ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;function noColors(input) return input:gsub(&amp;quot;#%x%x%x%x%x%x&amp;quot;,&amp;quot;&amp;quot;) end&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
== isVehicleLockable by me ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;function isVehicleLockable (vehicle)&lt;br /&gt;
    local notLockableVehicles = {594, 606, 607, 611, 584, 608, 435, 450, 591, 539, 441, 464, 501, 465, 564, 472, 473, 493, 595, 484, 430, 453, 452, 446, 454, 581, 509, 481, 462, 521, 463, 510, 522, 461, 448, 468, 586, 425, 520}&lt;br /&gt;
    -- Table for lockable vehicles, 100% from me :D&lt;br /&gt;
    -- Maybe I missed some vehicles, feel free to edit it.&lt;br /&gt;
    local myVehicle = getElementModel(vehicle) -- Get the model ID of the vehicle to work with it.&lt;br /&gt;
    for k, notLockableVehicle in pairs(notLockableVehicles) do -- Do for every notlockable vehicle&lt;br /&gt;
        if myVehicle == notLockableVehicle then -- If the vehicle inputted is a not lockable vehicle&lt;br /&gt;
            return false -- So return false, it isn't lockable&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
    return true -- If we didn't return false before, then it's lockable so return true.&lt;br /&gt;
    end&lt;br /&gt;
    -- By Stryp&lt;br /&gt;
end&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Some announce-like function to write to every players screen ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;function showTextDisplay(player,command,...)&lt;br /&gt;
local display = textCreateDisplay()&lt;br /&gt;
local ann = table.concat(arg,&amp;quot; &amp;quot;)&lt;br /&gt;
for k,v in ipairs(getElementsByType(&amp;quot;player&amp;quot;)) do&lt;br /&gt;
textDisplayAddObserver(display,v)&lt;br /&gt;
end&lt;br /&gt;
txt = textCreateTextItem(ann,0.01,0.95,&amp;quot;low&amp;quot;,0,255,0,255,3)&lt;br /&gt;
textDisplayAddText(display,txt)&lt;br /&gt;
setTimer(textDisplayRemoveText,10000,1,display,txt)&lt;br /&gt;
setTimer(textDestroyDisplay,10000,1,display)&lt;br /&gt;
end&lt;br /&gt;
addCommandHandler(&amp;quot;ann&amp;quot;,showTextDisplay,true,false)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Server-side, can be used without command handler&lt;br /&gt;
Need to add right to ACL to get it working&lt;br /&gt;
&lt;br /&gt;
== Not valid skin-ids ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; notValidSkins = {1,2,3,4,5,6,8,42,65,74,86,119,149,208,217,265,266,267,268,269,270,271,272,273} &amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Serversided /pos command to show player position ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;addCommandHandler(&amp;quot;pos&amp;quot;,function(p)local x,y,z=getElementPosition(p)outputChatBox(tonumber((&amp;quot;%.5f&amp;quot;):format(x))..&amp;quot;, #00FF00&amp;quot;..tonumber((&amp;quot;%.5f&amp;quot;):format(y))..&amp;quot;, #00FFFF&amp;quot;..tonumber((&amp;quot;%.5f&amp;quot;):format(z)),p,255,0,0,true)end)&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Serversided command to give admins an NRG-500 or Infernus ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;addCommandHandler(&amp;quot;anrg&amp;quot;,function(p)if not hasObjectPermissionTo(p,&amp;quot;command.kick&amp;quot;,false)then return end local x,y,z=getElementPosition(p)if not getElementData(p,&amp;quot;s_c&amp;quot;)then local v=createVehicle(522,x,y,z)setElementData(p,&amp;quot;s_c&amp;quot;,v)warpPedIntoVehicle(p,v)else local v=getElementData(p,&amp;quot;s_c&amp;quot;)fixVehicle(v)setElementModel(v,522)setElementPosition(v,x,y,z)warpPedIntoVehicle(p,v)end end)&lt;br /&gt;
addCommandHandler(&amp;quot;acar&amp;quot;,function(p)if not hasObjectPermissionTo(p,&amp;quot;command.kick&amp;quot;,false)then return end local x,y,z=getElementPosition(p)if not getElementData(p,&amp;quot;s_c&amp;quot;)then local v=createVehicle(411,x,y,z)setElementData(p,&amp;quot;s_c&amp;quot;,v)warpPedIntoVehicle(p,v)else local v=getElementData(p,&amp;quot;s_c&amp;quot;)fixVehicle(v)setElementModel(v,411)setElementPosition(v,x,y,z)warpPedIntoVehicle(p,v)end end)&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Ádám Steer</name></author>
	</entry>
</feed>