'LinKin Posted April 8, 2014 Share Posted April 8, 2014 Hello, Race has a textlib.lua file which allows you to create dxTexts. It's like a library. I'm trying to export the function (dxText:create) but everything points that it's because of the name containing ':' that it is not working. I changed the function's name and restarted race resource, then it was a mess.. Didn't even start (Because some things already use the function (dxText:create) inside the race resource. Do you know how can I make the call work, even it it has 'illegal' charcters such as this ':' ? Thanks. Link to comment
TrapLord Studios™ Posted April 8, 2014 Share Posted April 8, 2014 (edited) Try using: exports["resourcename"]:dxText:create Edited April 8, 2014 by Guest Link to comment
arezu Posted April 8, 2014 Share Posted April 8, 2014 You can get past that and make it work by creating another function that calls that, but you shouldn't do that because metamethods are not copied. If you dont know what metamethods are, then in other words it just means that it wont work. It's better if you copy the library or download it from the forum here and use it in your other resource instead. 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