Jump to content

GetRed

Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by GetRed

  1. Hello there guys, i'm having an issue. So basically i'm trying to make a command which teleports the player to a specific location, facing towards an exact angle, if the player is in a vehicle, it teleports the vehicle to other coordinates, facing towards other angle. The problem there is the "heading" thing, i tried so many things to make the vehicle or the player always teleport in a specific angle but it didn't work. Can anyone help me? Here's the code: mp.events.addCommand('gotoa', (player) => { if (player.vehicle) player.vehicle.position = new mp.Vector3(-1033.1522216796875, -2729.705078125, 20.113100051879883, -117.61063385009766); else player.position = new mp.Vector3(-1037.6630859375, -2737.679443359375, 20.16929054260254, -30.945030212402344); });
×
×
  • Create New...