By MarkCavalliThis is RageMP start server template. It's using typescript (server-side and client-side), Vue.js for CEF and including simple log in/sign up system.
Thanks CocaColaBear for typescript types:
Install Ragemp server. Put all files in server-files directory. Run npm i by cmd inside server-files directory with server.exe. Server using MySQL as a database. So you have to import sql structure file in to your database. Import sql structure file structure.sql into it. Modify your account data inside app/server/Options/ in files sDB.ts and sNodemailer.ts Run npm i by cmd inside app/server/cef directory. Run npm run build by cmd inside server-files directory with server.exe. Now you can join into your server! Commands:
npm run build - Create a full production build.
npm run watch-server - Create a server development build and start hot reloading for app/server and app/client
npm run watch-cef - Create a CEF development build and start hot reloading for client_packages/cef
Also available on github: https://github.com/MarkCavalli/rage-server-start-template
By rootcauseFeatures overview
Account system with timed bans A simple admin system Spawn protection (optional) Weapon shops and garages Crouching Killstreaks Different firing modes (single, burst, auto, safe mode) Turf capturing
Put the files in their respective places Go to packages/thewire/config.json and write your database information Import the database.sql file using phpMyAdmin and such Start your server, should be done
Making yourself admin
Make an account Go to accounts table and set Admin field's value to 1 OR run a query to do it: UPDATE accounts SET Admin=1 WHERE Username='YourAccountName' Save and login ingame
Go to packages/thewire/data/teamData.json, teams are stored in this file as key:value For ColorName and ColorHex, check WIKI: Fonts and Colors For VehicleColor, check WIKI: Vehicle Colors For BlipColor, check WIKI: Blips If you remove a key:value pair, you'll remove that team Save file & restart the server
Go to packages/thewire/data/teamData.json, vehicles are connected to teams Add your vehicle model name (e.g zentorno) to the Vehicles array of the team(s) you want Go to packages/thewire/data/vehiclePrices.json Add your vehicle model name and price. (e.g "zentorno": 10000) Save files & restart the server
Go to packages/thewire/data/weaponPrices.json Make sure the weapon you want to add is valid! See WIKI: Weapons Add your weapon name and price. (e.g "WEAPON_PISTOL50": 900) Save file Go to client_packages/cef/weaponIcons Add your weapon icon with the file name being your weapon hash (not the name!) Restart the server
This file is located in packages/thewire/ and lets you control a lot of things.
database: Write your database information here.
dbLogging: Lets you control which parts of logging is enabled. A lot of stuff are being logged by default.
loginDimension: The dimension joined players get sent to. (Default: -1)
startingMoney: The amount of money registered players get. (Default: 1500)
spawnProtectionSeconds: Duration of the spawn protection, in seconds. (Default: 5)
accountSaveInterval: Interval of the auto save to prevent stat loss, in minutes. (Default: 10)
killRewardMin and killRewardMax: The amount of money players get for killing an enemy. (Default: 100 and 200)
teamKillPenalty: The amount of money loss players get for team killing. (Default: 1000)
killstreakReward: The base amount of money a player gets for a 5+ killstreak. Killstreak reward is calculated as: killstreakCount * reward on every factor of 5. (Default: 100)
weaponShopMagCount: How many magazines a player gets when they buy a weapon. (Default: 6)
playerVehicleSpawnLimit: How many vehicles a player can have spawned at once. (Default: 5)
turfCaptureMaxProgressIncrease: Turf attack progress cap. People more than this amount isn't required in the checkpoint. (Default: 5)
turfCaptureRequiredProgress: Required progress to capture a turf. (Default: 50)
turfIncomeInterval: Interval of the turf income sharing between team members, in minutes. (Default: 15)
bcryptCost: Read this (Default: 10)
spawnWeapons: Weapons and ammo the players get when they spawn. This applies to all teams. (Default: Bat and Pistol with 240 ammo)
world: World settings, there is actually a time system but it doesn't show itself until a few hours pass. (Default: CLEAR weather and 10:00:00)
log4js: Logger settings, you don't really need to touch this.
Teams can capture turfs in this gamemode and make money.
All you need to do is stand in a turf checkpoint, wait until the progress reaches 100% (it will be captured faster if there are teammates with you, up to 5 players)
Though doing that will alert the turf's current owners. If the owners manage to clear the turf before it is captured, they'll keep it.
Turf income happens every 15 minutes which just sums all of your team's turf income and shares it between team members.
/tp [x] [y] [z] - Lets you teleport to a position.
/agivemoney [player ID] [amount] - Gives money to a player.
/agiveweapon [player ID] [weapon name] [ammo] - Gives weapons to a player.
/kick [player ID] [reason] - Kicks a player.
/banplayer [player ID] [days] [reason] - Bans a player.
/banaccount [account ID] [days] [reason] - Bans an account, best used for banning players that are offline.
/baninfo [ban ID] - Returns information about a ban.
/removeban [ban ID] - Removes a ban.
/createweaponshop - Creates a weapon shop on your position.
/removeweaponshop [ID] - Removes a weapon shop.
/creategarage - Creates a garage on your position.
/removegarage [ID] - Removes a garage.
/createturf [income] [radius] [name] - Creates a turf on your position. Radius isn't used right now but it will be in 0.4.
/removeturf [ID] - Removes a turf.
/pm [player ID] [message] - Sends a private message to a player.
/stats [player ID] - Shows the stats of a player. (Kills, deaths, K/D ratio, money, register date)
/givemoney [player ID] [amount] - Sends money from your account to another player's account.
/top5 [ranking] - Shows the top 5 online players of a ranking. (Available rankings: kills, money)
If you encounter a bug, feel free to leave it as a comment.
Hopefully all this text is enough, have fun and see you on the battlefield!
By XabiHello everybody. Some weeks ago i made a post on this forum's spanish section releasing my old gamemode, which I have been porting to RAGE:MP right after the bridge was released for the first time. In the beginning it was only in spanish, so I didn't thought it was a good idea to release to the whole community, as not so many people here speak spanish (I guess) but, after seeing that more people than I had expected downloaded it and also taking the suggestion George made me, I decided to start translating it and also, allowing to be multilanguage in a future.
That above is the main reason I'm writing this post, I want to release here my gamemode (even if the link is already in this forum) so all the people using this excelent mod can just start their development with a base gamemode, instead of making it from the scratch. I have to say that it's not 100% ported and translated but I will be working on it in my spare time, meaning this won't be an abandoned project, it will have continuous support and development.
Any suggestion for the gamemode, any question or any issue, you can contact me on the forum, sending a PM or posting here. One last thing I have to point out is that I know the gamemode is not documented but please, understand that I can't explain how all the systems inside work, as it's quite big. Anyway in a near future I will be adding some wiki or documentacion explaining briefly its contents and a guide to know the structure maybe.
By ProtocoleProject not maintained anymore, feel to continue it by yourself.
The most recent version (with some fix) is on github, link below!
Hi all, after some times letting this GM getting dust, I decided to release it to public.
It may not be developed with the best methods, but still it is working very well.
Here is a list of the differents systems available:
For civil players:
Rob a shop (24/7 / Ammunation for now) Have a job (Hacker only for now) Earn XP from doing hacking Buy stuff at 24/7 that heals you (Apple...) For cops:
Arrest a player (Civil only with wanted level) Be a SWAT or in FBI (If player has access to thoses teams) Cuff a player (Preventing him from running / jump / use car direction) What everybody can do:
Buy a car / boat / helicopter Use teleporters (The only teleporters are in SWAT car park, can be added in DB) Withdraw / deposit money in ATM Custom your car (In theory working with every kind of vehicle) What admins can do:
Create a vehicle Create a temporary vehicle (As vehicle bought in car shop) Edit a vehicle Save vehicle data Respawn Cars Create Faction / SpawnPoint for a faction / A Skin for a faction / Biz / ATM / Label Teleport to pos Edit a player
Teleporters are saved in the database, and have different options, like :
Reversible (Has another tp to come back) Change dimension of player TP vehicle or not Usable for a faction only Vehicle info:
Save vehicle mods Vehicle only for a faction Vehicle locked Vehicle plate Vehicle dimension What are spawnpoints ?
Spawnpoints are used for factions, it is the spawnpoints for a faction, and not for a SKIN.
How to add skin into a faction?
Doing /acreate ped
Some commands still exist as:
/acreate [faction/biz/label/ped/spawnpoint] (Showing a modal to complete & create) /aveh (Showing a modal to know what you want to do. /aplayer [PLAYER ID] (Showing a modal to know what you want to do) Differents admin levels:
There is 3 differents level of admin:
- Edit (Edit a player / car)
- Blame (Kick / Ban / Blame)
- See (Spectate / Player infos...)
There is no admin command for moderate.
Car shop is VERY easy to create, i think i'll do another ressource to show how it is simple & share it.
All you have to know is the vehicle classes, in packages/gamemode/data/vehicle_shop.json
And create a car shop in config.json (Very easy to understand look at it).
All mods prices can be modified in gamemode/data/custom_prices.json, by mod ID & Index.
But this system is not optimized at all, and must be reworked.
There is also a log system, that log everytime you connect / disconnect.
Install npm dependencies: npm install Change .env.example to .env
Can't find module MySQL: You must have installed NodeJS & NPM Then go to your server folder and type in cmd this: "npm install mysql"
As suggested, If you have any bugs found, suggestions... just see this:
https://github.com/Protocole63/RageMP-Gamemode-Cops-Robber/issues -- I would be happy to fix it or add the stuff you suggest.
- Me for the scripts
- GamingMaster Library - NativeUI
- RootCause library - Level - better Notificaitons - Scaleform messages
- Micky5991 for vehicles hashes & mods... (https://github.com/Micky5991/GT-MP-vehicleInfo/releases)
By TellarionHello, it's my old version LSFIVEM gamemode v1.6
Detailed before: https://forum.lsfivem.com/index.php?forums/Новости.20/
1. Download archive and extract to rage:mp server folder
2. Set config mysql in packages/roleplay/mysql.js
3. Insert SQL from archive to datebase
4. Enjoy, but need do it other registration form (across web)
Date Build: 26 december 2017
By MrPancakersBasic MySQL Gamemode
Github Link: https://github.com/MrPancakers/ragemp-mysql
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.
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.
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. 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.
By rchl2Start your next project within seconds! This boilerplate accelerates the work you need to put to start developing server. Just clone repo, install packages, setup database with two commands and thats it! You have working environment ready! 👏
I advise you to look at the repository rather than download the file from here: https://github.com/rchl2/ragemp-starter
By mewWe decided to release the source of Rage-MM since it died. Thanks to Matthew (Main dev) and also all the community members who helped testing.
Only Race gamemode implemented.
Includes around 81 race maps.
Enjoy, if you want to take over this project you can message me on discord to get ownership of our domain rage-mm.com
By hexisgodThis resource will help many newcomers in the development of the server.
At this gamemode, used the sequelize framework, for easy work with the database. Also used frameworks ReactJS + ReduxJS special for CEF.
GitHub URL: https://github.com/HEXisGOD/RAGEMP_sequelize_react_redux
1. Download this archive, unpack it in RAGE:MP new server folder.
2. To work with the database locally I suggest using Denwer.
3. Config connection data at packages\sequelize\modules\db.js
4. Import example database into phpMyAdmin
5. Then start server, and test it !)
Needed node modules
1. MySQL2 - [ npm install mysql2 -save ]
2. Sequelize - [ npm install sequelize -save ]
- Thanks @kemperrr for make "pleaseCallCEF" function and event on ReactJS!!
This is first version, During the time there can be changes and improvements!!