Jump to content
  • 0

Mods


001

Question

3 answers to this question

Recommended Posts

  • 0
  • MTA Anti-Cheat Team

Use these functions:

https://wiki.multitheftauto.com/wiki/EngineLoadTXD

https://wiki.multitheftauto.com/wiki/EngineImportTXD

https://wiki.multitheftauto.com/wiki/EngineLoadDFF

https://wiki.multitheftauto.com/wiki/EngineReplaceModel

They already contain plenty of code examples, some of which provide complete, instantly working code to do what you want: replace vehicle/skins/weapons with mods.

how to convert vehicle or skin mods to resource and use it in my MTA server ? anyone tell me please

I honestly didn't expect you aren't known with something basic as how to create a valid resource @Sia, but alright here we go;

1) create a directory, name it for the resource, like: ''modelmod'' and move the GTA SA mod files in there (dff, txd)

2) create a .lua file called ''applymod.lua''

3) paste the code f.e from the code examples (specific to skin/weapon/vehicle-mod, from wiki link(s) into the ''applymod.lua'' file, edit the (model or GTA) ID's to replace and the mod filenames to match the .txd / .dff files.

4) create a file called ''meta.xml'' and paste this in it:

<meta>
    <script src="applymod.lua" type="client"/>
</meta>

Now move the whole directory into server > deathmatch > resources and start the resource.

If you're doing it correctly, this resource contains now the following:

modfile.txd

modfile.dff

applymod.lua

meta.xml

That's the essentials for it to be a valid resource, following all steps as I listed them up above. Clearly you never did this before @Sia, but hope I helped you.

Edited by Dutchman101
  • Like 1
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...