This is a template of a very basic login/registration system you can implement into your gamemode to get started. This template only stores usernames and passwords(encrypted with BCrypt) so anything extra will need to be implemented yourself.
Either download the source from RageMP or by getting it from here. You'll also need to have a MySQL server setup, either using WAMP/XAMPP/or from a server. To keep this short I will not go through setting these up, simply Google 'How to setup WAMP' for example to get it setup.
- Unzip the source and place it inside of your server files folder.
- Open your command prompt and change your directory to your server folder. Then do 'npm install' to install the required node_modules.
- Go to your database, create a new database and call it whatever you want (Inside the script it is called ragemp-mysql). Once created, import the ragemp-mysql.sql into your newly created database.
- Go to packages/mysql/mysql.js and open it. At the top is the connection info, change this to whatever your IP and MySQL username/password is. If you're hosting this locally and you haven't made/changed the MySQL info, the default should be fine.
- You're all set to go.
- All current known issues will be placed under the issues tab. If there's an issue and it isn't listed there, please create a new issue or contact me.
I'm more than happy for anyone to contribute and fix up anything, and I'm happy for anyone to create Issues if there's a fault they found/any suggestions to make this better.
- Discord: MrPancakers#9283
- RageMP Forums: https://rage.mp/profile/5511-mrpancakers/