MrPancakers

Base MySQL Gamemode [Login/Registration System]

Recommended Posts

46 minutes ago, MrPancakers said:

Looks like you got some bad code from another server, I believe you need to delete your client_resources folder

Its a clean installation with your script only :/ thats the strange thing

Share this post


Link to post
Share on other sites
29 minutes ago, TitoRukas said:

Its a clean installation with your script only :/ thats the strange thing

A clean installation of RageMP? Or clean installation of just my script? I'd suggest coming on Discord to help you a lot quicker, I haven't had anyone else run into this issue.

Share this post


Link to post
Share on other sites
3 minutes ago, MrPancakers said:

A clean installation of RageMP? Or clean installation of just my script? I'd suggest coming on Discord to help you a lot quicker, I haven't had anyone else run into this issue.

I reinstalled RageMP and it got fixed, thank you man! You have done an awesome work with this script!

Share this post


Link to post
Share on other sites
On 5/25/2018 at 3:04 PM, MrPancakers said:

RageMP Resource Link

Github Link (Development, this will more likely have bugs)

I created a basic MySQL Login/Registration script which can register new accounts and login to ones already created. Passwords are encrypted using BCrypt so they're not plain text. As of now the database only stores a username, password, position and money for testing and examples. I'll be keeping this thread open for people to post any issues or suggestions, issues and suggestions can also be put into the repo to be easily tracked. I do plan to possibly implement a small admin system, however, this won't be put into this project, it'll be a separate download as the main focus for this is to simply have an example for any newcomers to understand how it works.

Any suggestions/feedback are appreciated, trying to build on my Javascript skills through this project.

please send example code cmd givemoney ?

Share this post


Link to post
Share on other sites
30 minutes ago, MrPancakers said:

it's in the script.

/setmoney ?

No set money for me !

example: /givemoney [id] [amount]

Did you notice that I mean?

sorry for bad english

Share this post


Link to post
Share on other sites
13 minutes ago, javad_iran said:

/setmoney ?

No set money for me !

example: /givemoney [id] [amount]

Did you notice that I mean?

sorry for bad english

If you want it to do exactly the same as setmoney, then just change the mp.events.addCommand line,

or do you want to add money on top of what they already have? You just do 'player.money += money' it's basic JS arithmetic

Share this post


Link to post
Share on other sites
Posted (edited)
Zitat

 

Hi, Im a Programmer (Absolutly) beginner from germany.

I will youse your script to build a Login for my Server. But I have the error message:

Error: Cannot find module 'bcrypt-nodejs'.

 

How I can install the bcrypt module ?

http://prntscr.com/n73eac

 

Done.. Now Its work..

Edited by tonihenkel

Share this post


Link to post
Share on other sites

Do you plan to update another small feature? like spawn position, spawn after dead, admin level, camera view on login/register etc.

This resource is awesome anyway.

Share this post


Link to post
Share on other sites

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.