Evan Posted September 12, 2017 Author Share Posted September 12, 2017 i add bro but still :3 or can someone send me sniper invisible ? Link to comment
Tekken Posted September 13, 2017 Share Posted September 13, 2017 local wep = getElementData(localPlayer,"currentweapon_1") Will return a string. My solution is the only one that works but you simply don't know how to apply it. My guess is that you have a new resource for every single weapon skin, is that right? Link to comment
Evan Posted September 14, 2017 Author Share Posted September 14, 2017 i only have different skins of my weapon man so i try what u said but its still Link to comment
Tekken Posted September 14, 2017 Share Posted September 14, 2017 I will ask again, DO YOU HAVE SEPARATE RESOURCES FOR EVERY SINGLE WEAPON SKIN? Link to comment
Evan Posted September 14, 2017 Author Share Posted September 14, 2017 no all weapons are in one folder i craete new folder in DayZ files and create a lua wherea weapons can be edited Link to comment
Tekken Posted September 14, 2017 Share Posted September 14, 2017 Show me the script that replaces the weapon skins. Link to comment
Evan Posted September 15, 2017 Author Share Posted September 15, 2017 local weapons = { {fileName="full", model=356}, {fileName="full", model=357}, {fileName="full", model=355} } function load() for index, weapon in pairs(weapons) do tex = engineLoadTXD ( "mods/"..weapon.fileName.. ".txd", weapon.model ) engineImportTXD ( tex, weapon.model ) mod = engineLoadDFF ( "mods/"..weapon.fileName.. ".dff", weapon.model ) engineReplaceModel ( mod, weapon.model ) txd = engineLoadTXD ( 'm4.txd' ) engineImportTXD ( txd, 356 ) dff = engineLoadDFF('m4.dff', 356) engineReplaceModel ( dff, 356 ) txd = engineLoadTXD ( 'm4.txd' ) engineImportTXD ( txd, 355 ) dff = engineLoadDFF('m4.dff', 355) engineReplaceModel ( dff, 355 ) txd = engineLoadTXD ( 'sniper.txd' ) engineImportTXD ( txd, 358 ) dff = engineLoadDFF('sniper.dff', 358) engineReplaceModel ( dff, 358 ) txd = engineLoadTXD ( 'm4.txd' ) engineImportTXD ( txd, 357 ) dff = engineLoadDFF('m4.dff', 357) engineReplaceModel ( dff, 357 ) txd = engineLoadTXD ( 'bat.txd' ) engineImportTXD ( txd, 336 ) dff = engineLoadDFF('bat.dff', 336) engineReplaceModel ( dff, 336 ) txd = engineLoadTXD ( 'magnum.txd' ) engineImportTXD ( txd, 348 ) dff = engineLoadDFF('magnum.dff', 348) engineReplaceModel ( dff, 348 ) txd = engineLoadTXD ( 'm9sd.txd' ) engineImportTXD ( txd, 347 ) dff = engineLoadDFF('m9sd.dff', 347) engineReplaceModel ( dff, 347 ) --txd = engineLoadTXD ( 'm9sd.txd' ) --engineImportTXD ( txd, 1717 ) --dff = engineLoadDFF('m9sd.dff', 1717) --engineReplaceModel ( dff, 1717 ) txd = engineLoadTXD ( '1911.txd' ) engineImportTXD ( txd, 346 ) dff = engineLoadDFF('1911.dff', 346) engineReplaceModel ( dff, 346 ) txd = engineLoadTXD("armas/ak107.txd", 2725 ) engineImportTXD(txd, 2725) dff = engineLoadDFF("armas/ak107.dff", 2725 ) engineReplaceModel(dff, 2725) txd = engineLoadTXD("armas/m4.txd", 2468 ) engineImportTXD(txd, 2468) dff = engineLoadDFF("armas/m4.dff", 2468 ) engineReplaceModel(dff, 2468) txd = engineLoadTXD("armas/aks.txd", 3000 ) engineImportTXD(txd, 3000) dff = engineLoadDFF("armas/aks.dff", 3000 ) engineReplaceModel(dff, 3000) txd = engineLoadTXD("armas/mk48.txd", 2571 ) engineImportTXD(txd, 2571) dff = engineLoadDFF("armas/mk48.dff", 2571 ) engineReplaceModel(dff, 2571) txd = engineLoadTXD("armas/as50.txd", 2731 ) engineImportTXD(txd, 2731) dff = engineLoadDFF("armas/as50.dff", 2731 ) engineReplaceModel(dff, 2731) txd = engineLoadTXD("armas/acr.txd", 2747 ) engineImportTXD(txd, 2747) dff = engineLoadDFF("armas/acr.dff", 2747 ) engineReplaceModel(dff, 2747) txd = engineLoadTXD("armas/g36sd.txd", 2751 ) engineImportTXD(txd, 2751) dff = engineLoadDFF("armas/g36sd.dff", 2751 ) engineReplaceModel(dff, 2751) txd = engineLoadTXD("armas/m4a1holo.txd", 2742 ) engineImportTXD(txd, 2742) dff = engineLoadDFF("armas/m4a1holo.dff", 2742 ) engineReplaceModel(dff, 2742) txd = engineLoadTXD("armas/sa58acog.txd", 2745 ) engineImportTXD(txd, 2745) dff = engineLoadDFF("armas/sa58acog.dff", 2745 ) engineReplaceModel(dff, 2745) txd = engineLoadTXD("armas/svdcamo.txd", 2730 ) engineImportTXD(txd, 2730) dff = engineLoadDFF("armas/svdcamo.dff", 2730 ) engineReplaceModel(dff, 2730) txd = engineLoadTXD("armas/cz550.txd", 2732 ) engineImportTXD(txd, 2732) dff = engineLoadDFF("armas/cz550.dff", 2732 ) engineReplaceModel(dff, 2732) txd = engineLoadTXD("armas/dmr.txd", 2733 ) engineImportTXD(txd, 2733) dff = engineLoadDFF("armas/dmr.dff", 2733 ) engineReplaceModel(dff, 2733) txd = engineLoadTXD("armas/kvsk.txd", 2734 ) engineImportTXD(txd, 2734) dff = engineLoadDFF("armas/kvsk.dff", 2734 ) engineReplaceModel(dff, 2734) txd = engineLoadTXD("armas/m24.txd", 2735 ) engineImportTXD(txd, 2735) dff = engineLoadDFF("armas/m24.dff", 2735 ) engineReplaceModel(dff, 2735) txd = engineLoadTXD("armas/m249saw.txd", 2748 ) engineImportTXD(txd, 2748) dff = engineLoadDFF("armas/m249saw.dff", 2748 ) engineReplaceModel(dff, 2748) txd = engineLoadTXD("armas/m107.txd", 2737 ) engineImportTXD(txd, 2737) dff = engineLoadDFF("armas/m107.dff", 2737 ) engineReplaceModel(dff, 2737) txd = engineLoadTXD("armas/m40a3.txd", 2738 ) engineImportTXD(txd, 2738) dff = engineLoadDFF("armas/m40a3.dff", 2738 ) engineReplaceModel(dff, 2738) txd = engineLoadTXD("armas/m14.txd", 2726 ) engineImportTXD(txd, 2726) dff = engineLoadDFF("armas/m14.dff", 2726 ) engineReplaceModel(dff, 2726) txd = engineLoadTXD("armas/jng90.txd", 2729 ) engineImportTXD(txd, 2729) dff = engineLoadDFF("armas/jng90.dff", 2729 ) engineReplaceModel(dff, 2729) txd = engineLoadTXD("armas/m240.txd", 2728 ) engineImportTXD(txd, 2728) dff = engineLoadDFF("armas/m240.dff", 2728 ) engineReplaceModel(dff, 2728) txd = engineLoadTXD("armas/akmgp.txd", 2724 ) engineImportTXD(txd, 2724) dff = engineLoadDFF("armas/akmgp.dff", 2724 ) engineReplaceModel(dff, 2724) txd = engineLoadTXD("armas/g36k.txd", 2708 ) engineImportTXD(txd, 2708) dff = engineLoadDFF("armas/g36k.dff", 2708 ) engineReplaceModel(dff, 2708) txd = engineLoadTXD("armas/beneli.txd", 349 ) engineImportTXD(txd, 349 ) dff = engineLoadDFF("armas/beneli.dff", 349 ) engineReplaceModel(dff, 349 ) txd = engineLoadTXD("armas/fnscar.txd", 2644 ) engineImportTXD(txd, 2644) dff = engineLoadDFF("armas/fnscar.dff", 2644 ) engineReplaceModel(dff, 2644) txd = engineLoadTXD("armas/leeenfield.txd", 2562 ) engineImportTXD(txd, 2562) dff = engineLoadDFF("armas/leeenfield.dff", 2562 ) engineReplaceModel(dff, 2562) txd = engineLoadTXD("armas/bow.txd", 2565 ) engineImportTXD(txd, 2565) dff = engineLoadDFF("armas/bow.dff", 2565 ) engineReplaceModel(dff, 2565) txd = engineLoadTXD("armas/m1911.txd", 2767 ) engineImportTXD(txd, 2767) dff = engineLoadDFF("armas/m1911.dff", 2767 ) engineReplaceModel(dff, 2767) txd = engineLoadTXD("armas/g17.txd", 2749 ) engineImportTXD(txd, 2749) dff = engineLoadDFF("armas/g17.dff", 2749 ) engineReplaceModel(dff, 2749) txd = engineLoadTXD("armas/mp5.txd", 2750 ) engineImportTXD(txd, 2750) dff = engineLoadDFF("armas/mp5.dff", 2750 ) engineReplaceModel(dff, 2750) --txd = engineLoadTXD("armas/1014.txd", 1700 ) --engineImportTXD(txd, 1700) --dff = engineLoadDFF("armas/1014.dff", 1700 ) --engineReplaceModel(dff, 1700) --txd = engineLoadTXD("armas/lee.txd", 1661 ) --engineImportTXD(txd, 1661) --dff = engineLoadDFF("armas/lee.dff", 1661 ) --engineReplaceModel(dff, 1661) --txd = engineLoadTXD("armas/dmr.txd", 1725 ) --engineImportTXD(txd, 1725) --dff = engineLoadDFF("armas/dmr.dff", 1725 ) --engineReplaceModel(dff, 1725) --txd = engineLoadTXD("armas/m14.txd", 1719 ) --engineImportTXD(txd, 1719) --dff = engineLoadDFF("armas/m14.dff", 1719 ) --engineReplaceModel(dff, 1719) --txd = engineLoadTXD("armas/sa58cco.txd", 1738 ) --engineImportTXD(txd, 1738) --dff = engineLoadDFF("armas/sa58cco.dff", 1738 ) --engineReplaceModel(dff, 1738) --txd = engineLoadTXD("armas/sa58p.txd", 1745 ) --engineImportTXD(txd, 1745) --dff = engineLoadDFF("armas/sa58p.dff", 1745 ) --engineReplaceModel(dff, 1745) --txd = engineLoadTXD("armas/sa58vacog.txd", 1747 ) --engineImportTXD(txd, 1747) --dff = engineLoadDFF("armas/sa58vacog.dff", 1747 ) --engineReplaceModel(dff, 1747) --txd = engineLoadTXD("armas/sa58v.txd", 1748 ) --engineImportTXD(txd, 1748) --dff = engineLoadDFF("armas/sa58v.dff", 1748 ) --engineReplaceModel(dff, 1748) --txd = engineLoadTXD("armas/mosin.txd", 1749 ) --engineImportTXD(txd, 1749) --dff = engineLoadDFF("armas/mosin.dff", 1749 ) --engineReplaceModel(dff, 1749) txd = engineLoadTXD("backpack/bag.txd", 1248 ) engineImportTXD(txd, 1248) dff = engineLoadDFF("backpack/bag.dff", 1248 ) engineReplaceModel(dff, 1248) txd = engineLoadTXD("backpack/drybagblack.txd", 1575 ) engineImportTXD(txd, 1575) dff = engineLoadDFF("backpack/drybagblack.dff", 1575 ) engineReplaceModel(dff, 1575) txd = engineLoadTXD("backpack/drybagblue.txd", 1830 ) engineImportTXD(txd, 1830) dff = engineLoadDFF("backpack/drybagblue.dff", 1830 ) engineReplaceModel(dff, 1830) txd = engineLoadTXD("backpack/drybaggreen.txd", 1831 ) engineImportTXD(txd, 1831) dff = engineLoadDFF("backpack/drybaggreen.dff", 1831 ) engineReplaceModel(dff, 1831) txd = engineLoadTXD("backpack/drybagred.txd", 1832 ) engineImportTXD(txd, 1832) dff = engineLoadDFF("backpack/drybagred.dff", 1832 ) engineReplaceModel(dff, 1832) txd = engineLoadTXD("backpack/drybagwhite.txd", 1252 ) engineImportTXD(txd, 1252) dff = engineLoadDFF("backpack/drybagwhite.dff", 1252 ) engineReplaceModel(dff, 1252) txd = engineLoadTXD("backpack/drybagyellow.txd", 2000 ) engineImportTXD(txd, 2000) dff = engineLoadDFF("backpack/drybagyellow.dff", 2000 ) engineReplaceModel(dff, 2000) txd = engineLoadTXD("backpack/coyote.txd", 2405 ) engineImportTXD(txd, 2405) dff = engineLoadDFF("backpack/coyote.dff", 2405 ) engineReplaceModel(dff, 2405) txd = engineLoadTXD("backpack/coyotedesert.txd", 2410 ) engineImportTXD(txd, 2410) dff = engineLoadDFF("backpack/coyotedesert.dff", 2410 ) engineReplaceModel(dff, 2410) txd = engineLoadTXD("backpack/coyotecamo.txd", 2406 ) engineImportTXD(txd, 2406) dff = engineLoadDFF("backpack/coyotecamo.dff", 2406 ) engineReplaceModel(dff, 2406) txd = engineLoadTXD("backpack/mountaingreen.txd", 1833 ) engineImportTXD(txd, 1833) dff = engineLoadDFF("backpack/mountaingreen.dff", 1833 ) engineReplaceModel(dff, 1833) txd = engineLoadTXD("backpack/mountainblue.txd", 1834 ) engineImportTXD(txd, 1834) dff = engineLoadDFF("backpack/mountainblue.dff", 1834 ) engineReplaceModel(dff, 1834) txd = engineLoadTXD("backpack/mountainred.txd", 1835 ) engineImportTXD(txd, 1835) dff = engineLoadDFF("backpack/mountainred.dff", 1835 ) engineReplaceModel(dff, 1835) txd = engineLoadTXD("backpack/nationz.txd", 1836 ) engineImportTXD(txd, 1836) dff = engineLoadDFF("backpack/nationz.dff", 1836 ) engineReplaceModel(dff, 1836) end end addEventHandler("onClientResourceStart",resourceRoot, function () setTimer ( load, 1000, 1) end) local h1, h2, h3 = debug.gethook() debug.sethook() -- Your loop here debug.sethook( _, h1, h2, h3 ) Link to comment
Tekken Posted September 15, 2017 Share Posted September 15, 2017 Try this local weapons = { {fileName="full", model=356}, {fileName="full", model=357}, {fileName="full", model=355} }; function load() txd = engineLoadTXD ( 'm4.txd' ) engineImportTXD ( txd, 356 ) dff = engineLoadDFF('m4.dff', 356) engineReplaceModel ( dff, 356 ) txd = engineLoadTXD ( 'm4.txd' ) engineImportTXD ( txd, 355 ) dff = engineLoadDFF('m4.dff', 355) engineReplaceModel ( dff, 355 ) txd = engineLoadTXD ( 'sniper.txd' ) engineImportTXD ( txd, 358 ) dff = engineLoadDFF('sniper.dff', 358) engineReplaceModel ( dff, 358 ) txd = engineLoadTXD ( 'm4.txd' ) engineImportTXD ( txd, 357 ) dff = engineLoadDFF('m4.dff', 357) engineReplaceModel ( dff, 357 ) txd = engineLoadTXD ( 'bat.txd' ) engineImportTXD ( txd, 336 ) dff = engineLoadDFF('bat.dff', 336) engineReplaceModel ( dff, 336 ) txd = engineLoadTXD ( 'magnum.txd' ) engineImportTXD ( txd, 348 ) dff = engineLoadDFF('magnum.dff', 348) engineReplaceModel ( dff, 348 ) txd = engineLoadTXD ( 'm9sd.txd' ) engineImportTXD ( txd, 347 ) dff = engineLoadDFF('m9sd.dff', 347) engineReplaceModel ( dff, 347 ) --txd = engineLoadTXD ( 'm9sd.txd' ) --engineImportTXD ( txd, 1717 ) --dff = engineLoadDFF('m9sd.dff', 1717) --engineReplaceModel ( dff, 1717 ) txd = engineLoadTXD ( '1911.txd' ) engineImportTXD ( txd, 346 ) dff = engineLoadDFF('1911.dff', 346) engineReplaceModel ( dff, 346 ) txd = engineLoadTXD("armas/ak107.txd", 2725 ) engineImportTXD(txd, 2725) dff = engineLoadDFF("armas/ak107.dff", 2725 ) engineReplaceModel(dff, 2725) txd = engineLoadTXD("armas/m4.txd", 2468 ) engineImportTXD(txd, 2468) dff = engineLoadDFF("armas/m4.dff", 2468 ) engineReplaceModel(dff, 2468) txd = engineLoadTXD("armas/aks.txd", 3000 ) engineImportTXD(txd, 3000) dff = engineLoadDFF("armas/aks.dff", 3000 ) engineReplaceModel(dff, 3000) txd = engineLoadTXD("armas/mk48.txd", 2571 ) engineImportTXD(txd, 2571) dff = engineLoadDFF("armas/mk48.dff", 2571 ) engineReplaceModel(dff, 2571) txd = engineLoadTXD("armas/as50.txd", 2731 ) engineImportTXD(txd, 2731) dff = engineLoadDFF("armas/as50.dff", 2731 ) engineReplaceModel(dff, 2731) txd = engineLoadTXD("armas/acr.txd", 2747 ) engineImportTXD(txd, 2747) dff = engineLoadDFF("armas/acr.dff", 2747 ) engineReplaceModel(dff, 2747) txd = engineLoadTXD("armas/g36sd.txd", 2751 ) engineImportTXD(txd, 2751) dff = engineLoadDFF("armas/g36sd.dff", 2751 ) engineReplaceModel(dff, 2751) txd = engineLoadTXD("armas/m4a1holo.txd", 2742 ) engineImportTXD(txd, 2742) dff = engineLoadDFF("armas/m4a1holo.dff", 2742 ) engineReplaceModel(dff, 2742) txd = engineLoadTXD("armas/sa58acog.txd", 2745 ) engineImportTXD(txd, 2745) dff = engineLoadDFF("armas/sa58acog.dff", 2745 ) engineReplaceModel(dff, 2745) txd = engineLoadTXD("armas/svdcamo.txd", 2730 ) engineImportTXD(txd, 2730) dff = engineLoadDFF("armas/svdcamo.dff", 2730 ) engineReplaceModel(dff, 2730) txd = engineLoadTXD("armas/cz550.txd", 2732 ) engineImportTXD(txd, 2732) dff = engineLoadDFF("armas/cz550.dff", 2732 ) engineReplaceModel(dff, 2732) txd = engineLoadTXD("armas/dmr.txd", 2733 ) engineImportTXD(txd, 2733) dff = engineLoadDFF("armas/dmr.dff", 2733 ) engineReplaceModel(dff, 2733) txd = engineLoadTXD("armas/kvsk.txd", 2734 ) engineImportTXD(txd, 2734) dff = engineLoadDFF("armas/kvsk.dff", 2734 ) engineReplaceModel(dff, 2734) txd = engineLoadTXD("armas/m24.txd", 2735 ) engineImportTXD(txd, 2735) dff = engineLoadDFF("armas/m24.dff", 2735 ) engineReplaceModel(dff, 2735) txd = engineLoadTXD("armas/m249saw.txd", 2748 ) engineImportTXD(txd, 2748) dff = engineLoadDFF("armas/m249saw.dff", 2748 ) engineReplaceModel(dff, 2748) txd = engineLoadTXD("armas/m107.txd", 2737 ) engineImportTXD(txd, 2737) dff = engineLoadDFF("armas/m107.dff", 2737 ) engineReplaceModel(dff, 2737) txd = engineLoadTXD("armas/m40a3.txd", 2738 ) engineImportTXD(txd, 2738) dff = engineLoadDFF("armas/m40a3.dff", 2738 ) engineReplaceModel(dff, 2738) txd = engineLoadTXD("armas/m14.txd", 2726 ) engineImportTXD(txd, 2726) dff = engineLoadDFF("armas/m14.dff", 2726 ) engineReplaceModel(dff, 2726) txd = engineLoadTXD("armas/jng90.txd", 2729 ) engineImportTXD(txd, 2729) dff = engineLoadDFF("armas/jng90.dff", 2729 ) engineReplaceModel(dff, 2729) txd = engineLoadTXD("armas/m240.txd", 2728 ) engineImportTXD(txd, 2728) dff = engineLoadDFF("armas/m240.dff", 2728 ) engineReplaceModel(dff, 2728) txd = engineLoadTXD("armas/akmgp.txd", 2724 ) engineImportTXD(txd, 2724) dff = engineLoadDFF("armas/akmgp.dff", 2724 ) engineReplaceModel(dff, 2724) txd = engineLoadTXD("armas/g36k.txd", 2708 ) engineImportTXD(txd, 2708) dff = engineLoadDFF("armas/g36k.dff", 2708 ) engineReplaceModel(dff, 2708) txd = engineLoadTXD("armas/beneli.txd", 349 ) engineImportTXD(txd, 349 ) dff = engineLoadDFF("armas/beneli.dff", 349 ) engineReplaceModel(dff, 349 ) txd = engineLoadTXD("armas/fnscar.txd", 2644 ) engineImportTXD(txd, 2644) dff = engineLoadDFF("armas/fnscar.dff", 2644 ) engineReplaceModel(dff, 2644) txd = engineLoadTXD("armas/leeenfield.txd", 2562 ) engineImportTXD(txd, 2562) dff = engineLoadDFF("armas/leeenfield.dff", 2562 ) engineReplaceModel(dff, 2562) txd = engineLoadTXD("armas/bow.txd", 2565 ) engineImportTXD(txd, 2565) dff = engineLoadDFF("armas/bow.dff", 2565 ) engineReplaceModel(dff, 2565) txd = engineLoadTXD("armas/m1911.txd", 2767 ) engineImportTXD(txd, 2767) dff = engineLoadDFF("armas/m1911.dff", 2767 ) engineReplaceModel(dff, 2767) txd = engineLoadTXD("armas/g17.txd", 2749 ) engineImportTXD(txd, 2749) dff = engineLoadDFF("armas/g17.dff", 2749 ) engineReplaceModel(dff, 2749) txd = engineLoadTXD("armas/mp5.txd", 2750 ) engineImportTXD(txd, 2750) dff = engineLoadDFF("armas/mp5.dff", 2750 ) engineReplaceModel(dff, 2750) --txd = engineLoadTXD("armas/1014.txd", 1700 ) --engineImportTXD(txd, 1700) --dff = engineLoadDFF("armas/1014.dff", 1700 ) --engineReplaceModel(dff, 1700) --txd = engineLoadTXD("armas/lee.txd", 1661 ) --engineImportTXD(txd, 1661) --dff = engineLoadDFF("armas/lee.dff", 1661 ) --engineReplaceModel(dff, 1661) --txd = engineLoadTXD("armas/dmr.txd", 1725 ) --engineImportTXD(txd, 1725) --dff = engineLoadDFF("armas/dmr.dff", 1725 ) --engineReplaceModel(dff, 1725) --txd = engineLoadTXD("armas/m14.txd", 1719 ) --engineImportTXD(txd, 1719) --dff = engineLoadDFF("armas/m14.dff", 1719 ) --engineReplaceModel(dff, 1719) --txd = engineLoadTXD("armas/sa58cco.txd", 1738 ) --engineImportTXD(txd, 1738) --dff = engineLoadDFF("armas/sa58cco.dff", 1738 ) --engineReplaceModel(dff, 1738) --txd = engineLoadTXD("armas/sa58p.txd", 1745 ) --engineImportTXD(txd, 1745) --dff = engineLoadDFF("armas/sa58p.dff", 1745 ) --engineReplaceModel(dff, 1745) --txd = engineLoadTXD("armas/sa58vacog.txd", 1747 ) --engineImportTXD(txd, 1747) --dff = engineLoadDFF("armas/sa58vacog.dff", 1747 ) --engineReplaceModel(dff, 1747) --txd = engineLoadTXD("armas/sa58v.txd", 1748 ) --engineImportTXD(txd, 1748) --dff = engineLoadDFF("armas/sa58v.dff", 1748 ) --engineReplaceModel(dff, 1748) --txd = engineLoadTXD("armas/mosin.txd", 1749 ) --engineImportTXD(txd, 1749) --dff = engineLoadDFF("armas/mosin.dff", 1749 ) --engineReplaceModel(dff, 1749) txd = engineLoadTXD("backpack/bag.txd", 1248 ) engineImportTXD(txd, 1248) dff = engineLoadDFF("backpack/bag.dff", 1248 ) engineReplaceModel(dff, 1248) txd = engineLoadTXD("backpack/drybagblack.txd", 1575 ) engineImportTXD(txd, 1575) dff = engineLoadDFF("backpack/drybagblack.dff", 1575 ) engineReplaceModel(dff, 1575) txd = engineLoadTXD("backpack/drybagblue.txd", 1830 ) engineImportTXD(txd, 1830) dff = engineLoadDFF("backpack/drybagblue.dff", 1830 ) engineReplaceModel(dff, 1830) txd = engineLoadTXD("backpack/drybaggreen.txd", 1831 ) engineImportTXD(txd, 1831) dff = engineLoadDFF("backpack/drybaggreen.dff", 1831 ) engineReplaceModel(dff, 1831) txd = engineLoadTXD("backpack/drybagred.txd", 1832 ) engineImportTXD(txd, 1832) dff = engineLoadDFF("backpack/drybagred.dff", 1832 ) engineReplaceModel(dff, 1832) txd = engineLoadTXD("backpack/drybagwhite.txd", 1252 ) engineImportTXD(txd, 1252) dff = engineLoadDFF("backpack/drybagwhite.dff", 1252 ) engineReplaceModel(dff, 1252) txd = engineLoadTXD("backpack/drybagyellow.txd", 2000 ) engineImportTXD(txd, 2000) dff = engineLoadDFF("backpack/drybagyellow.dff", 2000 ) engineReplaceModel(dff, 2000) txd = engineLoadTXD("backpack/coyote.txd", 2405 ) engineImportTXD(txd, 2405) dff = engineLoadDFF("backpack/coyote.dff", 2405 ) engineReplaceModel(dff, 2405) txd = engineLoadTXD("backpack/coyotedesert.txd", 2410 ) engineImportTXD(txd, 2410) dff = engineLoadDFF("backpack/coyotedesert.dff", 2410 ) engineReplaceModel(dff, 2410) txd = engineLoadTXD("backpack/coyotecamo.txd", 2406 ) engineImportTXD(txd, 2406) dff = engineLoadDFF("backpack/coyotecamo.dff", 2406 ) engineReplaceModel(dff, 2406) txd = engineLoadTXD("backpack/mountaingreen.txd", 1833 ) engineImportTXD(txd, 1833) dff = engineLoadDFF("backpack/mountaingreen.dff", 1833 ) engineReplaceModel(dff, 1833) txd = engineLoadTXD("backpack/mountainblue.txd", 1834 ) engineImportTXD(txd, 1834) dff = engineLoadDFF("backpack/mountainblue.dff", 1834 ) engineReplaceModel(dff, 1834) txd = engineLoadTXD("backpack/mountainred.txd", 1835 ) engineImportTXD(txd, 1835) dff = engineLoadDFF("backpack/mountainred.dff", 1835 ) engineReplaceModel(dff, 1835) txd = engineLoadTXD("backpack/nationz.txd", 1836 ) engineImportTXD(txd, 1836) dff = engineLoadDFF("backpack/nationz.dff", 1836 ) engineReplaceModel(dff, 1836) for index, weapon in pairs(weapons) do tex = engineLoadTXD ( "mods/"..weapon.fileName.. ".txd", weapon.model ) engineImportTXD ( tex, weapon.model ) mod = engineLoadDFF ( "mods/"..weapon.fileName.. ".dff", weapon.model ) engineReplaceModel ( mod, weapon.model ) end end addEventHandler("onClientResourceStart",resourceRoot, function () setTimer ( load, 1000, 1) end) local h1, h2, h3 = debug.gethook() debug.sethook() -- Your loop here debug.sethook( _, h1, h2, h3 ) Link to comment
Evan Posted September 16, 2017 Author Share Posted September 16, 2017 but nothing change in the scripts ? Link to comment
Evan Kinley Posted May 29 Share Posted May 29 I HAVE LIKE THIS PROBLEM CAN YOU GUYS HELP ME? I POST A VIDEO WHEN YOU AIM THE WEAPON WILL APPEAR ON THE SCOPE https://reccloud.com/u/hf0eq3g Link to comment
Evan Kinley Posted May 30 Share Posted May 30 On 06/09/2017 at 19:05, Tekken said: addEventHandler("onClientResourceStart", resourceRoot, function() for i = 355, 358 do local tex = engineLoadTXD("alpha.txd"); engineImportTXD(tex, i); local mod = engineLoadDFF("alpha.dff", i); engineReplaceModel(mod, i); end engineImportTXD(engineLoadTXD("sniper.txd"), 358); --And here apply your skins! end); Like this, also take a picture after you apply my script to see what's wrong, also we need to see how you replace the weapons in order to see why the weapon is still showing. Wouls this be on client side or server side?? Link to comment
Tekken Posted May 30 Share Posted May 30 11 minutes ago, Evan Kinley said: Wouls this be on client side or server side?? This is client side, also make sure this is the LAST resource you start juste to be sure. Link to comment
Evan Kinley Posted May 30 Share Posted May 30 (edited) 4 minutes ago, Tekken said: This is client side, also make sure this is the LAST resource you start juste to be sure. What do you mean by this sir, can you explain more? Can i add this on my survivor system client? Or i should make another folder and create an .lua? Edited May 30 by Evan Kinley Link to comment
Tekken Posted May 30 Share Posted May 30 6 minutes ago, Evan Kinley said: What do you mean by this sir, can you explain more? Can i add this on my survivor system client? Or i should make another folder and create an .lua? Just create another resource and make sure is the last one you start when starting server. Link to comment
Evan Kinley Posted May 30 Share Posted May 30 33 minutes ago, Tekken said: Just create another resource and make sure is the last one you start when starting server. bro it says like this https://imgur.com/a/0Gg0PPY Link to comment
Evan Kinley Posted May 30 Share Posted May 30 53 minutes ago, Evan Kinley said: bro it says like this https://imgur.com/a/0Gg0PPY It says ERROR: unexpected symbol inside the .txd and .dff Link to comment
Tekken Posted May 31 Share Posted May 31 Ok try this resource https://mega.nz/file/0khjxSjJ#D6k5D88LPcFgaO2zrTYm5ClKWnnwK2PDaeklxlTc_fE 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