Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 01/24/19 in Posts

  1. Inside your server folder, open config.json and add the following line "allow-cef-debugging": true Now head to your registry (Windows Key + R ) and type regedit and hit enter. Head to the following path: Once you're there, right click and Go New > String Value and put "launch.cefPort" as the name and Hit Enter, then right click and hit Modify and set the data to the port you'd like to use (9222 for example) and it should look the same as below Now head to your browser using the following: http://localhost:9222/ or whatever port you had entered to enable it. You'll need to quit Rage and open it back up if you enabled this while in game, and make sure you restart your server when you change the setting. Credits to @kemperrr as I used his post on Discord to make this up.
    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. It would be player.SetSharedData, which is exactly the same as SetEntitySharedData(player, data) Both ways work.
    1 point
  4. Das war als Witz gemeint, weil die noch keine Website haben, bzw. nur eine Plesk Seite
    1 point
  5. Имею более-менее опыт отыгровки персонажей в сфере военных структур и прекрасно готов выполнять устав и поставленные задачи. При общении с сотрудниками полиции при помощи /OOC сказали оставить заявку на форму данного сайта. Кто может подсказать куда отправлять анкету и т.д ? Если вдруг читает управляющий Академий Полиции Лос-Сантоса, то это пишет Джейкоб Джанковски)))
    1 point
  6. or just use this files https://mega.nz/#F!mBo3wQgK!4M3CthoZEuy4k6IdbJ2y0w
    1 point
×
×
  • Create New...