DazzaJay Posted January 23, 2008 Share Posted January 23, 2008 ok. My guessing was that because it can support Custom vehicles, it would support custom weapon models, as they are both in the gta3.img file..... but it seems my script dosent work. No errors or anything, and all models are recived, but the characters still hold all the default weapons. script: txd = engineLoadTXD("data/gun_para.txd", 371 ) engineImportTXD(txd, 371) dff = engineLoadDFF("data/ak47.dff", 355 ) engineReplaceModel(dff, 355) txd = engineLoadTXD("data/ak47.txd", 355 ) engineImportTXD(txd, 355) dff = engineLoadDFF("data/chromegun.dff", 349 ) engineReplaceModel(dff, 349) txd = engineLoadTXD("data/chromegun.txd", 349 ) engineImportTXD(txd, 349) dff = engineLoadDFF("data/colt45.dff", 346 ) engineReplaceModel(dff, 346) txd = engineLoadTXD("data/colt45.txd", 346 ) engineImportTXD(txd, 346) dff = engineLoadDFF("data/cuntgun.dff", 357 ) engineReplaceModel(dff, 357) txd = engineLoadTXD("data/cuntgun.txd", 357 ) engineImportTXD(txd, 357) dff = engineLoadDFF("data/desert_eagle.dff", 348 ) engineReplaceModel(dff, 348) txd = engineLoadTXD("data/desert_eagle.txd", 348 ) engineImportTXD(txd, 348) dff = engineLoadDFF("data/heatseek.dff", 360 ) engineReplaceModel(dff, 360) txd = engineLoadTXD("data/heatseek.txd", 360 ) engineImportTXD(txd, 360) dff = engineLoadDFF("data/katana.dff", 339 ) engineReplaceModel(dff, 339) txd = engineLoadTXD("data/katana.txd", 339 ) engineImportTXD(txd, 339) dff = engineLoadDFF("data/m4.dff", 356 ) engineReplaceModel(dff, 356) txd = engineLoadTXD("data/m4.txd", 356 ) engineImportTXD(txd, 356) dff = engineLoadDFF("data/micro_uzi.dff", 352 ) engineReplaceModel(dff, 352) txd = engineLoadTXD("data/micro_uzi.txd", 352 ) engineImportTXD(txd, 352) dff = engineLoadDFF("data/mp5lng.dff", 353 ) engineReplaceModel(dff, 353) txd = engineLoadTXD("data/mp5lng.txd", 353 ) engineImportTXD(txd, 353) dff = engineLoadDFF("data/sawnoff.dff", 350 ) engineReplaceModel(dff, 350) txd = engineLoadTXD("data/sawnoff.txd", 350 ) engineImportTXD(txd, 350) dff = engineLoadDFF("data/shotgspa.dff", 351 ) engineReplaceModel(dff, 351) txd = engineLoadTXD("data/shotgspa.txd", 351 ) engineImportTXD(txd, 351) dff = engineLoadDFF("data/silenced.dff", 347 ) engineReplaceModel(dff, 347) txd = engineLoadTXD("data/silenced.txd", 347 ) engineImportTXD(txd, 347) dff = engineLoadDFF("data/sniper.dff", 358 ) engineReplaceModel(dff, 358) txd = engineLoadTXD("data/sniper.txd", 358 ) engineImportTXD(txd, 358) dff = engineLoadDFF("data/tec9.dff", 358 ) engineReplaceModel(dff, 358) txd = engineLoadTXD("data/tec9.txd", 358 ) engineImportTXD(txd, 358) meta: <meta> <info author="DazzaJay" name="weaponpack" version="1.1.7" type="script" /> <script src="weaponpack.lua" type="client" /> <file src="data/gun_para.txd" /> <file src="data/ak47.dff" /> <file src="data/ak47.txd" /> <file src="data/chromegun.dff" /> <file src="data/chromegun.txd" /> <file src="data/colt45.dff" /> <file src="data/colt45.txd" /> <file src="data/cuntgun.dff" /> <file src="data/cuntgun.txd" /> <file src="data/desert_eagle.dff" /> <file src="data/desert_eagle.txd" /> <file src="data/heatseek.dff" /> <file src="data/heatseek.txd" /> <file src="data/katana.dff" /> <file src="data/katana.txd" /> <file src="data/m4.dff" /> <file src="data/m4.txd" /> <file src="data/micro_uzi.dff" /> <file src="data/micro_uzi.txd" /> <file src="data/mp5lng.dff" /> <file src="data/mp5lng.txd" /> <file src="data/sawnoff.dff" /> <file src="data/sawnoff.txd" /> <file src="data/shotgspa.dff" /> <file src="data/shotgspa.txd" /> <file src="data/silenced.dff" /> <file src="data/silenced.txd" /> <file src="data/sniper.dff" /> <file src="data/sniper.txd" /> <file src="data/tec9.dff" /> <file src="data/tec9.txd" /> </meta> Link to comment
Twig Posted January 23, 2008 Share Posted January 23, 2008 I don't think weapons are supported yet, I tried myself and it did the same. Link to comment
DazzaJay Posted January 23, 2008 Author Share Posted January 23, 2008 I dont see why they wouldnt be, concidering they are all in the same file as the Vehicles..... so you would EXPECT engineReplaceModel(dff, ###) to work for any dff in the gta3.img. Link to comment
mabako Posted January 23, 2008 Share Posted January 23, 2008 weapons and player skins/... dont work in DP1 neither in DP2. Just wait when it'll be added. Link to comment
lil Toady Posted January 23, 2008 Share Posted January 23, 2008 Weapons are not supported yet, only vehicles and objects. Their loading does not have to do anything with the gta3.img file Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now