diff --git a/ReallifeGamemode.Client/util/waypoint.ts b/ReallifeGamemode.Client/util/waypoint.ts index 8ac5d28a..a2438e4b 100644 --- a/ReallifeGamemode.Client/util/waypoint.ts +++ b/ReallifeGamemode.Client/util/waypoint.ts @@ -18,7 +18,5 @@ mp.events.add("gotoWaypoint", () => { mp.gui.chat.push("xyz: " + x_saved + " " + y_saved + " " + z_saved); mp.players.local.position = new mp.Vector3(x_saved, y_saved, z_saved); - - //coord.z = mp.game.gameplay.getGroundZFor3dCoord(coord.x, coord.y, i * 50, 0, false); // try calcualte Z }); } \ No newline at end of file diff --git a/ReallifeGamemode.Server/Events/Waypoint.cs b/ReallifeGamemode.Server/Events/Waypoint.cs index ed2ccfa0..92e968a3 100644 --- a/ReallifeGamemode.Server/Events/Waypoint.cs +++ b/ReallifeGamemode.Server/Events/Waypoint.cs @@ -22,21 +22,15 @@ namespace ReallifeGamemode.Server.Events { return; } - ChatService.Broadcast("a"); Entity entity = NAPI.Vehicle.GetVehicleDriver(player.Vehicle); Player target = PlayerService.GetPlayerByNameOrId(entity.Value.ToString()); - - ChatService.Broadcast("b"); - if (target == null) { return; } - ChatService.Broadcast("c"); - target.TriggerEvent("SERVER:Util_setWaypoint", x, y); } }