Jump to content

Set ped skin on a race map


2kristof2

Recommended Posts

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

Link to comment

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

Link to comment

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

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