Jump to content

call dxText:create


'LinKin

Recommended Posts

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

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

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