Jump to content

Base MySQL Gamemode [Login/Registration System]


Recommended Posts

Posted
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

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

Posted
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!

Posted
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 ?

Posted
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

  • 6 months later...
Posted

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.

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