2kristof2 Posted August 4, 2014 Posted August 4, 2014 I'd like to know how to change ped skin which occupy the vehicle in my race map. I want to use custom skin, i have already DFF and TXD file and now i need a script. I was searching it 2 hours and i couldn't find it.. Using custom vehicles and objects is much easier regards, Krzysztof
FuriouZ Posted August 4, 2014 Posted August 4, 2014 Copy the code from wiki and use vaild file name & id's EngineImportTXD or https://community.multitheftauto.com/index.php?p= ... ls&id=2852
2kristof2 Posted August 4, 2014 Author Posted August 4, 2014 yea i was trying to use this script : function replaceModel() txd = engineLoadTXD("test.txd", 33 ) engineImportTXD(dff, 33) dff = engineLoadDFF("test.dff", 33 ) engineReplaceModel(dff, 33) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceModel) but it didn't work for me + I didn't know which Skin ID should i use (33 in this example). I had error/warnings and CJ still was in the car
BinSlayer1 Posted August 4, 2014 Posted August 4, 2014 In meta.xml (inside map resource) you can set the skin ID. Choose one from here: https://wiki.multitheftauto.com/wiki/All_Skins_Page Then you need to add a client script to the meta xml and in that script file paste your codes But change '33' to whatever you set the skin ID to.
FuriouZ Posted August 5, 2014 Posted August 5, 2014 Lua: ( Make sure your file is named to client(.lua) ) I haven't worked with replacements for a while, but it should be working. function replaceModel() txd = engineLoadTXD("test.txd", 33 ) engineImportTXD(dff, 33) dff = engineLoadDFF("test.dff", 33 ) engineReplaceModel(dff, 33) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceModel) Meta: </meta> <info author="None" name="None" type="script" version="1.0"></info> <!-- #Scripts --> <script src="client.lua" type="client"></script> <script src="test.txd" type="server"></script> <script src="test.dff" type="server"></script> </meta> Anyways, as far as I know, you can't replace CJ skin
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