KiffShark Posted October 27, 2012 Share Posted October 27, 2012 Hello I'm replacing weapons in my server, but the problem is that when I replace, Tec9, parachute, dildos, flowers..... and I enter uin the server it crashes It's not problem of the mod, I have tried a lot of them, it's just these weapons.... I have thought that maybe is not possible to change them... (I write good the scripts, wapons ids, files in resource....) I've replaced all weapons succesfully... Why I can't change tec9, parachute, flowers........? Link to comment
myonlake Posted October 27, 2012 Share Posted October 27, 2012 Show us the script that replaces the textures, if you could, please. Link to comment
KiffShark Posted October 27, 2012 Author Share Posted October 27, 2012 Show us the script that replaces the textures, if you could, please. yes! for example (Tec9) function replaceModel ( ) txd = engineLoadTXD("files/tec9mod.txd", 372 ) engineImportTXD(txd, 372) dff = engineLoadDFF("files/tec9mod.dff", 0 ) engineReplaceModel(dff, 372) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceModel) (the folder is "files" and meta is ok... no matter what mod I try to use) I've changed all weapons, and work, but Tec9, flowers.. parachute.. nope I've changed spraycan and camera too and they work... Link to comment
TAPL Posted October 27, 2012 Share Posted October 27, 2012 I guess the txd and dff files for Tec9, flowers, parachute, that you have are bugged. Link to comment
myonlake Posted October 27, 2012 Share Posted October 27, 2012 Yeah, I am quite sure they are corrupted. Link to comment
KiffShark Posted October 27, 2012 Author Share Posted October 27, 2012 mmm this is what I have found searching in google https://forum.multitheftauto.com/viewtop ... 1&p=436747 the same problem ._. Link to comment
jierjohnz Posted December 13, 2012 Share Posted December 13, 2012 those weapons are bugged Link to comment
K4stic Posted December 13, 2012 Share Posted December 13, 2012 Try this --Client side function applyMods() local skin = engineLoadTXD("files/tec9mod.txd", true) engineImportTXD(skin, 352) local skin = engineLoadDFF("files/tec9mod.dff", 352) engineReplaceModel(skin, 352) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), applyMods) 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