Jump to content

[Help] Replacing a Ped Skin


bmazoka

Recommended Posts

You can use the following functions to make it work. Obviously you need to have the .txd file and the .dff file and set into the resource folder that you're executing the script from. Change the "76" to whatever choice of skin model you want to use in the script. And make sure to change the filenames in the code to whatever the filenames are.

Client-side

local txd = engineLoadTXD("filename.txd") 
engineImportTXD(txd, 76) 
local dff = engineLoadDFF("filename.dff", 76) 
engineReplaceModel(dff, 76) 

meta.xml

<meta> 
    <script src="filename.lua" type="client" cache="false" /> 
    <file src="filename.txd" /> 
    <file src="filename.dff" /> 
</meta> 

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