Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 01/20/19 in all areas

  1. With a lot of people with very potential projects presented a lot of quality mapping, I'm a bit late to introducing this but in this tutorial, I'll basically be showing off how to get your mapping into your server through means of it being client-sided. (Which I'd consider as far as displaying mapping goes instead of getting them through .jsons ala server-sided.) What you'll need. 1. First you're gonna need to gather all the tools needed to bring a mapping over to your RageMP server. I made a special folder for this tutorial. 2. Okay so here's the two .xml maps both exported from Map Editor. (But you can export it from Menyoo too) 3. So what we're gonna do next is open up ME2YM (Ymap converter) and try to convert it over. 4. When you got it opened up, goto File > Open. Then navigate your mapping, I will be bringing in my examples I got from GTA 5 Mods. (There's two of them, but I RECOMMEND you importing ONE at a time and converting them ONE AT A TIME.) 5. After getting your mapping in ME2YM, goto File > Export. And export your mapping anywhere you like. I'll be exporting mine in the same folder for the sake of the tutorial. (Again, LOOK back at number 4. ONLY import and export ONE mapping at a time.) 6. Since there's two mappings, I'll basically be doing steps 4 and 5 again for the other one. Simple. 7. After you've gotten those converted over, you're done with ME2YM! Open up OpenIV and navigate to your mapping dlcpack base by going to File > Open folder. (In this case, if you downloaded my base, find "mapname") 8. You should see the dlc archive itself when opening up the dlcpack. Open it up and go all the way to the "custom_maps" .rpf archive. 9. Import the .ymap mappings through openFormats. 10. Extract the custom_maps.rpf anywhere after importing your .ymap mappings, then DELETE the .rpf archive inside OpenIV after extracting it. 11. Next we're gonna be affixing that .rpf archive. Locate ArchiveFix and where you placed your custom_maps.rpf then drag the .rpf archive onto the ArchiveFix icon. ...and you should get this. Don't panic. It means you did something right... 12. Re-add/Import that archive back into OpenIV in the same place where you deleted it from. 13. Exit OpenIV, then locate your mapping base dlc archive. (If you're using mapname, it'll be in mapname..) 14. Drag that .rpf archive into ArchiveFix like custom_maps. 15. Then finally, go into your server's files and into client_resources. Then drop your mapping dlcpack base (or mapname) into dlcpack. (Make a dlcpack folder inside client_resources if you haven't made one.) 16. Either copy it to your client_resources as well or be lazy and just hop in game to let the server download it for you. (If you let the server download it, restart your game and client after downloading it from the server.) 17. Your mapping should be in the server for you and anyone else who joins! (Granted they download the resources too from the server..)
    2 points
  2. Version 1.0.2

    4160 downloads

    Features 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 Getting started 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 Team management 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 Adding/removing vehicles 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 Adding/removing weapons 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 Config.json 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. Turfs 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. Admin Commands /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. Player Commands /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!
    1 point
  3. /save [name (optional)] command to save your/your vehicle's position and heading/rotation to a file just like in SA-MP. You can find the saved positions inside savedpos.txt on the server folder. Code: const fs = require("fs"); const saveFile = "savedpos.txt"; mp.events.addCommand("save", (player, name = "No name") => { let pos = (player.vehicle) ? player.vehicle.position : player.position; let rot = (player.vehicle) ? player.vehicle.rotation : player.heading; fs.appendFile(saveFile, `Position: ${pos.x}, ${pos.y}, ${pos.z} | ${(player.vehicle) ? `Rotation: ${rot.x}, ${rot.y}, ${rot.z}` : `Heading: ${rot}`} | ${(player.vehicle) ? "InCar" : "OnFoot"} - ${name}\r\n`, (err) => { if (err) { player.notify(`~r~SavePos Error: ~w~${err.message}`); } else { player.notify(`~g~Position saved. ~w~(${name})`); } }); }); What the output looks like: Position: -422.9187316894531, 1133.0765380859375, 325.8547058105469 | Heading: 344.207763671875 | OnFoot - No name Position: -411.07977294921875, 1180.73681640625, 325.0368957519531 | Rotation: 1.4606590270996094, 0.7490195631980896, 75.47509765625 | InCar - No name Position: -1087.9407958984375, 4912.0634765625, 214.6710968017578 | Heading: 222.96522521972656 | OnFoot - Altruist Camp
    1 point
  4. delete vs studio restart your system install vs studio no way to fix this error through another way
    1 point
  5. Tutorial WiredPlayers Roleplay Server Password: geekbee
    1 point
×
×
  • Create New...