Jump to content

Problem adding custom weapon skins to server


Cynoq

Recommended Posts

As you can see from the title I'm having a problem with adding custom skins to my MTA DayZ server. :cry:

Would put picture but don't know how, but this is what it says in MTA server.exe:

ERROR: Couldn't parse meta file for resource 'ak47'

Loading of resources 'ak47' failed

I have no idea but this is what mt meta.xml is:

Thanks in advance! :D

Link to comment
Post the code.

function replaceskin()

txd = engineLoadTXD ( "ak47.txd" )

engineImportTXD ( txd, 355 )

dff = engineLoadDFF ( "ak47.dff", 355 )

engineReplaceModel ( dff, 355 )

end

No event?

This? addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()) replaceskin)

Link to comment
You don't need a function and therefore there's no need for event.
txd = engineLoadTXD ( "ak47.txd" ) 
engineImportTXD ( txd, 355 ) 
dff = engineLoadDFF ( "ak47.dff", 355 ) 
engineReplaceModel ( dff, 355 ) 

Thanks so much! It works now. Is there a rep system on this forum?

Link to comment
You don't need a function and therefore there's no need for event.
txd = engineLoadTXD ( "ak47.txd" ) 
engineImportTXD ( txd, 355 ) 
dff = engineLoadDFF ( "ak47.dff", 355 ) 
engineReplaceModel ( dff, 355 ) 

I was wondering if you could help me with one more thing?

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