veh command heading

This commit is contained in:
hydrant
2021-04-05 14:28:27 +02:00
parent 9ac0a15d13
commit 27dc16a1e7

View File

@@ -1578,7 +1578,7 @@ namespace ReallifeGamemode.Server.Commands
return;
}
Vehicle v = NAPI.Vehicle.CreateVehicle(uHash, player.Position, player.Rotation.Z, color1, color2, engine: true);
Vehicle v = NAPI.Vehicle.CreateVehicle(uHash, player.Position, player.Heading, color1, color2, engine: true);
VehicleStreaming.SetEngineState(v, true);
VehicleStreaming.SetLockStatus(v, false);
player.SetIntoVehicle(v.Handle, 0);