Jump to content
  • 0

heeelllllppppp


GerardWay

Question

2 answers to this question

Recommended Posts

  • 0

Make a new .zip or folder which must contain this :

script.lua

infernus.dff

infernus.txd

meta.xml

script.lua :

function replaceModel()  
  txd = engineLoadTXD("infernus.txd", 411 ) 
  engineImportTXD(txd, 411) 
  dff = engineLoadDFF("infernus.dff", 411 ) 
  engineReplaceModel(dff, 411) 
end 
addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceModel) 
addCommandHandler ( "reloadcar", replaceModel ) 

meta.xml :

<meta> 
<info author="TechG9" name="Infernus" version="1.0.5" type="script"/> 
<script src="script.lua" type="client"/> 
<file src="infernus.txd" type="client"/> 
<file src="infernus.dff" type="client"/> 
</meta> 

If you want to replace another car, you must change the name (infernus) and to replace the ID with the one of the another car.

Link to comment
  • 0
Make a new .zip or folder which must contain this :

script.lua

infernus.dff

infernus.txd

meta.xml

script.lua :

function replaceModel()  
  txd = engineLoadTXD("infernus.txd", 411 ) 
  engineImportTXD(txd, 411) 
  dff = engineLoadDFF("infernus.dff", 411 ) 
  engineReplaceModel(dff, 411) 
end 
addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceModel) 
addCommandHandler ( "reloadcar", replaceModel ) 

meta.xml :

<meta> 
<info author="TechG9" name="Infernus" version="1.0.5" type="script"/> 
<script src="script.lua" type="client"/> 
<file src="infernus.txd" type="client"/> 
<file src="infernus.dff" type="client"/> 
</meta> 

If you want to replace another car, you must change the name (infernus) and to replace the ID with the one of the another car.

i made a folder named vehicles-mods-system in mtasanandreas/server/mods/deathmatch/resources with barracks mod in dff and txd right files and they do not appear in game! i have edited the script.lua so the vehicle and its id are their what have i done wrong?

and i also keep getting unexpected character near char16 and char22 what should i do?

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