Jump to content

Register system


GriLLeX

Recommended Posts

There is a already a public resource that does this, but it's a bit bugged and it's written in spanish. It does have a login/register system and a basic class selection, but it need a few fixes and changes to work well. Search in MTA's Resources for "diversion" if you wish it.

Btw, actually, I'm currently making a 2.0 version of it, with much more improvements and massive changes, so it won't last so much :wink:

Link to comment

Thank you all, I ask you another thing: how can I call a function from an external script? Example I have 2 script, the script is one of GM and the other is a script a client, I now would like to call a function from Client Script in GM, how can I do?

Thank you in advance and I apologize for my wrong english

Link to comment

To call a function from different resource you need to export that function first (meta.xml). If a function is exported you can then call it like so:

exports.resourcename:exportedFunction( )

If you want to call a client-side function from server-side script you can do that by adding new event client-side and trigger it from the server-side script.

https://wiki.multitheftauto.com/index.php?title=AddEvent

Link to comment
  • 2 months later...

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