Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 04/08/19 in Files

  1. Version 1.2

    4749 downloads

    UPDATE I highly recommending using my more updated resource "MySQL Accounts" instead as it fixes known issues and runs better: This resource will stay up, however I will not be giving any help for this resource as I don't believe it should be used for serious projects. ---- Basic MySQL Gamemode Github Link: https://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. 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.
    1 point
  2. Version 1.0.0

    844 downloads

    Kill your way to victory! Gun game is a gamemode where players start with powerful weapons and get less powerful weapons once they score enough kills to level up. Winning First player to go through all weapons/levels will win. Player with the highest level will win if round timer ends. Config The config file is located in packages/gungame/config.json. gameTimeSeconds: Length of a round in seconds. 600 by default which converts to 10 minutes. healthOnKill: How much health players will get for killing someone. 0 by default which means players won't get any health from killing. respawnTimeSeconds: Seconds a player needs to wait for respawning. 8 by default. restartTimeSeconds: Seconds players need to wait before a new round begins. 10 by default. Loadouts The loadouts file is located in packages/gungame/loadouts.json. It's a JSON file with each loadout as an array. Each loadout array must contain at least one valid loadout item. Loadout items must have: Weapon: Weapon hash key as string, such as WEAPON_PISTOL. (Weapons list) Name: Human readable name of the weapon, such as Pistol. KillsForNext: Amount of kills a player need to get with this weapon before upgrading to the next one. (player will be declared winner if this item is the last in the loadout) Example Loadout (RPG > Minigun > Special Carbine > Heavy Revolver > Sawed-Off Shotgun > Machete, player needs 5 machete kills to win) [ { "Weapon": "WEAPON_RPG", "Name": "RPG", "KillsForNext": 1 }, { "Weapon": "WEAPON_MINIGUN", "Name": "Minigun", "KillsForNext": 1 }, { "Weapon": "WEAPON_SPECIALCARBINE", "Name": "Special Carbine", "KillsForNext": 1 }, { "Weapon": "WEAPON_REVOLVER", "Name": "Heavy Revolver", "KillsForNext": 1 }, { "Weapon": "WEAPON_SAWNOFFSHOTGUN", "Name": "Sawed-Off Shotgun", "KillsForNext": 1 }, { "Weapon": "WEAPON_MACHETE", "Name": "Machete", "KillsForNext": 5 } ] Maps Map files are located in packages/gungame/maps/. Maps must have: CenterOfMap: An object that has x, y, z and radius properties. This is used for defining game area and respawning players around the game area. SpawnPoints: Array of objects that has x, y, z and a (angle/heading) properties. This is used for spawning players for the first time in the map, like when they connect the server or when a round begins. Example Map (1 Spawn Point) { "CenterOfMap": { "x": -1108.71240234375, "y": 4918.75048828125, "z": 217.17044067382812, "radius": 70.0 }, "SpawnPoints": [ { "x": -1126.168212890625, "y": 4952.76025390625, "z": 220.46249389648438, "a": 191.99134826660156 } ] } Maps also have optional properties such as: World: An object that has time and weather properties. --> time: An object that has hour, minute and second properties. --> weather: A string property that contains the weather ID. (Weather ID list) Props: Array of objects that has model, position and rotation properties. --> model: A string property that contains the model name. Example: prop_fire_hydrant_1 --> position: An object that has x, y and z properties. --> rotation: An object that has x, y and z properties. Example Map (Night, Rainy Weather with 1 Prop) { "World": { "time": { "hour": 2, "minute": 0, "second": 0 }, "weather": "RAIN" }, "CenterOfMap": { "x": -1108.71240234375, "y": 4918.75048828125, "z": 217.17044067382812, "radius": 70.0 }, "SpawnPoints": [ { "x": -1126.168212890625, "y": 4952.76025390625, "z": 220.46249389648438, "a": 191.99134826660156 } ], "Props": [ { "model": "prop_fire_hydrant_1", "position": { "x": -1108.71240234375, "y": 4918.75048828125, "z": 217.05 }, "rotation": { "x": 0.0, "y": 0.0, "z": 0.0 } } ] } Source code is available on GitHub in case you don't want to download: https://github.com/root-cause/ragemp-gungame Have fun!
    1 point
  3. Version 1.0.0

    337 downloads

    Just a simple js-script that let you play every sound in the following list and gives you info about the current sound on the bottom of the screen: https://wiki.rage.mp/index.php?title=Sounds Install: Simply drop the files in your client-packages folder and merge the index.js with your index.js. How to use: Type /s or /sound to activate/deactivate it. Use Left-Arrow, Right-Arrow to navigate trough the sounds. Credits: Thanks to n0minal and his interior Resource with which i learned how to create commands in js.
    1 point
×
×
  • Create New...