Jump to content

How to add mods into your MTA server?


wumpyc

Recommended Posts

your meta xml should look :

    "NAME" version="1.0" type="script"/> 
    

you carpack should look :

function replaceModel()  
  txd = engineLoadTXD("PATH TO TXD", CAR ID ) 
  engineImportTXD(txd, CAR ID) 
  dff = engineLoadDFF("PATH TO MOD DFF", CAR ID ) 
  engineReplaceModel(dff, CAR ID) 
end 
addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceModel) 
  
addCommandHandler ( "reloadcar", replaceModel ) 

Link to comment
  • 1 year later...

tim when i put the things the xml and lua and make the "resource" in the folder and put in the xml and lua the stuff u said and put the directorys aswell but when i run the server it says error could not found file manana.txd put it is in the directory!!! please help!!!

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...