Jump to content

[HELP] Replacing ped body parts


Recommended Posts

Posted (edited)

I knew this... But look what I did:

 txd = engineLoadTXD ( "skins/baldbeard.txd", 0) 
engineImportTXD ( txd, 0 ) 
dff = engineLoadDFF ( "skins/head.dff", 0) 
engineReplaceModel(  dff, 0 ) 
txd = engineLoadTXD ( "skins/BIGplayer_torso.txd", 0) 
engineImportTXD ( txd, 0 ) 
txd = engineLoadTXD ( "skins/player_torso.txd", 0) 
engineImportTXD ( txd, 0 ) 

Edited by Guest
76561198066470453.png

SP37Ecj.jpg?2MTA:Rust Pre-Alpha Build v.0.3:SP37Ecj.jpg?2

https://forum.mtasa.com/viewtopic.php?f=114&t=97848

2Pac: ''Only God can judge me!''

Posted

Did you add the .txd and the .dff files to the meta ?

" Keep Thinking Different . " - Steve Jops

--------------------

Don't send me PMs asking for help, I Won't reply !

Posted

debugscript ?

" Keep Thinking Different . " - Steve Jops

--------------------

Don't send me PMs asking for help, I Won't reply !

Posted
Yes

But still doesn't wotk :\

"skins/player_torso.txd" /> 
    "skins/BIGplayer_torso.txd" /> 
    "skins/baldbeard.txd" /> 
    "skins/head.dff" /> 

Error's debugscript 3.

  

Posted

I changed the the code a bit:

txd = engineLoadTXD("skins/baldbeard.txd") 
    engineImportTXD(txd, 0) 
    dff = engineLoadDFF("skins/head.dff") 
    engineReplaceModel( dff, 0) 
    txd = engineLoadTXD("skins/BIGplayer_torso.txd") 
    engineImportTXD(txd, 0) 
    txd = engineLoadTXD("skins/player_torso.txd") 
    engineImportTXD(txd, 0) 

And look what I get:

WARNING: mods/c_mods.lua:96 Bad usage @ 'engineReplaceModel' [Model ID 0 replace failed]

76561198066470453.png

SP37Ecj.jpg?2MTA:Rust Pre-Alpha Build v.0.3:SP37Ecj.jpg?2

https://forum.mtasa.com/viewtopic.php?f=114&t=97848

2Pac: ''Only God can judge me!''

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