Jump to content

Error on Replace object


DonPro

Recommended Posts

Hey MTA community!

i get an error on nearly all lines of the replace script i got "Bad argument [Excepted (dff,txd,col) at argument 1, got boolean]

i just wrote the error that comes up, but it comes up error on each of those, even the Engine import (Cant load EngineImportTXD,COL, etc)

local txd = engineLoadTXD('files/bump.txd',true) 
        engineImportTXD(txd, 2052) 
  
        local dff = engineLoadDFF('files/bump.dff', 0) 
        engineReplaceModel(dff, 2052) 
  
        local col = engineLoadCOL('files/bump.col') 
        engineReplaceCOL(col, 2052) 
        engineSetModelLODDistance(2052, 500) 

Link to comment
Make sure that you add this in your meta.xml file
<file src="files/bump.txd"  /> 
<file src="files/bump.dff"/> 
<file src="files/bump.col"  /> 

lel, thanks, i found out that i cud not have Customobjects folder and then a files folder. so its working now! :) ty

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