<?xml version="1.0"?>
<rss version="2.0"><channel><title>Scripting Latest Topics</title><link>https://forum.multitheftauto.com/forum/71-scripting/</link><description>Scripting Latest Topics</description><language>en</language><item><title>Hydra Skin - Help Me !</title><link>https://forum.multitheftauto.com/topic/148143-hydra-skin-help-me/</link><description><![CDATA[<p lang="en" xml:lang="en">
	Hello everyone,
</p>

<p lang="en" xml:lang="en">
	I have a problem with the Hydra (ID 520) in MTA.
</p>

<p lang="en" xml:lang="en">
	I want to add <strong>multiple Hydra skins</strong> to my server. I do <strong>not</strong> want to assign them to other vehicle IDs because I want them to behave exactly like a Hydra.
</p>

<p lang="en" xml:lang="en">
	Right now I am using <strong>vehicle custom models</strong>. When I create a custom Hydra model, the vehicle spawns, but it <strong>does not have the original Hydra abilities</strong>, such as:
</p>

<ul lang="en" xml:lang="en">
	<li>
		Shooting missiles
	</li>
	<li>
		Retracting landing gear
	</li>
	<li>
		VTOL mode (vertical take‑off and hover)
	</li>
</ul>

<p lang="en" xml:lang="en">
	So it looks like a Hydra, but it behaves like a normal plane.
</p>

<p lang="en" xml:lang="en">
	What I want is to have <strong>many different Hydra skins (more than 10 fighter jets)</strong> on my server, and all of them should keep the <strong>default Hydra mechanics in MTA</strong>.
</p>

<p lang="en" xml:lang="en">
	In other words:
</p>

<p lang="en" xml:lang="en">
	How can I add multiple fighter jet skins that <strong>all keep the default Hydra functionality</strong> instead of losing its special features?
</p>

<p lang="en" xml:lang="en">
	Any help or suggestions would be appreciated.
</p>

<p lang="en" xml:lang="en">
	Thanks.
</p>
]]></description><guid isPermaLink="false">148143</guid><pubDate>Sun, 28 Jun 2026 17:56:33 +0000</pubDate></item><item><title>Want "Open interior" idea and architectures</title><link>https://forum.multitheftauto.com/topic/148121-want-open-interior-idea-and-architectures/</link><description><![CDATA[<p>
	Greetings guys
</p>

<p>
	I thinking about game modes without teleporting in interior of buildings; so think about a game mode you walk in LS and all buildings have their own cells (in place);
</p>

<p>
	This game mode we think about it have essential challenges &amp; problems to solve:
</p>

<p>
	players can't load all of cells and interior objects; so GM needs "lazy loading system"; and we need understand when should load objects? How to load objects? In 3d design and modeling level also need how to compress objects under buildings and if we have transparent window how to lighting them;
</p>

<p>
	I start and see how to modeling; i think best architecture for modeling is per <strong>building model</strong> we need to: change some parts of root model and then make static interior face, next write a script to find ever root model on map and place interior face in it and next need a script to load designing objects like <i>pot, papers, computer, chairs, etc </i>; and next create events to load it and many challenges for building entries and more utilities like window, doors with locker and etc
</p>

<p>
	And this is fun so I want to work on it and in this topic I like to discussion about this idea, architectures and etc
</p>

<p>
	So I would be happy if help me <span><img alt=":)" data-emoticon="" height="20" src="https://forum.multitheftauto.com/uploads/emoticons/smile.png" srcset="https://forum.multitheftauto.com/uploads/emoticons/smile@2x.png 2x" title=":)" width="20" /></span>
</p>
]]></description><guid isPermaLink="false">148121</guid><pubDate>Sun, 21 Jun 2026 16:50:32 +0000</pubDate></item><item><title>Misterix Script (2026) [AI]</title><link>https://forum.multitheftauto.com/topic/148027-misterix-script-2026-ai/</link><description><![CDATA[<div class="ipsEmbeddedVideo" contenteditable="false">
	<div>
		<iframe allowfullscreen="" frameborder="0" height="113" title="MTA:SA - Misterix Mod 2026 (Showcase)" width="200" data-embed-src="https://www.youtube-nocookie.com/embed/JrxZAm1eFw8?feature=oembed"></iframe>
	</div>
</div>

<p>
	Misterix resource for Multi Theft Auto. Inspired by the original Misterix script on MTA resources made by Rhypasa; <a href="https://community.multitheftauto.com/index.php?p=resources&amp;s=details&amp;id=15163," rel="external nofollow">https://community.multitheftauto.com/index.php?p=resources&amp;s=details&amp;id=15163,</a> and by the singleplayer mod. My own take on this.
</p>

<p>
	<span style="font-size:26px;"><strong>Note about AI usage</strong></span><br />
	I don't condone you guys making scripts with AI - it sucks and its like a sysyphean job. Hire a scripter and he will do a 1000% better script than this. My dream was to play a way cooler version of misterix than Rhypasa made, because I felt some stuff were missing there, and script weren't updated that often so I decided to fulfill my own vision of the script with the help of an AI . I scripted few smaller scripts before for my own use (like a script, which permits people from certain countries to enter the server) on my own and let me tell you - learning scripting is much more fun than using an AI for it. You can use AI to learn scripting and such, and attempt to do these kinds of projects by yourself but I recommend you to do that privately. I also don't sell it, which to be honest - selling an AI script would be such a dog:~ move. But if anyone else, dreamt about this kind of Misterix script (with a lot of features like this) this is for those people who just want to have fun and always wanted to try it and don't mind it being an mostly made AI script. With the help of AI I realized that vision, how a misterix script in my opinion should look like, because I'm not that experienced like some of the veterans here are. I hope, despite like 99% of the code being AI - you have fun playing this, or watching the vid for it. Moreover, if you can make it better with actual human input and skill, you always can, GitHub link with all the files is below - and I'm rooting for you. Call it an AI Slop, insult me, call me names, flame me even more or whatever - I'm still amazed that AI can pull off something like this. I don't think it's ready for major public use, but I have a server just in case you want to test it out, it's not open most of the times because it's a free server and we had played around for fun with my friend there. If you want it msg me privately
</p>

<p>
	I shared the script on GitHub. If you want to make a fully human remake, or check how AI made some stuff like AI, car AI and all that sh*t then visit it here:
</p>

<p>
	<a href="https://github.com/AlfredoAnonym/Misterix-MTA-SA" rel="external nofollow">https://github.com/AlfredoAnonym/Misterix-MTA-SA</a>
</p>

<p>
	Feel free to make your own versions of this script, implement any stuff from this script to yours - I'd love to see an actual fully human-made misterix script better than this. What I will try to do is I will try to fetch the music files so instead of downloading grueling 60+ mb file, you will be able to load in quickly to the server because music could be played from Github and fetched.
</p>

<p>
	<span style="font-size:26px;"><strong>Features</strong></span>
</p>

<ul>
	<li>
		Create your own ped mysteries (with /cm command) - you need to be an admin to do this
	</li>
	<li>
		Create car mysteries as well (with separate car ai)
	</li>
	<li>
		Skin mods for various peds and music that you can always edit / add in the script
	</li>
	<li>
		AI can throw projectiles at you, or fire with projectiles (spraycan still doesn't work, but flame thrower does for example)
	</li>
	<li>
		Taxi system for few myths for now (check out the video to know how to make more taxi paths)
	</li>
	<li>
		Weapon buying system (for future gamemode)
	</li>
	<li>
		Health bars for myths
	</li>
	<li>
		Not only 1 peds in one myth, there can be multiple peds (check out Epsilon or Zombies-Nemesis)
	</li>
	<li>
		Spawn friendly Yakuza with /yakuza command - they will help you battle the myths. Better spawn them after you accepted the mission, you might see some glitches like them not getting out of the vehicle. I also tried to make Drive-by (with AI too) and they just seem to have an invisible weapon out of the car window, and they don't shoot with it so yeah, but they get out / get in of the cars, attack the myths, that's enough for me <img alt=":)" data-emoticon="" height="20" src="https://forum.multitheftauto.com/uploads/emoticons/smile.png" srcset="https://forum.multitheftauto.com/uploads/emoticons/smile@2x.png 2x" title=":)" width="20" /> They also if there are no car seats left, look for a nearby car and drive it behind you (that's a nice touch I think)
	</li>
	<li>
		Save system (saves your skin, money, stats - sometimes muscles do not save or aren't loaded) (for future gamemode, still buggy)
	</li>
	<li>
		Garage: You can add any vehicle to your garage by typing a command, and then you can retrieve it from the garage by typing /grg and you'll spawn inside of it.
	</li>
</ul>

<p>
	<span style="font-size:26px;"><strong>In which gamemode this script is supposed to be played on?</strong></span>
</p>

<ul>
	<li>
		It should be played on Freeoram now. I planned to make it a separate gamemode, but I don't have a lot of help with it and frankly its hard to do a separate gamemode if you don't know scripting. I only script (small easier stuff) by myself, but most of the code is sadly AI for this script (and I feel like I need to disclose that). I edited stuff myself too, and if you are a better scripter you can make this script a lot more better, and you can remake it even better than I did. I wanted that kind-of misterix script to be in MTA:SA, and that one that we played had only few mysteries, which half of them never worked for me and my friend - and this was the dream, that AI helped us to achieve (to play a better version of "misterix") it still has glitches
	</li>
</ul>
]]></description><guid isPermaLink="false">148027</guid><pubDate>Sat, 23 May 2026 08:43:02 +0000</pubDate></item><item><title>Object Preview with paintjobbed car</title><link>https://forum.multitheftauto.com/topic/147990-object-preview-with-paintjobbed-car/</link><description><![CDATA[<p>
	Hello guys! Im developing my Cops and Robber server. I use object preview for my homepanel and for my " My Vehicles " panel. I asking for your help. Is there any methood, solutions to show my car with its bought paintjob on it or not? 
</p>

<p>
	<a href="https://imgur.com/a/RAtY34R" rel="external nofollow">object preview</a>
</p>
]]></description><guid isPermaLink="false">147990</guid><pubDate>Tue, 05 May 2026 02:40:47 +0000</pubDate></item><item><title>[HELP] Texture error: Any idea how to fix it?</title><link>https://forum.multitheftauto.com/topic/146929-help-texture-error-any-idea-how-to-fix-it/</link><description><![CDATA[<p>
	Hi, I'm having this issue with textures on custom models. As you can see in the video, when I move a little farther away, the custom texture fades out and gets replaced by the vanilla game texture.
</p>

<p>
	I've already tried engineSetModelLODDistance, changing arguments in engineImportTXD and engineLoadTXD, but the problem keeps happening. Any ideas? 
</p>

<p>
	I remember this didn't happen in older versions of MTA.
</p>

<p>
	<br />
	<a href="https://www.youtube.com/watch?v=6sWZeKeRm4k" rel="external nofollow">https://www.youtube.com/watch?v=6sWZeKeRm4k</a>
</p>

<p>
	 
</p>

<p>
	<img alt="spacer.png" class="ipsImage" data-ratio="56.24" height="496" style="height:auto;" width="882" data-src="https://media.discordapp.net/attachments/1069695777837957184/1458277766196756493/image.png?ex=695f0e80&amp;is=695dbd00&amp;hm=625eb6a798f8ec76b2759449553106588a4a2b9ff729038ec16f5e47803c96b5&amp;=&amp;format=webp&amp;quality=lossless&amp;width=882&amp;height=496" src="https://forum.multitheftauto.com/applications/core/interface/js/spacer.png" />
</p>
]]></description><guid isPermaLink="false">146929</guid><pubDate>Tue, 23 Dec 2025 22:42:17 +0000</pubDate></item><item><title>Problem with reverse lights script for vehicles</title><link>https://forum.multitheftauto.com/topic/147977-problem-with-reverse-lights-script-for-vehicles/</link><description><![CDATA[<p>
	Hi, I wanted to make reverse lights for cars on my server and found a suitable script from Lord Henry on the Wiki. <a href="https://wiki.multitheftauto.com/wiki/IsVehicleReversing" rel="external nofollow">https://wiki.multitheftauto.com/wiki/IsVehicleReversing</a> I've already made lights for many IDs, but it turns out that the lights only work properly within a radius of about 300 meters from the car's spawn point. At greater distances, the lights start to turn on for a short period of time (specified in the timer at the end of the code), then turn off, and after about a second, turn on again and turn off. How can I solve this problem? Lord Henry said that when he made this script a long time ago, everything worked fine. Perhaps it depends on the MTA version, or he didn't quite understand the problem. It makes no difference whether the script is running on the server or the client. The server.lua code, which is almost identical to the standard one and works the same way:
</p>

<pre class="ipsCode prettyprint lang-lua prettyprinted"><span class="kwd">function</span><span class="pun"> </span><span class="pln">isVehicleReversing</span><span class="pun">(</span><span class="pln">theVehicle</span><span class="pun">)</span><span class="pln">
    </span><span class="kwd">local</span><span class="pun"> </span><span class="pln">getMatrix</span><span class="pun"> = </span><span class="pln">getElementMatrix</span><span class="pun"> (</span><span class="pln">theVehicle</span><span class="pun">)</span><span class="pln">
    </span><span class="kwd">local</span><span class="pun"> </span><span class="pln">getVelocity</span><span class="pun"> = </span><span class="pln">Vector3</span><span class="pun"> (</span><span class="pln">getElementVelocity</span><span class="pun">(</span><span class="pln">theVehicle</span><span class="pun">))</span><span class="pln">
    </span><span class="kwd">local</span><span class="pun"> </span><span class="pln">getVectorDirection</span><span class="pun"> = (</span><span class="pln">getVelocity</span><span class="pun">.</span><span class="pln">x</span><span class="pun"> * </span><span class="pln">getMatrix</span><span class="pun">[</span><span class="lit">2</span><span class="pun">][</span><span class="lit">1</span><span class="pun">]) + (</span><span class="pln">getVelocity</span><span class="pun">.</span><span class="pln">y</span><span class="pun"> * </span><span class="pln">getMatrix</span><span class="pun">[</span><span class="lit">2</span><span class="pun">][</span><span class="lit">2</span><span class="pun">]) + (</span><span class="pln">getVelocity</span><span class="pun">.</span><span class="pln">z</span><span class="pun"> * </span><span class="pln">getMatrix</span><span class="pun">[</span><span class="lit">2</span><span class="pun">][</span><span class="lit">3</span><span class="pun">])</span><span class="pln">
    </span><span class="kwd">if</span><span class="pun"> (</span><span class="pln">getVectorDirection</span><span class="pun"> &lt; </span><span class="lit">0</span><span class="pun">) </span><span class="kwd">then</span><span class="pln">
        </span><span class="kwd">return</span><span class="pun"> </span><span class="kwd">true</span><span class="pln">
    </span><span class="kwd">end</span><span class="pln">
    </span><span class="kwd">return</span><span class="pun"> </span><span class="kwd">false</span><span class="pln">
</span><span class="kwd">end</span><span class="pln">

rearLightL</span><span class="pun"> = {}</span><span class="pln">
rearLightR</span><span class="pun"> = {}</span><span class="pln">

</span><span class="kwd">function</span><span class="pun"> </span><span class="pln">setVehicleRearLightState566</span><span class="pun"> (</span><span class="pln">theVehicle</span><span class="pun">, </span><span class="pln">light</span><span class="pun">, </span><span class="pln">state</span><span class="pun">)</span><span class="pln">
    </span><span class="kwd">local</span><span class="pun"> </span><span class="pln">x</span><span class="pun">, </span><span class="pln">y</span><span class="pun">, </span><span class="pln">z</span><span class="pun"> = </span><span class="pln">getElementPosition</span><span class="pun"> (</span><span class="pln">theVehicle</span><span class="pun">)</span><span class="pln">
    </span><span class="kwd">if</span><span class="pun"> </span><span class="pln">getElementModel</span><span class="pun"> (</span><span class="pln">theVehicle</span><span class="pun">) == </span><span class="lit">566</span><span class="pun"> </span><span class="kwd">then</span><span class="pun"> 
        </span><span class="kwd">if</span><span class="pun"> </span><span class="pln">light</span><span class="pun"> == </span><span class="lit">0</span><span class="pun"> </span><span class="kwd">then</span><span class="pln">
            </span><span class="kwd">if</span><span class="pun"> </span><span class="pln">state</span><span class="pun"> == </span><span class="lit">0</span><span class="pun"> </span><span class="kwd">then</span><span class="pln">
                </span><span class="kwd">if</span><span class="pun"> </span><span class="kwd">not</span><span class="pun"> </span><span class="pln">rearLightL</span><span class="pun">[</span><span class="pln">theVehicle</span><span class="pun">] </span><span class="kwd">then</span><span class="pln">
                    rearLightL</span><span class="pun">[</span><span class="pln">theVehicle</span><span class="pun">] = </span><span class="pln">createMarker</span><span class="pun"> (</span><span class="pln">x</span><span class="pun">, </span><span class="pln">y</span><span class="pun">, </span><span class="pln">z</span><span class="pun">, </span><span class="str">"corona"</span><span class="pun">, </span><span class="lit">0.1</span><span class="pun">, </span><span class="lit">255</span><span class="pun">, </span><span class="lit">255</span><span class="pun">, </span><span class="lit">220</span><span class="pun">, </span><span class="lit">200</span><span class="pun">)</span><span class="pln">
                </span><span class="kwd">end</span><span class="pln">
                setMarkerSize</span><span class="pun"> (</span><span class="pln">rearLightL</span><span class="pun">[</span><span class="pln">theVehicle</span><span class="pun">], </span><span class="lit">0.12</span><span class="pun">)</span><span class="pln">
                attachElements</span><span class="pun"> (</span><span class="pln">rearLightL</span><span class="pun">[</span><span class="pln">theVehicle</span><span class="pun">], </span><span class="pln">theVehicle</span><span class="pun">, </span><span class="lit">-0.45</span><span class="pun">, </span><span class="lit">-2.69</span><span class="pun">, </span><span class="lit">0.01</span><span class="pun">)</span><span class="pln">
            </span><span class="kwd">elseif</span><span class="pun"> </span><span class="pln">state</span><span class="pun"> == </span><span class="lit">1</span><span class="pun"> </span><span class="kwd">then</span><span class="pln">
                </span><span class="kwd">if</span><span class="pun"> </span><span class="pln">rearLightL</span><span class="pun">[</span><span class="pln">theVehicle</span><span class="pun">] </span><span class="kwd">then</span><span class="pln">
                    setMarkerSize</span><span class="pun"> (</span><span class="pln">rearLightL</span><span class="pun">[</span><span class="pln">theVehicle</span><span class="pun">], </span><span class="lit">0</span><span class="pun">)</span><span class="pln">
                </span><span class="kwd">end</span><span class="pln">
            </span><span class="kwd">elseif</span><span class="pun"> </span><span class="pln">state</span><span class="pun"> == </span><span class="lit">2</span><span class="pun"> </span><span class="kwd">then</span><span class="pln">
                </span><span class="kwd">if</span><span class="pun"> </span><span class="pln">rearLightL</span><span class="pun">[</span><span class="pln">theVehicle</span><span class="pun">] </span><span class="kwd">then</span><span class="pln">
                    destroyElement</span><span class="pun"> (</span><span class="pln">rearLightL</span><span class="pun">[</span><span class="pln">theVehicle</span><span class="pun">])</span><span class="pln">
                    rearLightL</span><span class="pun">[</span><span class="pln">theVehicle</span><span class="pun">] = </span><span class="kwd">nil</span><span class="pln">
                </span><span class="kwd">end</span><span class="pln">
            </span><span class="kwd">end</span><span class="pln">
        </span><span class="kwd">elseif</span><span class="pun"> </span><span class="pln">light</span><span class="pun"> == </span><span class="lit">1</span><span class="pun"> </span><span class="kwd">then</span><span class="pln">
            </span><span class="kwd">if</span><span class="pun"> </span><span class="pln">state</span><span class="pun"> == </span><span class="lit">0</span><span class="pun"> </span><span class="kwd">then</span><span class="pln">
                </span><span class="kwd">if</span><span class="pun"> </span><span class="kwd">not</span><span class="pun"> </span><span class="pln">rearLightR</span><span class="pun">[</span><span class="pln">theVehicle</span><span class="pun">] </span><span class="kwd">then</span><span class="pln">
                    rearLightR</span><span class="pun">[</span><span class="pln">theVehicle</span><span class="pun">] = </span><span class="pln">createMarker</span><span class="pun"> (</span><span class="pln">x</span><span class="pun">, </span><span class="pln">y</span><span class="pun">, </span><span class="pln">z</span><span class="pun">, </span><span class="str">"corona"</span><span class="pun">, </span><span class="lit">0.1</span><span class="pun">, </span><span class="lit">255</span><span class="pun">, </span><span class="lit">255</span><span class="pun">, </span><span class="lit">220</span><span class="pun">, </span><span class="lit">200</span><span class="pun">)</span><span class="pln">
                </span><span class="kwd">end</span><span class="pln">
                setMarkerSize</span><span class="pun"> (</span><span class="pln">rearLightR</span><span class="pun">[</span><span class="pln">theVehicle</span><span class="pun">], </span><span class="lit">0.12</span><span class="pun">)</span><span class="pln">
                attachElements</span><span class="pun"> (</span><span class="pln">rearLightR</span><span class="pun">[</span><span class="pln">theVehicle</span><span class="pun">], </span><span class="pln">theVehicle</span><span class="pun">, </span><span class="lit">0.45</span><span class="pun">, </span><span class="lit">-2.69</span><span class="pun">, </span><span class="lit">0.01</span><span class="pun">)</span><span class="pln">
            </span><span class="kwd">elseif</span><span class="pun"> </span><span class="pln">state</span><span class="pun"> == </span><span class="lit">1</span><span class="pun"> </span><span class="kwd">then</span><span class="pln">
                </span><span class="kwd">if</span><span class="pun"> </span><span class="pln">rearLightR</span><span class="pun">[</span><span class="pln">theVehicle</span><span class="pun">] </span><span class="kwd">then</span><span class="pln">
                    setMarkerSize</span><span class="pun"> (</span><span class="pln">rearLightR</span><span class="pun">[</span><span class="pln">theVehicle</span><span class="pun">], </span><span class="lit">0</span><span class="pun">)</span><span class="pln">
                </span><span class="kwd">end</span><span class="pln">
            </span><span class="kwd">elseif</span><span class="pun"> </span><span class="pln">state</span><span class="pun"> == </span><span class="lit">2</span><span class="pun"> </span><span class="kwd">then</span><span class="pln">
                </span><span class="kwd">if</span><span class="pun"> </span><span class="pln">rearLightR</span><span class="pun">[</span><span class="pln">theVehicle</span><span class="pun">] </span><span class="kwd">then</span><span class="pln">
                    destroyElement</span><span class="pun"> (</span><span class="pln">rearLightR</span><span class="pun">[</span><span class="pln">theVehicle</span><span class="pun">])</span><span class="pln">
                    rearLightR</span><span class="pun">[</span><span class="pln">theVehicle</span><span class="pun">] = </span><span class="kwd">nil</span><span class="pln">
                </span><span class="kwd">end</span><span class="pln">
            </span><span class="kwd">end</span><span class="pln">
        </span><span class="kwd">else</span><span class="pln">
            </span><span class="kwd">return</span><span class="pun"> </span><span class="kwd">false</span><span class="pln">
        </span><span class="kwd">end</span><span class="pln">
    </span><span class="kwd">end</span><span class="pln">
</span><span class="kwd">end</span><span class="pln">

</span><span class="kwd">function</span><span class="pun"> </span><span class="pln">isRearing</span><span class="pun"> ()</span><span class="pln">
    </span><span class="kwd">local</span><span class="pun"> </span><span class="pln">everyone</span><span class="pun"> = </span><span class="pln">getElementsByType</span><span class="pun"> (</span><span class="str">"player"</span><span class="pun">)</span><span class="pln">
    </span><span class="kwd">for</span><span class="pun"> </span><span class="pln">i</span><span class="pun">,</span><span class="pln">v</span><span class="pun"> </span><span class="kwd">in</span><span class="pun"> </span><span class="pln">ipairs</span><span class="pun"> (</span><span class="pln">everyone</span><span class="pun">) </span><span class="kwd">do</span><span class="pln">
        </span><span class="kwd">local</span><span class="pun"> </span><span class="pln">vehicle</span><span class="pun"> = </span><span class="pln">getPedOccupiedVehicle</span><span class="pun"> (</span><span class="pln">v</span><span class="pun">)</span><span class="pln">
        </span><span class="kwd">if</span><span class="pun"> </span><span class="pln">vehicle</span><span class="pun"> </span><span class="kwd">then</span><span class="pln">
            </span><span class="kwd">if</span><span class="pun"> </span><span class="pln">isVehicleReversing</span><span class="pun">(</span><span class="pln">vehicle</span><span class="pun">) </span><span class="kwd">then</span><span class="pln">
                setVehicleRearLightState566</span><span class="pun"> (</span><span class="pln">vehicle</span><span class="pun">, </span><span class="lit">0</span><span class="pun">, </span><span class="lit">0</span><span class="pun">) </span><span class="com">-- Turns the 'back light' on.</span><span class="pln">
                setVehicleRearLightState566</span><span class="pun"> (</span><span class="pln">vehicle</span><span class="pun">, </span><span class="lit">1</span><span class="pun">, </span><span class="lit">0</span><span class="pun">)</span><span class="pln">
            </span><span class="kwd">else</span><span class="pln">
                setVehicleRearLightState566</span><span class="pun"> (</span><span class="pln">vehicle</span><span class="pun">, </span><span class="lit">0</span><span class="pun">, </span><span class="lit">1</span><span class="pun">) </span><span class="com">-- Turns the 'back light' off.</span><span class="pln">
                setVehicleRearLightState566</span><span class="pun"> (</span><span class="pln">vehicle</span><span class="pun">, </span><span class="lit">1</span><span class="pun">, </span><span class="lit">1</span><span class="pun">)</span><span class="pln">
            </span><span class="kwd">end</span><span class="pln">
        </span><span class="kwd">end</span><span class="pln">
    </span><span class="kwd">end</span><span class="pln">
</span><span class="kwd">end</span><span class="pln">
setTimer</span><span class="pun"> (</span><span class="pln">isRearing</span><span class="pun">, </span><span class="lit">100</span><span class="pun">, </span><span class="lit">0</span><span class="pun">)</span></pre>

<p>
	There's a similar script that creates flashing lights, and I sometimes use it as hazard lights. <a href="https://forum.multitheftauto.com/topic/37967-rel-emerlights-10-emergency-lights/" rel="">https://forum.multitheftauto.com/topic/37967-rel-emerlights-10-emergency-lights/</a> It works across the entire map in main dimension. Both scripts create markers in coordinates specified in the script and don't require model modifications.
</p>
]]></description><guid isPermaLink="false">147977</guid><pubDate>Mon, 27 Apr 2026 11:51:25 +0000</pubDate></item><item><title>Is there a way to restore SWAT quotes?</title><link>https://forum.multitheftauto.com/topic/147976-is-there-a-way-to-restore-swat-quotes/</link><description><![CDATA[<p>
	I tried using setPedVoice and getPedVoice function but nothing worked, the swat officer skin is already assigned the correct ped voice ("PED_TYPE_EMG", "VOICE_EMG_SWAT1") but they don't say anything when they punch/jack/get bumped on 
</p>

<p>
	 
</p>

<p>
	 
</p>
]]></description><guid isPermaLink="false">147976</guid><pubDate>Sun, 26 Apr 2026 08:53:03 +0000</pubDate></item><item><title>[Guidance] About my gamemode.</title><link>https://forum.multitheftauto.com/topic/134009-guidance-about-my-gamemode/</link><description><![CDATA[<p>
	Hello my dear <abbr title="Multi Theft Auto">MTA</abbr> friends, and community. I am opening this topic because i am lost as a scripter and unsure of where to go and what to do.
</p>

<p>
	I've been learning Lua scripting(<abbr title="Multi Theft Auto">MTA</abbr> related only) for 2/3 months straight now everyday.
</p>

<p>
	I do know how to create basic scripts and addEvents client and server side and triggerEvents. But the gamemode thing is new to me, and i have no references on wiki to look at since i'm not going to be using map manager.
</p>

<p>
	Can u please(pro scripters) provide me with some details on what should i aim first to get my gamemode finished while learning in a short time? And what should the steps be? Sorry for making this long tho. And if anyone has some free time and do like to go into discord and help me learn more, i'd be thankful.
</p>
]]></description><guid isPermaLink="false">134009</guid><pubDate>Sat, 22 Jan 2022 02:23:05 +0000</pubDate></item><item><title>How to understand the position of the barrier?</title><link>https://forum.multitheftauto.com/topic/147952-how-to-understand-the-position-of-the-barrier/</link><description><![CDATA[<p>
	How to understand the position of the barrier? 
</p>

<p>
	I wanted to copy the position of the barriers, but I can't figure out what position the barriers are in! Help, what position is the barrier in?
</p>
]]></description><guid isPermaLink="false">147952</guid><pubDate>Mon, 13 Apr 2026 15:53:38 +0000</pubDate></item><item><title>[Help]Vultaic MGM</title><link>https://forum.multitheftauto.com/topic/147619-helpvultaic-mgm/</link><description><![CDATA[<p>
	<b>Subject: Seeking Paid Assistance for Vultaic MGM Setup &amp; Debugging</b>
</p>

<p>
	<b>Hello everyone,</b>
</p>

<p>
	I am currently working on a project using the <b>Vultaic Multigamemode (MGM)</b> framework, but I am encountering several persistent issues during the installation and configuration phase. Despite my efforts, I haven’t been able to get the environment fully stable and functional.
</p>

<p>
	I am looking for an experienced developer who is deeply familiar with the Vultaic framework, its module dependencies, and SQL integrations.
</p>

<p>
	<b>What I need help with:</b>
</p>

<ul>
	<li>
		<p>
			Proper installation and resource structuring of the Vultaic MGM.
		</p>
	</li>
	<li>
		<p>
			Fixing script errors (nil values, database connection issues).
		</p>
	</li>
	<li>
		<p>
			Ensuring all game modes (Race, DM, Shooter, etc.) load correctly without map errors.
		</p>
	</li>
	<li>
		<p>
			General optimization for server performance.
		</p>
	</li>
</ul>

<p>
	I value your time and expertise, so <b>I am willing to pay for professional assistance</b> to get this resolved efficiently.
</p>

<p>
	If you have experience with this specific framework and are interested in helping out, please send me a PM here or add me on Discord: <b>[Discord istifadəçi adınızı bura yazın]</b>
</p>

<p>
	Looking forward to hearing from you. Thanks!
</p>
<p>
	discord:calmn9
</p>
]]></description><guid isPermaLink="false">147619</guid><pubDate>Tue, 31 Mar 2026 00:18:03 +0000</pubDate></item><item><title>HELP ON AI BOSS SCRIPT</title><link>https://forum.multitheftauto.com/topic/147103-help-on-ai-boss-script/</link><description><![CDATA[<p>
	Guys i have a boss script that uses slothbot and extra health and i want to make the boss jump is a player is in a high place can someone help?
</p>

<p>
	 
</p>

<p>
	-- server.lua<br />
	-- Sistema <abbr title="Definitive Edition">de</abbr> bosses completo com loot, respawn correto, dano por ataque e animação controlada
</p>

<p>
	local attackCooldown = {} -- cooldown <abbr title="Definitive Edition">de</abbr> ataque por boss<br />
	local nextSpawn = {}      -- timestamp do próximo spawn permitido <abbr title="Definitive Edition">de</abbr> cada boss
</p>

<p>
	-- Função para spawnar o boss<br />
	local function spawnBoss(bossID)<br />
	    local boss = Config.Bosses[bossID]<br />
	    if not boss then return end
</p>

<p>
	    -- Checa se o boss já existe<br />
	    if boss.ped and isElement(boss.ped) then return end
</p>

<p>
	    local ped = exports.slothbot:spawnBot(<br />
	        boss.position[1], boss.position[2], boss.position[3], boss.position[4] or 0,<br />
	        boss.skin, 0, 0,<br />
	        nil, boss.weapon, "guard", nil<br />
	    )
</p>

<p>
	    if ped and isElement(ped) then<br />
	        boss.ped = ped<br />
	        setElementInterior(ped, boss.interior)<br />
	        setElementDimension(ped, boss.dimension)<br />
	        setElementHealth(ped, boss.baseHealth)
</p>

<p>
	        exports.extra_health:setElementExtraHealth(ped, boss.extraHealth)<br />
	        setElementData(ped,"extra_health",boss.extraHealth)<br />
	        setElementData(ped,"extra_health_current",boss.extraHealth)<br />
	        setElementData(ped,"boss",true)<br />
	        setElementData(ped,"boss:id",bossID)<br />
	        setElementData(ped,"boss:name",boss.name)<br />
	        setElementData(ped,"boss:reward",boss.reward)<br />
	        setElementData(ped,"boss:damage",boss.damage or 5)<br />
	        setElementData(ped,"boss:runAnimation",boss.runAnimation or false)
</p>

<p>
	        -- <img src="https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/72x72/1f507.png" class="ipsEmoji" alt="🔇"> Muta o boss automaticamente<br />
	        triggerClientEvent("Boss_STFU", getRootElement(), ped)<br />
	    end<br />
	end
</p>

<p>
	-- Spawn automático respeitando respawnTime<br />
	setTimer(function()<br />
	    local now = os.time()<br />
	    for bossID,boss in pairs(Config.Bosses) do<br />
	        if (not boss.ped or not isElement(boss.ped)) then<br />
	            if (not nextSpawn[bossID] or now &gt;= nextSpawn[bossID]) then<br />
	                spawnBoss(bossID)<br />
	            end<br />
	        end<br />
	    end<br />
	end, 10000, 0)
</p>

<p>
	-- Função <abbr title="Definitive Edition">de</abbr> loot<br />
	local function dropBossLoot(boss, ped, killer)<br />
	    if not boss.reward or not boss.reward.items then return end<br />
	    if getElementType(killer) ~= "player" then return end
</p>

<p>
	    local x,y,z = getElementPosition(ped)<br />
	    local marker = createMarker(x,y,z-1,"cylinder",2,255,0,0,25)<br />
	    local objeto = createObject(2969,x,y,z-0.9)<br />
	    setElementCollisionsEnabled(objeto,false)<br />
	    setObjectScale(objeto,1.5)
</p>

<p>
	    addEventHandler("onMarkerHit", marker, function(hitElement)<br />
	        if getElementType(hitElement) ~= "player" then return end<br />
	        if isPedInVehicle(hitElement) then return end
</p>

<p>
	        triggerClientEvent(hitElement,"addBox",hitElement,"Pressione 'E' para saquear!","info")
</p>

<p>
	        bindKey(hitElement,"e","down",function(p)<br />
	            if not isElement(p) then return end<br />
	            unbindKey(p,"e","down")<br />
	            setPedAnimation(p,"BOMBER","BOM_Plant",2000,false,true,false,false)
</p>

<p>
	            setTimer(function()<br />
	                if not isElement(p) then return end<br />
	                local itensLoot = {}<br />
	                local msg = "Não encontraste nada!"<br />
	                for _, loot in ipairs(boss.reward.items) do<br />
	                    local roll = math.random(100)<br />
	                    if roll &lt;= (loot.chance or 100) then<br />
	                        local qtd = loot.amount or 1<br />
	                        table.insert(itensLoot,{itemID=loot.id or loot.itemID,quantidade=qtd})<br />
	                    end<br />
	                end
</p>

<p>
	                for _, item in ipairs(itensLoot) do<br />
	                    exports["[arena]Inventario"]:giveItem(p,item.itemID,item.quantidade)<br />
	                end
</p>

<p>
	                if #itensLoot &gt; 0 then msg = "Você saqueou o boss!" end<br />
	                if isElement(objeto) then destroyElement(objeto) end<br />
	                if isElement(marker) then destroyElement(marker) end
</p>

<p>
	                setPedAnimation(p,false)<br />
	                triggerClientEvent(p,"addBox",p,msg,#itensLoot&gt;0 and "success" or "warning")<br />
	            end,2000,1)<br />
	        end)<br />
	    end)
</p>

<p>
	    addEventHandler("onMarkerLeave", marker, function(hitElement)<br />
	        if getElementType(hitElement) ~= "player" then return end<br />
	        unbindKey(hitElement,"e","down")<br />
	    end)
</p>

<p>
	    setTimer(function()<br />
	        if isElement(objeto) then destroyElement(objeto) end<br />
	        if isElement(marker) then destroyElement(marker) end<br />
	    end,3*60000,1)<br />
	end
</p>

<p>
	-- Morte do boss<br />
	addEventHandler("onPedWasted", root, function(_, killer)<br />
	    local ped = source<br />
	    if not getElementData(ped,"boss") then return end
</p>

<p>
	    local bossID = getElementData(ped,"boss:id")<br />
	    local boss = Config.Bosses[bossID]<br />
	    if not boss then return end
</p>

<p>
	    -- Atualiza próximo spawn baseado no respawnTime da config<br />
	    nextSpawn[bossID] = os.time() + boss.respawnTime
</p>

<p>
	    -- Recompensa em dinheiro<br />
	    if isElement(killer) and getElementType(killer) == "player" then<br />
	        local reward = boss.reward<br />
	        if reward.money then<br />
	            givePlayerMoney(killer,reward.money)<br />
	            outputChatBox("Recebeste $"..reward.money.." por matar "..boss.name.."!",killer,0,255,0)<br />
	        end
</p>

<p>
	        -- <img src="https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/72x72/1f539.png" class="ipsEmoji" alt="🔹"> Aqui dispara XP pro sistema <abbr title="Definitive Edition">de</abbr> XP<br />
	        triggerEvent("onBossWasted", root, killer, bossID)<br />
	    end
</p>

<p>
	    -- Loot do boss<br />
	    dropBossLoot(boss,ped,killer)
</p>

<p>
	    -- Limpa o boss<br />
	    if isElement(boss.ped) then destroyElement(boss.ped) end<br />
	    boss.ped = nil<br />
	end)
</p>

<p>
	-- Limpeza ao reiniciar resource<br />
	addEventHandler("onResourceStop", resourceRoot, function()<br />
	    for _, boss in pairs(Config.Bosses) do<br />
	        if boss.ped and isElement(boss.ped) then<br />
	            destroyElement(boss.ped)<br />
	            boss.ped = nil<br />
	        end<br />
	    end<br />
	end)
</p>
]]></description><guid isPermaLink="false">147103</guid><pubDate>Thu, 12 Mar 2026 18:42:39 +0000</pubDate></item><item><title>I am trying to play downloaded maps solo and I can't get it to work :(</title><link>https://forum.multitheftauto.com/topic/146954-i-am-trying-to-play-downloaded-maps-solo-and-i-cant-get-it-to-work/</link><description><![CDATA[<p>
	Hello! As the title describes I'm trying my hardest to play a map I've downloaded, and I've gone through multiple steps of editing files so I'm an admin, and going into various menus and I get as far as ''starting map'' with a loading bar but it never loads. Could anyone try to help me please? Or point me in the direction of a thread that explains if what i'm trying to do is possible.
</p>

<p>
	Thanks <span>:)</span>
</p>
<p>
	I apologise if this has no doubt been discussed 100's of times I just can't find any threads that detail what to do, thank you
</p>
]]></description><guid isPermaLink="false">146954</guid><pubDate>Sat, 03 Jan 2026 23:19:38 +0000</pubDate></item><item><title>vehicles.xml could not be opened</title><link>https://forum.multitheftauto.com/topic/147126-vehiclesxml-could-not-be-opened/</link><description><![CDATA[<pre class="ipsCode prettyprint lang-xml prettyprinted"><span class="tag">&lt;catalog</span><span class="pln"> </span><span class="atn">type</span><span class="pun">=</span><span class="atv">"vehicle"</span><span class="tag">&gt;</span><span class="pln">
	</span><span class="tag">&lt;group</span><span class="pln"> </span><span class="atn">name</span><span class="pun">=</span><span class="atv">"Машины"</span><span class="tag">&gt;</span><span class="pln">
		</span><span class="tag">&lt;group</span><span class="pln"> </span><span class="atn">name</span><span class="pun">=</span><span class="atv">"Ваз"</span><span class="tag">&gt;</span><span class="pln">
			</span><span class="tag">&lt;vehicle</span><span class="pln"> </span><span class="atn">id</span><span class="pun">=</span><span class="atv">"560"</span><span class="pln"> </span><span class="atn">name</span><span class="pun">=</span><span class="atv">"2107"</span><span class="pln"> </span><span class="tag">/&gt;</span><span class="pln">
        </span><span class="tag">&lt;/group&gt;</span><span class="pln">
        </span><span class="tag">&lt;group</span><span class="pln"> </span><span class="atn">name</span><span class="pun">=</span><span class="atv">"Иномарки"</span><span class="tag">&gt;</span><span class="pln">
            </span><span class="tag">&lt;vehicle</span><span class="pln"> </span><span class="atn">id</span><span class="pun">=</span><span class="atv">"415"</span><span class="pln"> </span><span class="atn">name</span><span class="pun">=</span><span class="atv">"Nissan GT-R"</span><span class="pln"> </span><span class="tag">/&gt;</span><span class="pln">
        </span><span class="tag">&lt;/group&gt;</span><span class="pln">
        </span><span class="tag">&lt;/group&gt;</span><span class="pln">
        </span><span class="tag">&lt;group</span><span class="pln"> </span><span class="atn">name</span><span class="pun">=</span><span class="atv">"Дпс"</span><span class="tag">&gt;</span><span class="pln"> 
	        </span><span class="tag">&lt;vehicle</span><span class="pln"> </span><span class="atn">id</span><span class="pun">=</span><span class="atv">"597"</span><span class="pln"> </span><span class="atn">name</span><span class="pun">=</span><span class="atv">"Приора ДПС"</span><span class="pln"> </span><span class="tag">/&gt;</span><span class="pln">
	        </span><span class="tag">&lt;vehicle</span><span class="pln"> </span><span class="atn">id</span><span class="pun">=</span><span class="atv">"427"</span><span class="pln"> </span><span class="atn">name</span><span class="pun">=</span><span class="atv">"Уаз Полиция"</span><span class="pln"> </span><span class="tag">/&gt;</span><span class="pln"> 
            </span><span class="tag">&lt;/group&gt;</span><span class="pln">
			</span><span class="tag">&lt;/group&gt;</span><span class="pln">
		</span><span class="tag">&lt;group</span><span class="pln"> </span><span class="atn">name</span><span class="pun">=</span><span class="atv">"Motorbikes"</span><span class="tag">&gt;</span><span class="pln">
			</span><span class="tag">&lt;vehicle</span><span class="pln"> </span><span class="atn">id</span><span class="pun">=</span><span class="atv">"481"</span><span class="pln"> </span><span class="atn">name</span><span class="pun">=</span><span class="atv">"BMX"</span><span class="pln"> </span><span class="tag">/&gt;</span><span class="pln">
			</span><span class="tag">&lt;vehicle</span><span class="pln"> </span><span class="atn">id</span><span class="pun">=</span><span class="atv">"581"</span><span class="pln"> </span><span class="atn">name</span><span class="pun">=</span><span class="atv">"BF-400"</span><span class="pln"> </span><span class="tag">/&gt;</span><span class="pln">
			</span><span class="tag">&lt;vehicle</span><span class="pln"> </span><span class="atn">id</span><span class="pun">=</span><span class="atv">"462"</span><span class="pln"> </span><span class="atn">name</span><span class="pun">=</span><span class="atv">"Скутер"</span><span class="pln"> </span><span class="tag">/&gt;</span><span class="pln">
			</span><span class="tag">&lt;vehicle</span><span class="pln"> </span><span class="atn">id</span><span class="pun">=</span><span class="atv">"463"</span><span class="pln"> </span><span class="atn">name</span><span class="pun">=</span><span class="atv">"Freeway"</span><span class="pln"> </span><span class="tag">/&gt;</span><span class="pln">
			</span><span class="tag">&lt;vehicle</span><span class="pln"> </span><span class="atn">id</span><span class="pun">=</span><span class="atv">"523"</span><span class="pln"> </span><span class="atn">name</span><span class="pun">=</span><span class="atv">"HPV1000"</span><span class="pln"> </span><span class="tag">/&gt;</span><span class="pln">
			</span><span class="tag">&lt;vehicle</span><span class="pln"> </span><span class="atn">id</span><span class="pun">=</span><span class="atv">"461"</span><span class="pln"> </span><span class="atn">name</span><span class="pun">=</span><span class="atv">"PCJ-600"</span><span class="pln"> </span><span class="tag">/&gt;</span><span class="pln">
			</span><span class="tag">&lt;vehicle</span><span class="pln"> </span><span class="atn">id</span><span class="pun">=</span><span class="atv">"586"</span><span class="pln"> </span><span class="atn">name</span><span class="pun">=</span><span class="atv">"Wayfarer"</span><span class="pln"> </span><span class="tag">/&gt;</span><span class="pln">
			</span><span class="tag">&lt;vehicle</span><span class="pln"> </span><span class="atn">id</span><span class="pun">=</span><span class="atv">"471"</span><span class="pln"> </span><span class="atn">name</span><span class="pun">=</span><span class="atv">"Quadbike"</span><span class="pln"> </span><span class="tag">/&gt;</span><span class="pln">
		</span><span class="tag">&lt;/group&gt;</span><span class="pln">      
</span><span class="tag">&lt;/catalog&gt;</span><span class="pln">
 </span></pre>

<p>
	please help me, I don't know what I did, I just wanted to delete unnecessary sections
</p>
]]></description><guid isPermaLink="false">147126</guid><pubDate>Tue, 17 Mar 2026 14:16:42 +0000</pubDate></item><item><title>Help</title><link>https://forum.multitheftauto.com/topic/147112-help/</link><description><![CDATA[<p>
	this is the problem: I log on to one server in MTA, top <abbr title="Grand Theft Auto">gta</abbr> throws me out and the serial number changes, after which I can't log on to the server again, there's a different serial number and a black screen in the game, how do I deal with this?
</p>
]]></description><guid isPermaLink="false">147112</guid><pubDate>Sun, 15 Mar 2026 17:46:20 +0000</pubDate></item><item><title>vehicles.ide</title><link>https://forum.multitheftauto.com/topic/143154-vehicleside/</link><description><![CDATA[<p>
	is there a way to run the file vehicles.ide trough a script that loads that file? just like we can with handling.cfg.
</p>

<p>
	i feel like there's functions missing for vehicles.ide to even be possiblle to load in an mtasa server.
</p>

<p>
	thoughts?
</p>
]]></description><guid isPermaLink="false">143154</guid><pubDate>Fri, 29 Mar 2024 19:43:13 +0000</pubDate></item><item><title>Q: to all scripters - Streaming Issues</title><link>https://forum.multitheftauto.com/topic/146254-q-to-all-scripters-streaming-issues/</link><description><![CDATA[<p>
	Hey there folks!
</p>

<p>
	I have a question for very good scripters, is it possible to disable those "streaming issues" when you are for example: going too fast with a car, the whole texture switches to a LOD and looks broken (it mostly happens on spectate during race). A solution to this would be a lot helpful when recording racing and stuff.
</p>
]]></description><guid isPermaLink="false">146254</guid><pubDate>Fri, 27 Jun 2025 05:28:20 +0000</pubDate></item><item><title>vice city map in mta sa</title><link>https://forum.multitheftauto.com/topic/59916-vice-city-map-in-mta-sa/</link><description><![CDATA[<p>Hello i want to know how to set the vice city map in mta sa ?</p>
<p>I have already the mod with ipl what i have to doing next please ?</p>
]]></description><guid isPermaLink="false">59916</guid><pubDate>Sun, 02 Feb 2014 08:17:15 +0000</pubDate></item><item><title>Help with data management</title><link>https://forum.multitheftauto.com/topic/147051-help-with-data-management/</link><description><![CDATA[<p>
	Hi. Long story short.
</p>

<p>
	I made year or two ago my own package of scripts for role play server, which i never started. 3 months ago i decided to rewrite everything. As i looked at it and said "what a mess. Who wrote this?" meanwhile i've gained experience in C and good habits, so choice to rewrite everything was obvious for me at that moment.
</p>

<p>
	So i did basic optimisation. What can be stored and should be in bools is now stored in bools. not 1 and 20s lol. etc etc
</p>

<p>
	But for now i hitted the wall. Which is named "to buffer. Or not to". By that i mean. My scripts are connected to outside database as built in database is.. well not so fast and secure. And i didn't used to do that mechanism in original code. But i think it's rational to store very often pulled data from database localy on server memory. And update tables in parts to database like every 30seconds. Also i want to use buffer data and database to validate what comes from client side. Im storing vehicles on map, their custom data etc etc.
</p>

<p>
	And here's my main questions.
</p>

<p>
	1.is it worth of effiord to make buffer if i plan 80-200 players on my server.
</p>

<p>
	2.is validating client data with buffer and database worth concept
</p>

<p>
	3.what are your coding advices for me?. Im Asking experienced ones that ruled servers with large player base. 
</p>

<p>
	--[[btw i know that if server has 3 players buffer is not needed. Thanks, awesome advice.--]]
</p>

<p>
	 
</p>
]]></description><guid isPermaLink="false">147051</guid><pubDate>Thu, 19 Feb 2026 05:55:12 +0000</pubDate></item><item><title>Cant change "platecharset" on vehicle.txd</title><link>https://forum.multitheftauto.com/topic/146989-cant-change-platecharset-on-vehicletxd/</link><description><![CDATA[<p>
	No problem with script i can change the others but i have a problem with this one
</p>
]]></description><guid isPermaLink="false">146989</guid><pubDate>Thu, 22 Jan 2026 15:49:05 +0000</pubDate></item><item><title>[Question] Server or Client</title><link>https://forum.multitheftauto.com/topic/147049-question-server-or-client/</link><description><![CDATA[<p>
	Hey, I wanted to make a private garage system something in the style of <abbr title="Grand Theft Auto">GTA</abbr> V.
</p>

<p>
	In that case, for creating the cars in the garage (min 1, max 20 per person), should I use client-side or server-side? In theory, server-side is better for things like this, but with client-side I definitely wouldn’t put as much load on the server. (no one else will be able to enter your private garage)
</p>

<div>
	<div>
		<div>
			<div>
				<div>
					<div>
						<div style="font-size:0px;padding:10px 16px 48px;text-align:initial;">
							<div>
								<pre dir="ltr"><span lang="en" xml:lang="en">no one else will be able to enter your private garag</span></pre>

								<div>
									<div>
										<div>
											<div>
												<div>
													<div>
														<div style="font-size:0px;padding:10px 16px 48px;text-align:initial;">
															<div>
																<pre dir="ltr"><span lang="en" xml:lang="en">no one else will be able to enter your private garage</span></pre>
															</div>

															<div>
																<pre dir="ltr">
 </pre>
															</div>

															<div>
																<div>
																	 
																</div>
															</div>
														</div>
													</div>
												</div>
											</div>

											<div>
												 
											</div>

											<div>
												 
											</div>

											<div>
												<div>
													 
												</div>
											</div>
										</div>
									</div>
								</div>

								<div>
									 
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
]]></description><guid isPermaLink="false">147049</guid><pubDate>Wed, 18 Feb 2026 21:59:11 +0000</pubDate></item><item><title>[HELP] Replacing CJ's textures dont work well</title><link>https://forum.multitheftauto.com/topic/147028-help-replacing-cjs-textures-dont-work-well/</link><description><![CDATA[<p>
	When I replace head and torso textures, it works just fine. But when i replace any shirt. It just uses cj's torso texture
</p>
<blockquote class="ipsQuote" data-ipsquote="" data-ipsquote-contentapp="forums" data-ipsquote-contentclass="forums_Topic" data-ipsquote-contentcommentid="1034177" data-ipsquote-contentid="147028" data-ipsquote-contenttype="forums" data-ipsquote-timestamp="1770760109" data-ipsquote-userid="94225" data-ipsquote-username="Tulppu">
	<div class="ipsQuote_citation">
		2 minutes ago, Tulppu said:
	</div>

	<div class="ipsQuote_contents">
		<p>
			When I replace head and torso textures, it works just fine. But when i replace any shirt. It just uses cj's torso texture
		</p>
	</div>
</blockquote>

<p>
	And heres the code
</p>

<p>
	Meta.xml:
</p>

<pre class="ipsCode prettyprint lang-lua prettyprinted"><span class="pun">&lt;</span><span class="pln">meta</span><span class="pun">&gt;</span><span class="pln">
    </span><span class="pun">&lt;</span><span class="pln">info</span><span class="pun"> </span><span class="pln">name</span><span class="pun">=</span><span class="str">"hesucj"</span><span class="pun"> </span><span class="pln">version</span><span class="pun">=</span><span class="str">"1.4"</span><span class="pun"> </span><span class="pln">type</span><span class="pun">=</span><span class="str">"misc"</span><span class="pun">/&gt;</span><span class="pln">
    </span><span class="pun">&lt;</span><span class="pln">script</span><span class="pun"> </span><span class="pln">src</span><span class="pun">=</span><span class="str">"Skin.lua"</span><span class="pun"> </span><span class="pln">type</span><span class="pun">=</span><span class="str">"client"</span><span class="pun"> /&gt;</span><span class="pln">
	</span><span class="pun">&lt;</span><span class="pln">file</span><span class="pun"> </span><span class="pln">src</span><span class="pun">=</span><span class="str">"head.dff"</span><span class="pun"> /&gt;</span><span class="pln">
	</span><span class="pun">&lt;</span><span class="pln">file</span><span class="pun"> </span><span class="pln">src</span><span class="pun">=</span><span class="str">"head.txd"</span><span class="pun"> /&gt;</span><span class="pln">
	</span><span class="pun">&lt;</span><span class="pln">file</span><span class="pun"> </span><span class="pln">src</span><span class="pun">=</span><span class="str">"player_face.txd"</span><span class="pun"> /&gt;</span><span class="pln">
	</span><span class="pun">&lt;</span><span class="pln">file</span><span class="pun"> </span><span class="pln">src</span><span class="pun">=</span><span class="str">"player_torso.txd"</span><span class="pun"> /&gt;</span><span class="pln">
	</span><span class="pun">&lt;</span><span class="pln">file</span><span class="pun"> </span><span class="pln">src</span><span class="pun">=</span><span class="str">"torso.txd"</span><span class="pun"> /&gt;</span><span class="pln">
	</span><span class="pun">&lt;</span><span class="pln">file</span><span class="pun"> </span><span class="pln">src</span><span class="pun">=</span><span class="str">"hoodjackbeige.txd"</span><span class="pun"> /&gt;</span><span class="pln">
</span><span class="pun">&lt;/</span><span class="pln">meta</span><span class="pun">&gt;</span></pre>

<p>
	Skin.lua:
</p>

<pre class="ipsCode prettyprint lang-lua prettyprinted"><span class="pln">
</span><span class="kwd">function</span><span class="pun"> </span><span class="pln">replaceModel</span><span class="pun">() </span><span class="pln">
  dff</span><span class="pun"> = </span><span class="pln">engineLoadDFF</span><span class="pun">(</span><span class="str">"head.dff"</span><span class="pun">, </span><span class="lit">30087</span><span class="pun"> )</span><span class="pln">
  engineReplaceModel</span><span class="pun">(</span><span class="pln">dff</span><span class="pun">, </span><span class="lit">30087</span><span class="pun">)</span><span class="pln">
  txd</span><span class="pun"> = </span><span class="pln">engineLoadTXD</span><span class="pun">(</span><span class="str">"player_face.txd"</span><span class="pun">, </span><span class="lit">30418</span><span class="pun"> )</span><span class="pln">
  engineImportTXD</span><span class="pun">(</span><span class="pln">txd</span><span class="pun">, </span><span class="lit">30418</span><span class="pun">)</span><span class="pln">
  txda</span><span class="pun"> = </span><span class="pln">engineLoadTXD</span><span class="pun">(</span><span class="str">"player_torso.txd"</span><span class="pun">, </span><span class="lit">30421</span><span class="pun"> )</span><span class="pln">
  engineImportTXD</span><span class="pun">(</span><span class="pln">txda</span><span class="pun">, </span><span class="lit">30421</span><span class="pun">)</span><span class="pln">
  txde</span><span class="pun"> = </span><span class="pln">engineLoadTXD</span><span class="pun">(</span><span class="str">"hoodjackbeige.txd"</span><span class="pun">, </span><span class="lit">30378</span><span class="pun"> )</span><span class="pln">
  engineImportTXD</span><span class="pun">(</span><span class="pln">txde</span><span class="pun">, </span><span class="lit">30378</span><span class="pun">)</span><span class="pln">
</span><span class="kwd">end</span><span class="pln">
addEventHandler</span><span class="pun"> ( </span><span class="str">"onClientResourceStart"</span><span class="pun">, </span><span class="pln">getResourceRootElement</span><span class="pun">(</span><span class="pln">getThisResource</span><span class="pun">()), </span><span class="pln">replaceModel</span><span class="pun">)</span></pre>

<p>
	 
</p>
]]></description><guid isPermaLink="false">147028</guid><pubDate>Tue, 10 Feb 2026 21:48:29 +0000</pubDate></item><item><title>connecting and changing your nickname</title><link>https://forum.multitheftauto.com/topic/147010-connecting-and-changing-your-nickname/</link><description><![CDATA[<p>
	<span style="background-color:#28282e;color:#ffffff;font-size:16px;text-align:left;">How can I disable chat messages when the player is connected and when the player has changed his name?<br />
	* ewgwegdqw has joined the game<br />
	* ewgwegdqw is now known as 1</span>
</p>
]]></description><guid isPermaLink="false">147010</guid><pubDate>Tue, 03 Feb 2026 14:12:21 +0000</pubDate></item><item><title>[HELP] WebSocket for MTA:SA</title><link>https://forum.multitheftauto.com/topic/146999-help-websocket-for-mtasa/</link><description><![CDATA[<p>
	Hey guys,<br />
	As I was developing a new gamemode from scratch, I noticed that if I wanna create my HUD in React, and since I had to plan to have it on web, so no local files (weird to say, but I think it's more secure this way)<br />
	I noticed, in CEF, I fixed the issue Frontend -&gt; Lua connection via creating a http-server resource (will be open-source soon on my Github, I gotta say, it's a full-on HTTP framework)<br />
	But as I was going on, I noticed, If I wanna build a HUD, the HUD doesn't ask for info, the server tells the CEF the info (such as health and chats and ...)<br />
	<br />
	So I did a bit of searching, and I found a WebSocket GitHub repo, which is called <a href="https://github.com/botder/mtasa-websocket" rel="external nofollow">mtasa-websocket</a>,<br />
	And I wanted to know if anyone here has worked with it or set it up before, to help me to set it up as well.<br />
	<br />
	Or, if you have any idea of what else I can do (besides putting HUD in local files as a resource)<br />
	I would appreciate hearing your thoughts.
</p>
]]></description><guid isPermaLink="false">146999</guid><pubDate>Thu, 29 Jan 2026 21:58:00 +0000</pubDate></item><item><title>[HELP] Technical Question on CEF Browsers</title><link>https://forum.multitheftauto.com/topic/146995-help-technical-question-on-cef-browsers/</link><description><![CDATA[<p>
	Hey Everyone, I was creating my own framework from scratch, and I wanted to use CEFs as HUD's and obviously Login pages and stuff<br />
	As I was going through, I wrote the perfect browser manager for myself,<br />
	But for some reason, my events from the JS to LUA are not being triggered,<br />
	Even tho I opened the dev console, and I saw that "window.mta" with the "triggerEvent" function inside that exists.<br />
	<br />
	So Idk, is this normal to not be able to trigger an event on a remote URL?<br />
	And if not, I was thinking about the structure of how it should be,<br />
	I know that if it's true, then I should be able to load my login/huds of the browsers somehow and let them connect to the server as well<br />
	<br />
	First Solution:<br />
	- Load the remote login page -&gt; React web page API calls to Backend -&gt; Backend talks to MTA Server <br />
	But obviously, how? The MTA doesn't provide us with any resources to at least create an API server on a server-side resource, so we can manage that, and it's impossible <br />
	Or maybe you have an idea about what I can do in this solution<br />
	<br />
	2nd Solution:<br />
	- Load a local HTML Page that has an iframe inside it, set the iframe to max width and max height, load a JS file as well, and inside that JS file, provide a bunch of functions written, such as loadURL to change the URL of that iframe, etc.<br />
	Now this custom HTML loads, works (at least fine, I have to change my frontend obviously, do not know if it's good to use for HUD's either. But it works, and in this solution, as I am writing this, I can't feel sorry for myself,<br />
	But I don't know how to load that HTML File XD<br />
	I have a resource called "[core]", inside this has a folder of resources called "browser", and inside that we have a folder called "ui" with index.html and other files inside it.And I have no idea how to load it, or  even how the loading of the JS scripts should be written inside it<br />
	<br />
	If you can help me with my solution, and recommend me a way via this solution, I would appreciate it.
</p>
]]></description><guid isPermaLink="false">146995</guid><pubDate>Tue, 27 Jan 2026 17:57:39 +0000</pubDate></item><item><title>cheaters canceling onClientPlayerDamage</title><link>https://forum.multitheftauto.com/topic/146219-cheaters-canceling-onclientplayerdamage/</link><description><![CDATA[<p>
	Hello,
</p>

<p>
	I'm developing an anti-cheat system in MTA:SA and I'm trying to detect players who block or cancel the `onClientPlayerDamage` event on their side, which prevents the server from detecting damage via `onPlayerDamage`.
</p>

<p>
	I know that if the client cancels `onClientPlayerDamage` using `cancelEvent()`, the server-side `onPlayerDamage` event will not be triggered. Resulting in godmode and players not dying
</p>

<p>
	So my question is:<br />
	- Is there a reliable way to detect if the client-side damage event was cancelled?<br />
	- Does MTA have an anti cheat against this type of cheating ?<br />
	-Are there other ways for cheating to cancel damage taken and not die?
</p>

<p>
	Any suggestions or ideas to detect and prevent this kind of abuse would be appreciated!
</p>

<p>
	Thanks in advance.
</p>
]]></description><guid isPermaLink="false">146219</guid><pubDate>Sun, 22 Jun 2025 10:58:06 +0000</pubDate></item></channel></rss>
