Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 03/07/23 in all areas

  1. Found the way to get Z pos in this uc post https://www.unknowncheats.me/forum/2089764-post3.html If you want to teleport your current vehicle too set his position serverside otherwise wont work if you teleport out of your current stream range. const teleportWaypoint = () => { const waypoint = mp.game.ui.getFirstBlipInfoId(8); if (!mp.game.ui.doesBlipExist(waypoint)) return; const waypointPos = mp.game.ui.getBlipInfoIdCoord(waypoint); if (!waypointPos) return; let zCoord = mp.game.gameplay.getGroundZFor3DCoord(waypointPos.x, waypointPos.y, waypointPos.z, false, false); if (!zCoord) { for (let i = 1000; i >= 0; i -= 25) { mp.game.streaming.requestCollisionAtCoord(waypointPos.x, waypointPos.y, i); mp.game.wait(0); } zCoord = mp.game.gameplay.getGroundZFor3DCoord(waypointPos.x, waypointPos.y, 1000, false, false); if (!zCoord) return; } mp.players.local.position = new mp.Vector3(waypointPos.x, waypointPos.y, zCoord + 0.5); }; mp.events.add('playerCommand', (cmd) => { if (cmd == 'tpm') { teleportWaypoint(); return true; } });
    1 point
  2. C# serverside: NAPI.Server.SetCommandErrorMessage(string message) If you are using JS, you can use playerCommand event. PlayerCommand - RAGE Multiplayer Wiki
    1 point
  3. Version 1.2.0

    1750 downloads

    Very simple but complete chat written in vanilla js with arrows history navigation, time stamp, user colors prevention, character count, lower cased commands and scrollbar. Ragemp chat api works perfectly Settings Edit settings in advanced-chat/js/main.js Install Extract in to advanced-chat folder and copy it to client_packages Add this somewhere client-side. (Eg: index.js) mp.gui.chat.show(false); //Disables default RageMP Chat const chat = mp.browsers.new('package://advanced-chat/index.html'); chat.markAsChat(); Add this somewhere server-side (Eg: index.js) mp.events.add("playerChat", (player, message) => { mp.players.broadcast(`${player.name}: ${message}`); });
    1 point
×
×
  • Create New...