Jump to content

Custom TXD/DFF


DNS

Recommended Posts

Hi guys,

I have made a script which is supposed to replace the original sa DFFs/TXDs(skin), but it doesn't work. I don't get any errors, but, the original ped skin isn't replaced too!

Do you see anything wrong here ?

------- 

--Skins

-------

function skins()

    --HS skin

    txd = engineLoadTXD("skins/fbi.txd", true)

    engineImportTXD(txd, 286)

    dff = engineLoadDFF("skins/fbi.dff", 286)

    engineImportDFF(dff, 286)

    --DanWesson skin

    txd = engineLoadTXD("skins/vmaff1.txd", true)

    engineImportTXD(txd, 124)

    dff = engineLoadDFF("skins/vmaff1.dff", 124)

    engineReplaceModel(dff, 124)

end

addEventHandler("onClientResourceStart", resourceRoot, skins)

<script src="replacer.lua" type="client" /> 

Thank you in advance!

Edited by Guest
Link to comment
------- 
--Skins 
------- 
function skins() 
    --HS skin 
    txd =   engineLoadTXD("skins/fbi.txd", 286) 
    engineImportTXD(txd, 286) 
    dff = engineLoadDFF("skins/fbi.dff", 286) 
    engineReplaceModel(dff, 286) 
    --DanWesson skin 
    txd = engineLoadTXD("skins/vmaff1.txd", 124) 
    engineImportTXD(txd, 124) 
    dff = engineLoadDFF("skins/vmaff1.dff", 124) 
    engineReplaceModel(dff, 124) 
end 
addEventHandler("onClientResourceStart", resourceRoot, skins) 

Updated.

Edited by Guest
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...