Donboo

Example script (MySQL)

Recommended Posts

This script is started from Armyw0w's example script. Now this script contains an admin system with the following commands:

  • /kick
  • /spawn
  • /a (admin chat)
  • /veh
  • /goto
  • /dive (skyfall)
  • /mypos (testing purpose)
  • /makeadmin

You can use these examples in order to create new systems.

Download: https://github.com/Donboo/RageMP-Example

 

Edited by Donboo
  • Like 7

Share this post


Link to post
Share on other sites

I submitted some pull requests to fix some bugs I found while looking through this - overall pretty nice for someone that's starting out to jump into it w/ an example!

Nice work.

  • Like 3

Share this post


Link to post
Share on other sites

Good evening. Help me to understand the installation of your mod. I do not understand where the packege.js file is. What npm packages should I install for work?

Edited by AlexanderDem

Share this post


Link to post
Share on other sites
3 hours ago, AlexanderDem said:

Good evening. Help me to understand the installation of your mod. I do not understand where the packege.js file is. What npm packages should I install for work?

for mysql open cmd, enter "cd [folder directory {e.g: C:\RAGEMP\Server}]" and type "npm install mysql"

  • Sad 1

Share this post


Link to post
Share on other sites

By the way, inside players.js, you've forgotten to add in the Admin column inside server_players

DB.Handle.query("CREATE TABLE IF NOT EXISTS `server_players` (`ID` int(11) NOT NULL,`Name` varchar(24) NOT NULL,`Password` varchar(128) NOT NULL, `Admin` int(3) NOT NULL) ENGINE=InnoDB DEFAULT CHARSET=latin1;", function() { } );


Line 43, I haven't tried it but that should probably fix it.

Edited by MrPancakers

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.