Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 02/05/19 in all areas

  1. Version 1.1.0

    1338 downloads

    This 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: Server-side: https://github.com/CocaColaBear/types-ragemp-s Client-side: https://github.com/CocaColaBear/types-ragemp-c Installation: Install Ragemp server. Put all files in server-files directory. Run npm i by cmd inside server-files, server-files/app/server, server-files/app/client, server-files/app/cef. 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 build-server.bat file inside server-files directory with server.exe. Now you can modify src code in app and test your server! Also available on github: https://github.com/MarkCavalli/rage-server-start-template
    1 point
  2. /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
  3. This project is mostly "finished" at least for this moment, people seem to need a plug&play project, not a base to start developing.
    1 point
  4. If you interested of this problem I found Server-Side command: NAPI.Server.SetGlobalServerChat(false) I can't verify it now, but I will write here when I check this command. Yes it works. This team solved my problem.
    1 point
  5. 1 point
  6. No idea what you are asking, however, if this is not a legal copy of Grand Theft Auto V you will receive absolutely no support.
    1 point
×
×
  • Create New...