BinSlayer1 Posted May 11, 2011 Share Posted May 11, 2011 Hi. I'm trying to make use of this function: https://wiki.multitheftauto.com/wiki/CopyResource I can't seem to get it to work. I've debugged it, no errors. The script outputs the correct information(chatbox stuff), except I cannot find the newly copied resources anywhere. Yes, I've given it admin rights and I've made sure the "admin" group has access to "function.copyResource" . Again, there are no errors shown. I tried the example script in the wiki and I've tried something of my own too. I'll post it for what it's worth: http://pastebin.com/SKfe89yq However, debugging the copyResource line itself shows me it's returning false. Why could this be? Thanks Link to comment
Castillo Posted May 11, 2011 Share Posted May 11, 2011 That's right, it returns false, i've tryied many ways and nothing. Link to comment
BinSlayer1 Posted May 12, 2011 Author Share Posted May 12, 2011 well that sucks i guess the function is broken then it would have been really useful for me to sort some maps now i gotta go through them 1 by 1.. Link to comment
samt2497 Posted May 13, 2011 Share Posted May 13, 2011 Download my Script https://forum.multitheftauto.com/viewtopic.php?f=108&t=32912 there you can find an alternative function to copyResources ;D search in General_S.lua for function sx_ResCopy(resource,destination) Link to comment
-ffs-Sniper Posted March 29, 2012 Share Posted March 29, 2012 I've patched the function in r3912 so now it's working properly. The wiki has been updated: https://wiki.multitheftauto.com/wiki/CopyResource 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