Jump to content

Error on Replace object


DonPro

Recommended Posts

Posted

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) 

Posted

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"  /> 

Do not yield your back to your enemy, might feel something strange in your ass.

Two things are infinite the universe and human stupidity and i'm not sure about the universe.

UF: IsTextInGridList | GetGridListRowIndexFromText | Table.removeValue | removeHex | dxDrawTriangle

Skype: SaSuki102 | About Me | Youtube channel | Lua Tips & Tricks | Lua Strings | Lua Tables | Lua Operators

Posted
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

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