Jump to content

engineReplaceModel is Drunk


crismar

Recommended Posts

Howdy.

I've a couple of mods on my server, mainly for weapons and I have this totally strange issue: engineReplaceModel works for everything but AK-47 and Sanchez which simply don't want to work. I get this bunch of errors:

8KuQp.png

And here are the trboule-making lines:

  
-- For the AK-47, yes, 355.txd and 355.dff EXIST 
txd = engineLoadTXD("355.txd") 
engineImportTXD(txd, 355) 
dff = engineLoadDFF("355.dff", 355) 
engineReplaceModel(dff, 355) 
  
-- For the Sanchez, the .txd and .dff EXIST 
txd = engineLoadTXD("468.txd") 
engineImportTXD(txd, 468) 
dff = engineLoadDFF("468.dff", 468) 
engineReplaceModel(dff, 468) 

I mention I am using the same 4 lines of code for multiple modsa and the script only fails for Sanchez and Ak-47 (which aren't even one after another, so you can't say they are connected).

Ideas ? This is the strangest issue I have ever had.

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