Jump to content

replace skins help


gamer_star

Recommended Posts

İ want to create a simple replace skin resource

my script :

function barskins ()
local girl1txd = engineLoadTXD ( "skins/girl1.txd" )
engineImportTXD ( girl1txd, 192 )
local girl1dff = engineLoadDFF ( "skins/girl1.dff" )
engineReplaceModel ( girl1dff, 192 )
end 
addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), barskins)

META.XML

<meta>
<info author="Bluepower" version="1.2" type="script" description="" />
<include resource="interiors" />
<script src="bargirls.lua" type="client" />
<file src="skins/girl1.txd" />
<file src="skins/girl1.dff" />
</meta>

it's not work :cry: help me please whats wrong?

Link to comment
local girl1dff = engineLoadDFF ( "skins/girl1.dff", 0 )

https://wiki.multitheftauto.com/index.ph ... ineLoadDFF

Although if I recall correctly, replacing a ped's model doesn't work. You can only replace their textures.

okey

function barskins ()
local girl1 = engineLoadTXD ( "skins/girl1.txd" )
engineImportTXD ( girl1, 192 )
end
addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), barskins)

not work again :roll:

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