1 Screenshot

About This File

Basic MySQL Gamemode

Github Linkhttps://github.com/MrPancakers/ragemp-mysql

Resource Thread

 

Discord: MrPancakers#9283

This is a template of a very basic login/registration system you can implement into your game mode to get started. This template only stores usernames, passwords(encrypted with BCrypt), position and money so anything extra will need to be implemented yourself. This is intended for beginners so the code is pretty basic and nothing fancy has been done so it is easily readable.

If you find any issues, leave a comment on my thread or leave a comment on this resource.

Installation

You'll 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 set up WAMP' for example to get it set up.

  1. Unzip the source and place it inside of your server files folder.
  2. Open your command prompt and change your directory to your server folder. Then do 'npm install' to install the required node_modules.
  3. 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.
  4. 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.
  5. You're all set to go.

What's New in Version 1.1   See changelog

Released

Fixes:

  • Fixed clientside error when there were two or more people on the login menu and someone logged in.
  • Players should no longer be able to log into an account that's currently logged into.
  • Like 7



User Feedback

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest

Tryanide

   2 of 2 members found this review helpful 2 / 2 members

Great start for anyone trying to work a database into their gamemode

Share this review


Link to review
ragempdev

   5 of 6 members found this review helpful 5 / 6 members

good paragon leak ...

Share this review


Link to review
rootcause

   2 of 5 members found this review helpful 2 / 5 members

beast

Share this review


Link to review
hubba

   1 of 3 members found this review helpful 1 / 3 members

great ,, my favorite gamemode to play on rage ,,

Share this review


Link to review
Antonio Santana

   0 of 1 member found this review helpful 0 / 1 member

Thanks for that, but I have a problem I have my local gta server is when I try to connect a bdd that does not also host locally I have an error that appears: [MySQL] Error : ENOTFOUND. Can anyone help me ? My web host or my bdd is located is 1 & 1. Thank you is sorry for my langague I use a translator.

Response from the author:

I would suggest contacting me on Discord if you haven't already (MrPancakers#9283). It just seems you haven't set it up properly and there's nothing wrong with the script.

Share this review


Link to review