JeViCo Posted June 18, 2019 Share Posted June 18, 2019 Hi there! I've recently found this page on wiki. This might be a stupid question but how do i use it? Link to comment
JeViCo Posted June 18, 2019 Author Share Posted June 18, 2019 Well, i understood a little bit id = 429 local txd = EngineTXD:create('banshee.txd', true) EngineTXD:import(txd, id) however i keep getting the same error: expected string at argument 1 got table What am i doing wrong? Link to comment
savour Posted June 18, 2019 Share Posted June 18, 2019 Try txd:import(id) --Or EngineTXD.import(txd, id) You need to read a bit about the 'self' argument, maybe you will find it a little confusing; but it make things a lot easier when you get it 1 1 Link to comment
qaisjp Posted June 18, 2019 Share Posted June 18, 2019 See https://wiki.multitheftauto.com/wiki/OOP and https://wiki.multitheftauto.com/wiki/OOP_Introduction local txd = EngineTXD:create('banshee.txd', true) should be local txd = EngineTXD.create('banshee.txd', true) -- or local txd = EngineTXD('banshee.txd', true) 1 Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now